/*! Public -
* Find and aready existing and registered component instance or load a new
* component instance on a container defined by machine parameters.
- * Renamed (Else / Or) to avoid problems with Python (Swig) version and keep
- * compatiblity with existing Python method FindOrLoadComponent
* \param params machine parameters like type or name...
* \param componentName the name of component class
* \param studyId default = 0 : multistudy instance
Engines::Component_ptr
SALOME_LifeCycleCORBA::
-FindElseLoadComponent(const Engines::MachineParameters& params,
- const char *componentName,
- int studyId)
+FindOrLoad_Component(const Engines::MachineParameters& params,
+ const char *componentName,
+ int studyId)
{
if (! isKnownComponentClass(componentName))
return Engines::Component::_nil();
* - 1 localhost/aContainer
* - 2 aContainer
* - 3 /machine/aContainer
- * (not the same rules as FindContainer() method base on protected method
+ * (not the same rules as FindContainer() method based on protected method
* ContainerName() -- MUST BE CORRECTED --)
* \param componentName the name of component class
* \return a CORBA reference of the component instance, or _nil if problem
params->hostname=CORBA::string_dup(stContainer);
params->OS=CORBA::string_dup("LINUX");
free(stContainer);
- return FindElseLoadComponent(params,componentName);
+ return FindOrLoad_Component(params,componentName);
}
}
* \param aComputerContainer container name under one of the forms:
* - 1 aContainer
* - 2 machine/aContainer
- * \param theComputer return computer name:
+ * \param theComputer return computer name (machine):
* - 1 machine = GetHostname()
- * - 2 machine (localhost replaced by GetHostName())
+ * - 2 machine = as given (localhost replaced by GetHostName())
* \param theContainer return container name:
* - 1 aContainer
* - 2 aContainer
int studyId=0);
Engines::Component_ptr
- FindElseLoadComponent(const Engines::MachineParameters& params,
- const char *componentName,
- int studyId =0);
+ FindOrLoad_Component(const Engines::MachineParameters& params,
+ const char *componentName,
+ int studyId =0);
Engines::Component_ptr
FindOrLoad_Component(const char *containerName,
#comp.Coucou(1)
param={}
-param['hostname']='cli70ac'
+param['hostname']='cli76ce'
param['container_name']='myContainer'
-smesh=lcc.FindElseLoadComponent(param,'SMESH')
+smesh=lcc.FindOrLoad_Component(param,'SMESH')
container=lcc.FindContainer('myContainer')
engine=lcc.FindComponent(param,'SMESH')