Public Member Functions | List of all members
graphics::corbaServer::Server Class Reference

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)
 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...
 
WindowsManagerPtr_t windowsManager () const
 

Detailed Description

Implementation of Hpp module Corba server.

This class initializes the Corba server and starts the following Corba interface implementations.

Constructor & Destructor Documentation

◆ Server()

graphics::corbaServer::Server::Server ( WindowsManagerPtr_t  windowsManager,
int  argc,
const char *  argv[],
bool  multiThread = false 
)

Constructor.

Parameters
theobject that handles CORBA requests.
argc,argvparameter to feed ORB initialization.
multiThreadwhether the server may process request using multithred policy.
Note
It is recommended to configure your Corba implementation through environment variables and to set argc to 1 and argv to any string.
It is highly recommended not to enable multi-thread policy in CORBA request processing if this library is run from an openGL based GUI, since OpenGL does not support multithreading.

◆ ~Server()

graphics::corbaServer::Server::~Server ( )

Shutdown CORBA server.

Member Function Documentation

◆ processRequest()

int graphics::corbaServer::Server::processRequest ( bool  loop)

If ORB work is pending, process it.

Parameters
loopif true, the function never returns, if false, the function processes pending requests and returns.

◆ startCorbaServer()

void graphics::corbaServer::Server::startCorbaServer ( )

Initialize CORBA server to process requests from clients.

Returns
0 if success, -1 if failure.

◆ windowsManager()

WindowsManagerPtr_t graphics::corbaServer::Server::windowsManager ( ) const
inline