29 #ifndef SALOME_NAMINGSERVICE_H
30 #define SALOME_NAMINGSERVICE_H
32 #include <SALOMEconfig.h>
33 #include CORBA_CLIENT_HEADER(SALOME_ContainerManager)
34 #include CORBA_CLIENT_HEADER(SALOME_Component)
38 #include "utilities.h"
39 #include "Utils_Mutex.hxx"
40 #include "ServiceUnreachable.hxx"
42 #include "SALOME_NamingService_defs.hxx"
45 #pragma warning(disable:4290) // Warning Exception ...
56 void init_orb(CORBA::ORB_ptr orb=0);
57 void Register(CORBA::Object_ptr ObjRef,
60 CORBA::Object_ptr Resolve(
const char* Path)
62 CORBA::Object_ptr ResolveFirst(
const char* Path)
64 CORBA::Object_ptr ResolveComponent(
const char* hostname,
65 const char* containerName,
66 const char* componentName,
69 std::string ContainerName(
const char *ContainerName);
71 std::string BuildContainerNameForNS(
const char *ContainerName,
72 const char *hostname);
75 const char *hostname);
81 const char *hostname);
82 int Find(
const char* name)
84 bool Create_Directory(
const char* Path)
86 bool Change_Directory(
const char* Path)
88 char* Current_Directory()
92 std::vector<std::string> list_directory()
94 std::vector<std::string> list_subdirs()
96 std::vector<std::string> list_directory_recurs()
98 void Destroy_Name(
const char* Path)
100 virtual void Destroy_Directory(
const char* Path)
102 virtual void Destroy_FullDirectory(
const char* Path)
105 CORBA::ORB_ptr orb();
110 CosNaming::NamingContext_var _root_context, _current_context;
112 void _initialize_root_context();
113 int _createContextNameDir(std::string path,
114 CosNaming::Name& context_name,
115 std::vector<std::string>& splitPath,
117 void _Find(
const char* name, CORBA::Long& occurence_number);
118 void _current_directory(std::vector<std::string>& splitPath,
120 CosNaming::NamingContext_var contextToFind,
122 void _list_directory_recurs(std::vector<std::string>& myList,
123 std::string relativeSubDir,
124 std::string absCurDirectory);
128 #endif // SALOME_NAMINGSERVICE_H
A class to manage the SALOME naming service.
Definition: SALOME_NamingService.hxx:48
Type to describe required properties of a container.
Definition: SALOME_ContainerManager.idl:301
Type to describe required properties of a container.
Definition: SALOME_ContainerManager.idl:86
exception class for NamingService : ServiceUnreachable
Definition: ServiceUnreachable.hxx:37
Definition: Utils_Mutex.hxx:36