00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef HxCorbaMediator_h
00010 #define HxCorbaMediator_h
00011
00012 #include <OB/CORBA.h>
00013
00014
00020 class HxCorbaMediator
00021 {
00022 public:
00023 static HxCorbaMediator* instance();
00024
00025 virtual ~HxCorbaMediator();
00026
00027 virtual CORBA::ORB_ptr orb() = 0;
00028 virtual CORBA::Object_ptr getInitialObject(const char* name) = 0;
00029 virtual CORBA::Object_ptr getService(const char* name) = 0;
00030 virtual char* object_to_string(CORBA::Object_ptr obj) = 0;
00031 virtual CORBA::Object_ptr string_to_object(const char* ref) = 0;
00032
00033 protected:
00034 HxCorbaMediator();
00035
00036 private:
00037 static HxCorbaMediator* _inst;
00038 };
00039
00040 #endif // HxCorbaMediator_h