31 namespace SubductingPlateModels
43 const std::string &parent_name,
44 const std::vector<std::string> &required_entries)
46 unsigned int counter = 0;
50 if (it.first != parent_name)
61 "The name of the grains model.");
63 it.second(prm, parent_name);
87 std::unique_ptr<Interface>
90 std::string lower_case_name;
91 std::transform(name.begin(),
93 std::back_inserter(lower_case_name),
99 "Internal error: Plugin with name '" << lower_case_name <<
"' is not found. "
void enter_subsection(const std::string &name)
static std::map< std::string, ObjectFactory * > & get_factory_map()
#define WBAssertThrow(condition, message)
static void registerType(const std::string &name, void(*)(Parameters &, const std::string &), ObjectFactory *factory)
WorldBuilder::World * world
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)
static std::map< std::string, void(*)(Parameters &, const std::string &)> & get_declare_map()
void declare_entry(const std::string &name, const Types::Interface &type, const std::string &documentation)