#include <hpp/corba/template/server.hh>
|
| ServerBase (int argc, const char *argv[], const char *orb_identifier="", const char *options[][2]=0) |
| Constructor. More...
|
|
virtual | ~ServerBase () |
| 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 and declare it to the NameService (DNS for CORBA) More...
|
|
int | startCorbaServer (const std::string &contextId, const std::string &contextKind) |
| Initialize CORBA server to process requests from clients and declare it to the NameService (DNS for CORBA) More...
|
|
int | startCorbaServer () |
| Initialize CORBA server to process requests from clients. More...
|
|
int | processRequest (bool loop) |
| If ORB work is pending, process it. More...
|
|
PortableServer::POA_var | main_poa () |
|
PortableServer::POA_var | poa () |
| The Portable Object Adapter used to active the server. More...
|
|
CORBA::ORB_var | orb () |
|
|
bool | initORB (int argc, const char *argv[], const char *orb_identifier, const char *options[][2]) |
|
bool | initRootPOA (bool inMultiThread) |
|
bool | initOmniINSPOA () |
|
◆ ServerBase()
hpp::corba::ServerBase::ServerBase |
( |
int |
argc, |
|
|
const char * |
argv[], |
|
|
const char * |
orb_identifier = "" , |
|
|
const char * |
options[][2] = 0 |
|
) |
| |
Constructor.
- Parameters
-
argc,argv | parameter to feed ORB initialization. |
- Note
- It is recommended to configure your Corba implementation through environment variables and to set argc to 1 and argv to any string.
◆ ~ServerBase()
virtual hpp::corba::ServerBase::~ServerBase |
( |
| ) |
|
|
virtual |
◆ initOmniINSPOA()
bool hpp::corba::ServerBase::initOmniINSPOA |
( |
| ) |
|
◆ initORB()
bool hpp::corba::ServerBase::initORB |
( |
int |
argc, |
|
|
const char * |
argv[], |
|
|
const char * |
orb_identifier, |
|
|
const char * |
options[][2] |
|
) |
| |
Initialize ORB. This is called by the constructor of this class and should not be called manually.
◆ initRootPOA()
bool hpp::corba::ServerBase::initRootPOA |
( |
bool |
inMultiThread | ) |
|
◆ main_poa()
PortableServer::POA_var hpp::corba::ServerBase::main_poa |
( |
| ) |
|
|
inline |
◆ orb()
CORBA::ORB_var hpp::corba::ServerBase::orb |
( |
| ) |
|
|
inline |
◆ poa()
PortableServer::POA_var hpp::corba::ServerBase::poa |
( |
| ) |
|
|
inline |
The Portable Object Adapter used to active the server.
◆ processRequest()
int hpp::corba::ServerBase::processRequest |
( |
bool |
loop | ) |
|
If ORB work is pending, process it.
- Parameters
-
loop | if true, the function never returns; if false, the function processes pending requests and returns. |
◆ setServant()
void hpp::corba::ServerBase::setServant |
( |
CORBA::Object_ptr |
obj | ) |
|
|
protected |
◆ startCorbaServer() [1/3]
int hpp::corba::ServerBase::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 and declare it to the NameService (DNS for CORBA)
- Parameters
-
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 |
- Returns
- 0 if success, -1 if failure.
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.
◆ startCorbaServer() [2/3]
int hpp::corba::ServerBase::startCorbaServer |
( |
const std::string & |
contextId, |
|
|
const std::string & |
contextKind |
|
) |
| |
Initialize CORBA server to process requests from clients and declare it to the NameService (DNS for CORBA)
- Parameters
-
contextId | first part of context name |
contextKind | second part of context name |
- Returns
- 0 if success, -1 if failure.
The CORBA server is referenced in the name server by context and name: contextId.contextKind.
◆ startCorbaServer() [3/3]
int hpp::corba::ServerBase::startCorbaServer |
( |
| ) |
|
Initialize CORBA server to process requests from clients.
◆ hppContext_
CosNaming::NamingContext_var hpp::corba::ServerBase::hppContext_ |
|
protected |
◆ ins_poa_
PortableServer::POA_var hpp::corba::ServerBase::ins_poa_ |
|
protected |
◆ main_poa_
PortableServer::POA_var hpp::corba::ServerBase::main_poa_ |
|
protected |
◆ orb_
CORBA::ORB_var hpp::corba::ServerBase::orb_ |
|
protected |
◆ poa_
PortableServer::POA_var hpp::corba::ServerBase::poa_ |
|
protected |
The documentation for this class was generated from the following file: