11 #ifndef HPP_CORBA_SERVER_HH 12 # define HPP_CORBA_SERVER_HH 15 # include <omniORB4/CORBA.h> 32 const char* orb_identifier=
"",
33 const char* options[][2]=0);
43 bool initORB (
int argc,
const char *argv[],
44 const char* orb_identifier,
45 const char* options[][2]);
67 const std::string& contextKind,
68 const std::string& objectId,
69 const std::string& objectKind);
80 const std::string& contextKind);
95 PortableServer::POA_var
poa ()
116 CORBA::Object_var servant_;
119 bool createHppContext (
const std::string&
id,
const std::string kind);
122 bool bindObjectToName (CORBA::Object_ptr objref,
123 CosNaming::Name objectName);
126 bool bindObjectToName (CosNaming::NamingContext_ptr context,
127 CORBA::Object_ptr objref,
128 CosNaming::Name objectName);
147 Server (
int argc,
const char *argv[],
148 const char* orb_identifier=
"",
149 const char* options[][2]=0);
182 PortableServer::ObjectId_var servantId_;
188 bool createHppContext (
const std::string&
id,
const std::string kind);
191 bool bindObjectToName (CORBA::Object_ptr objref,
192 CosNaming::Name objectName);
195 bool bindObjectToName (CosNaming::NamingContext_ptr context,
196 CORBA::Object_ptr objref,
197 CosNaming::Name objectName);
203 void deactivateAndDestroyServers ();
PortableServer::POA_var main_poa()
Definition: server.hh:89
int startCorbaServer()
Initialize CORBA server to process requests from clients.
bool initRootPOA(bool inMultiThread)
PortableServer::POA_var main_poa_
Definition: server.hh:107
PortableServer::POA_var ins_poa_
Definition: server.hh:107
CORBA::ORB_var orb()
Definition: server.hh:100
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:110
int processRequest(bool loop)
If ORB work is pending, process it.
void setServant(CORBA::Object_ptr obj)
Template CORBA server.
Definition: server.hh:137
PortableServer::POA_var poa()
The Portable Object Adapter used to active the server.
Definition: server.hh:95
CORBA::ORB_var orb_
Definition: server.hh:106
PortableServer::POA_var poa_
Definition: server.hh:107