16const std::string DUMMYDYNAMICS =
"Nextsim::DummyDynamics";
17const std::string DYNAMICS =
"Nextsim::Dynamics";
20Module<Nextsim::IDynamics>::map Module<Nextsim::IDynamics>::functionMap = {
21 { DUMMYDYNAMICS, newImpl<Nextsim::IDynamics, Nextsim::DummyDynamics> },
22 { DYNAMICS, newImpl<Nextsim::IDynamics, Nextsim::Dynamics> },
29Module<Nextsim::IDynamics>::fn Module<Nextsim::IDynamics>::spf = functionMap.at(DUMMYDYNAMICS);
31std::unique_ptr<Nextsim::IDynamics> Module<Nextsim::IDynamics>::staticInstance
32= std::move(newImpl<Nextsim::IDynamics, Nextsim::DummyDynamics>());
35std::string Module<Nextsim::IDynamics>::moduleName(){
return "Nextsim::IDynamics"; }
37template<> HelpMap& getHelpRecursive<Nextsim::IDynamics>(HelpMap& map,
bool getAll)
40 map[pfx].push_back({ pfx +
"." + Module<Nextsim::IDynamics>::moduleName(), ConfigType::MODULE,
41 { DUMMYDYNAMICS }, DUMMYDYNAMICS,
"",
42 "MODULE DESCRIPTION HERE" });
48 return getImplTemplate<Nextsim::IDynamics, DynamicsModule>();
51void setImplementation<Nextsim::IDynamics>(
const std::string& implName)
53 setImplTemplate<DynamicsModule>(implName);
56std::unique_ptr<Nextsim::IDynamics> getInstance()
58 return getInstTemplate<Nextsim::IDynamics, DynamicsModule>();
60DynamicsModule::Constructor DynamicsModule::ctor;
61DynamicsModule::Constructor::Constructor()
63 addToConfiguredModules<Nextsim::IDynamics, DynamicsModule>();