return CORBA::string_dup( path ) ;
}
+Engines::Container_ptr SALOME_LifeCycleCORBA::FindContainer(const char *containerName)
+{
+ ASSERT(_NS != NULL);
+ string cont ;
+ if ( strncmp( containerName , "/Containers/" , 12 ) ) { // Compatibility ...
+ string theComputer ;
+ string theContainer ;
+ cont = ContainerName( containerName , &theComputer , &theContainer ) ;
+ }
+ else {
+ cont = containerName ;
+ }
+ try {
+
+ SCRUTE( cont );
+
+ CORBA::Object_var obj = _NS->Resolve( cont.c_str() );
+ if( !CORBA::is_nil( obj ) ) {
+ return Engines::Container::_narrow( obj ) ;
+ }
+ }
+ catch (ServiceUnreachable&) {
+ INFOS("Caught exception: Naming Service Unreachable");
+ }
+ catch (...) {
+ INFOS("Caught unknown exception.");
+ }
+ return Engines::Container::_nil();
+}
+
Engines::Component_ptr SALOME_LifeCycleCORBA::FindOrLoad_Component
(const char *containerName,
const char *componentName)
public:
SALOME_LifeCycleCORBA(SALOME_NamingService *ns);
virtual ~SALOME_LifeCycleCORBA();
+ Engines::Container_ptr FindContainer(const char *containerName); // for supervision
Engines::Component_ptr FindOrLoad_Component(const Engines::MachineParameters& params,
const char *componentName);
Engines::Component_ptr FindOrLoad_Component(const char *containerName,