1 //=============================================================================
2 // File : RegistryService.hxx
3 // Created : Mon Nov 5 17:26:23 CET 2001
4 // Author : Pascale NOYRET - Antoine YESSAYAN, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 # ifndef __RegistryService_h__
11 # define __RegistryService_h__
13 #include <SALOMEconfig.h>
14 #include CORBA_SERVER_HEADER(SALOME_Registry)
19 class RegistryService : public POA_Registry::Components //, public PortableServer::RefCountServantBase
23 enum Status { UNDEF=-1 , TERMINATED=0 , RUNNING=1 } ;
28 const char* const _ior;
29 const char* const _name;
31 const char* const _machine;
32 const char* const _adip;
34 const char* const _pwname;
35 const long _ts_start ;
37 const char* const _cdir ;
42 friend class RegistryService ;
44 client_infos( const Registry::Infos &infos );
51 RegistryService(void);
52 virtual ~RegistryService(void);
55 virtual CORBA::ULong add (const Registry::Infos & infos);
56 virtual CORBA::ULong size ( void );
57 virtual void remove( const CORBA::ULong id );
58 virtual void hello( const CORBA::ULong id );
59 virtual void end(void);
61 virtual Registry::AllInfos *getall(void);
62 virtual Registry::AllInfos *history(void);
64 void SessionName( const char *sessionName ) ;
69 const char *_SessionName ;
71 map<int,client_infos *> _reg ;
72 map<int,client_infos *> _fin ;
74 Registry::AllInfos* makeseq(map<int,client_infos *> &mymap );