28 namespace GravityModel
41 unsigned int counter = 0;
53 "The name of the model for the gravity to use.");
55 it.second(prm, parent_name);
77 std::unique_ptr<Interface>
80 std::string lower_case_name;
81 std::transform(name.begin(),
83 std::back_inserter(lower_case_name),
89 "Internal error: Plugin with name '" << lower_case_name <<
"' is not found. " static std::unique_ptr< Interface > create(const std::string &name, WorldBuilder::World *world)
static void declare_entries(Parameters &prm, const std::string &parent_name, const std::vector< std::string > &required_entries)
WorldBuilder::World * world
void enter_subsection(const std::string &name)
static std::map< std::string, ObjectFactory * > & get_factory_map()
static std::map< std::string, void(*)(Parameters &, const std::string &)> & get_declare_map()
#define WBAssertThrow(condition, message)
void declare_entry(const std::string &name, const Types::Interface &type, const std::string &documentation)
static void registerType(const std::string &name, void(*)(Parameters &, const std::string &), ObjectFactory *factory)