Template CORBA server. More...
#include <hpp/corba/template/server.hh>
Public Member Functions | |
Server (int argc, const char *argv[], bool multiThread=false, const std::string &poaName="child") | |
Constructor. More... | |
~Server () | |
Shutdown CORBA server. More... | |
int | startCorbaServer (const std::string &contextId, const std::string &contextKind, const std::string &objectId, const std::string &objectKind) |
Initialize CORBA server to process requests from clients. More... | |
int | processRequest (bool loop) |
If ORB work is pending, process it. More... | |
T & | implementation () |
Return a reference to the implementation. More... | |
Template CORBA server.
For information on how to use see the How to section of the main documentation page
hpp::corba::Server< T >::Server | ( | int | argc, |
const char * | argv[], | ||
bool | multiThread = false , |
||
const std::string & | poaName = "child" |
||
) |
Constructor.
argc,argv | parameter to feed ORB initialization. |
inMultiThread | whether the server may process request using multithread policy. |
hpp::corba::Server< T >::~Server | ( | ) |
Shutdown CORBA server.
T & hpp::corba::Server< T >::implementation | ( | ) |
Return a reference to the implementation.
References HPP_CORBA_CATCH.
int hpp::corba::Server< T >::processRequest | ( | bool | loop | ) |
If ORB work is pending, process it.
If CORBA requests are pending, process them.
loop | if true, the function never returns; if false, the function processes pending requests and returns. |
References HPP_CORBA_CATCH.
int hpp::corba::Server< T >::startCorbaServer | ( | const std::string & | contextId, |
const std::string & | contextKind, | ||
const std::string & | objectId, | ||
const std::string & | objectKind | ||
) |
Initialize CORBA server to process requests from clients.
contextId | first part of context name |
contextKind | second part of context name |
objectId | first part of CORBA server name |
objectKind | second part of CORBA server name |
The CORBA server is referenced in the name server by context and name: contextId.contextKind/objectId.objectKind. The context can be seen as a directory and the object as a filename.
References HPP_CORBA_CATCH.