KCorbaClient.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- #ifndef KCorbaClient_H
- #define KCorbaClient_H
- #include <omniORB3/CORBA.h>
- #include "KDataManage.h"
- #include "KCorbaServer.h"
- //需要完成的,包括指定Orb、
- //指定m_DataManage的远程或近程对象的地址
- class KCorbaClient
- {
- public:
- CORBA::ORB_var m_OrbVar;
- CORBA::Object_var m_ObjVar;
-
- char m_ServerName[20];
- char m_ServerType[20];
-
- KCorbaClient(){m_ObjVar = NULL; m_OrbVar = NULL;};
- ~KCorbaClient(){};
- void SetORB(CORBA::ORB_var Orb){m_OrbVar = Orb;};
- BOOL CreateClient(char *ServerName, char *ServerType);
- BOOL CreateClient(CORBA::String_var sior);
- BOOL CreateOrb(int argc , char **argv){m_OrbVar = CORBA::ORB_init(argc, argv, "omniORB3");};
-
- };
- #endif // KCorbaClient_H