Salome HOME
da87c4bae60fa9cc5d86cde7d8cbff01079a01b6
[modules/kernel.git] / src / Registry / RegistryConnexion.hxx
1 //=============================================================================
2 // File      : RegistryConnexion.hxx
3 // Created   : Mon Nov  5 17:26:23 CET 2001
4 // Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2001
7 // $Header$
8 //=============================================================================
9
10 /*
11         RegistryConnexion should be used by an engine to add or to remove a component.
12
13 */
14 # if !defined( __RegistryConnexion_HXX__ )
15 # define __RegistryConnexion_HXX__
16
17 #include <SALOMEconfig.h>
18 #include CORBA_CLIENT_HEADER(SALOME_Registry)
19 #include <string>
20
21 class RegistryConnexion
22 {
23 protected :
24         const char*                     _Ior            ; // engine ior
25         Registry::Components_var        _VarComponents  ; // RegistryService reference
26         string                          _SessionName    ;
27         string                          _Name           ; // code name
28         int                             _Id             ; // code identity returned by RegistryService
29         void add( const char *aName );
30         void remove( void );
31         RegistryConnexion( void );
32
33 public :
34         RegistryConnexion( int argc , char **argv , const char *ior , const char *ptrSessionName, const char *componentName );
35         ~RegistryConnexion();
36 } ;
37
38 # endif         /* # if !defined( __RegistryConnexion_H__ ) */