11 #ifndef HPP_CORBA_SERVER_HH 12 #define HPP_CORBA_SERVER_HH 14 #include <omniORB4/CORBA.h> 29 ServerBase(
int argc,
const char* argv[],
const char* orb_identifier =
"",
30 const char* options[][2] = 0);
40 bool initORB(
int argc,
const char* argv[],
const char* orb_identifier,
41 const char* options[][2]);
63 const std::string& contextKind,
64 const std::string& objectId,
65 const std::string& objectKind);
76 const std::string& contextKind);
89 PortableServer::POA_var
poa() {
return poa_; }
104 CORBA::Object_var servant_;
107 bool createHppContext(
const std::string&
id,
const std::string kind);
110 bool bindObjectToName(CORBA::Object_ptr objref, CosNaming::Name objectName);
113 bool bindObjectToName(CosNaming::NamingContext_ptr context,
114 CORBA::Object_ptr objref, CosNaming::Name objectName);
133 Server(
int argc,
const char* argv[],
const char* orb_identifier =
"",
134 const char* options[][2] = 0);
168 PortableServer::ObjectId_var servantId_;
174 bool createHppContext(
const std::string&
id,
const std::string kind);
177 bool bindObjectToName(CORBA::Object_ptr objref, CosNaming::Name objectName);
180 bool bindObjectToName(CosNaming::NamingContext_ptr context,
181 CORBA::Object_ptr objref, CosNaming::Name objectName);
186 void deactivateAndDestroyServers();
PortableServer::POA_var main_poa()
Definition: server.hh:86
int startCorbaServer()
Initialize CORBA server to process requests from clients.
bool initRootPOA(bool inMultiThread)
PortableServer::POA_var main_poa_
Definition: server.hh:95
PortableServer::POA_var ins_poa_
Definition: server.hh:95
CORBA::ORB_var orb()
Definition: server.hh:91
bool initORB(int argc, const char *argv[], const char *orb_identifier, const char *options[][2])
virtual ~ServerBase()
Shutdown CORBA server.
ServerBase(int argc, const char *argv[], const char *orb_identifier="", const char *options[][2]=0)
Constructor.
CosNaming::NamingContext_var hppContext_
Corba context.
Definition: server.hh:98
int processRequest(bool loop)
If ORB work is pending, process it.
void setServant(CORBA::Object_ptr obj)
Template CORBA server.
Definition: server.hh:124
PortableServer::POA_var poa()
The Portable Object Adapter used to active the server.
Definition: server.hh:89
CORBA::ORB_var orb_
Definition: server.hh:94
PortableServer::POA_var poa_
Definition: server.hh:95