Loading OpenSimRoot/src/modules/GenericModules/DefaultParameters.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -28,11 +28,7 @@ ObjectGenerator(pSB) {} void CopyDefaultParameters::initialize(const Time &t){ //do nothing } void CopyDefaultParameters::generate(const Time &tt){ Time t=pSB->getStartTime(); //Time t=pSB->getStartTime(); //find default parameter section std::string pathToDefaults("../defaults"); SimulaBase* defaults=pSB->existingChild("copyDefaultsFrom"); Loading @@ -40,6 +36,7 @@ void CopyDefaultParameters::generate(const Time &tt){ defaults->get(pathToDefaults); defaults=pSB->existingPath(pathToDefaults); if(defaults){ //std::cout<<std::endl<<"Copying from "<<defaults->getName()<<" to "<<pSB->getName()<<std::endl; //for each object in that section, check if it is there, and if not copy it SimulaBase::List list; defaults->getAllChildren(list,t); Loading @@ -57,6 +54,10 @@ void CopyDefaultParameters::generate(const Time &tt){ pSB->stopUpdatefunction(); } void CopyDefaultParameters::generate(const Time &tt){ //do nothing } //the maker function for instantiation of the class Loading Loading
OpenSimRoot/src/modules/GenericModules/DefaultParameters.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -28,11 +28,7 @@ ObjectGenerator(pSB) {} void CopyDefaultParameters::initialize(const Time &t){ //do nothing } void CopyDefaultParameters::generate(const Time &tt){ Time t=pSB->getStartTime(); //Time t=pSB->getStartTime(); //find default parameter section std::string pathToDefaults("../defaults"); SimulaBase* defaults=pSB->existingChild("copyDefaultsFrom"); Loading @@ -40,6 +36,7 @@ void CopyDefaultParameters::generate(const Time &tt){ defaults->get(pathToDefaults); defaults=pSB->existingPath(pathToDefaults); if(defaults){ //std::cout<<std::endl<<"Copying from "<<defaults->getName()<<" to "<<pSB->getName()<<std::endl; //for each object in that section, check if it is there, and if not copy it SimulaBase::List list; defaults->getAllChildren(list,t); Loading @@ -57,6 +54,10 @@ void CopyDefaultParameters::generate(const Time &tt){ pSB->stopUpdatefunction(); } void CopyDefaultParameters::generate(const Time &tt){ //do nothing } //the maker function for instantiation of the class Loading