20 #include <boost/algorithm/string.hpp> 37 std::unique_ptr<Interface>
40 std::string feature_name = boost::algorithm::to_lower_copy(name);
41 boost::algorithm::trim(feature_name);
42 if (feature_name ==
"continental plate")
43 return std::make_unique<Features::ContinentalPlate>(
world);
45 WBAssertThrow(
false,
"Feature " << feature_name <<
" not implemented.");
std::unique_ptr< Interface > create_feature(const std::string name, World *world)
WorldBuilder::World * world
#define WBAssertThrow(condition, message)