Implementation of Hpp module Corba server. More...
#include <gepetto/viewer/corba/server.hh>
Public Member Functions | |
Server (WindowsManagerPtr_t windowsManager, int argc, const char *argv[], bool multiThread=false, bool useNameService=false) | |
Constructor. More... | |
~Server () | |
Shutdown CORBA server. More... | |
void | startCorbaServer () |
Initialize CORBA server to process requests from clients. More... | |
int | processRequest (bool loop) |
If ORB work is pending, process it. More... | |
void | shutdown (bool wait) |
Stop processing requests. More... | |
WindowsManagerPtr_t | windowsManager () const |
void | qparent (QObject *parent) |
Implementation of Hpp module Corba server.
This class initializes the Corba server and starts the following Corba interface implementations.
isMultiThread
specifies whether the server should process requests using multi-thread policy of not. After starting a name server and configuring your Corba implementation, start the servers. gepetto::viewer::corba::Server::Server | ( | WindowsManagerPtr_t | windowsManager, |
int | argc, | ||
const char * | argv[], | ||
bool | multiThread = false , |
||
bool | useNameService = false |
||
) |
Constructor.
the | object that handles CORBA requests. |
argc,argv | parameter to feed ORB initialization. |
multiThread | whether the server may process request using multithred policy. |
gepetto::viewer::corba::Server::~Server | ( | ) |
Shutdown CORBA server.
int gepetto::viewer::corba::Server::processRequest | ( | bool | loop | ) |
If ORB work is pending, process it.
loop | if true, the function never returns, if false, the function processes pending requests and returns. |
void gepetto::viewer::corba::Server::qparent | ( | QObject * | parent | ) |
Referenced by windowsManager().
void gepetto::viewer::corba::Server::shutdown | ( | bool | wait | ) |
Stop processing requests.
wait | if true, the method waits for the server to be shut down. |
void gepetto::viewer::corba::Server::startCorbaServer | ( | ) |
Initialize CORBA server to process requests from clients.
|
inline |
References qparent().