@@ -325,7 +325,7 @@ oms_status_enu_t oms::System::addSubModel(const oms::ComRef& cref, const std::st
325325 return system->addSubModel (tail, path);
326326}
327327
328- oms_status_enu_t oms::System::addResources (const ComRef& cref, std::string& filename)
328+ oms_status_enu_t oms::System::newResources (const ComRef& cref, std::string& filename)
329329{
330330 ComRef tail (cref);
331331 ComRef front = tail.pop_front ();
@@ -349,15 +349,15 @@ oms_status_enu_t oms::System::addResources(const ComRef& cref, std::string& file
349349
350350 auto subsystem = subsystems.find (tail);
351351 if (subsystem != subsystems.end ())
352- return subsystem->second ->addResources (tail, filename);
352+ return subsystem->second ->newResources (tail, filename);
353353
354354 auto component = components.find (tail);
355355 if (component != components.end ())
356- return component->second ->addResources (filename);
356+ return component->second ->newResources (filename);
357357
358358 /* check for adding resources to components in subsystems
359359 e.g root.system1.add
360- oms_addResources ("root.system1.add:add.ssv")
360+ oms_newResources ("root.system1.add:add.ssv")
361361 */
362362 ComRef tailA (tail);
363363 ComRef frontA = tailA.pop_front ();
@@ -368,7 +368,7 @@ oms_status_enu_t oms::System::addResources(const ComRef& cref, std::string& file
368368
369369 auto componentA = system->components .find (tailA);
370370 if (componentA != components.end ())
371- return componentA->second ->addResources (filename);
371+ return componentA->second ->newResources (filename);
372372
373373 return logError (" failed for \" " + std::string (getFullCref () + cref) + " \" " + " as the identifier could not be resolved to a system or subsystem or component" );
374374}
0 commit comments