Orocos Real-Time Toolkit  2.6.0
Static Public Member Functions
RTT::corba::TaskContextFactory Class Reference

Use this class to create Corba TaskContext proxies, without including any CORBA header. More...

#include <rtt/transports/corba/TaskContextFactory.hpp>

List of all members.

Static Public Member Functions

static bool InitOrb (int argc, char *argv[], Seconds orb_timeout=0)
 Invoke this method once to initialise the Orb which will run the task servers.
static void DestroyOrb ()
 Invoke this method once to cleanup the orb.
static TaskContextCreate (std::string name, bool is_ior=false)
 Factory method: create a CORBA Proxy for an existing TaskContextServer.
static TaskContextCreateFromFile (std::string filename)
 Factory method: create a CORBA Proxy for an existing TaskContextServer.

Detailed Description

Use this class to create Corba TaskContext proxies, without including any CORBA header.

This allows you to build applications that don't link with a CORBA library.

Definition at line 52 of file TaskContextFactory.hpp.


Member Function Documentation

RTT::TaskContext * RTT::corba::TaskContextFactory::Create ( std::string  name,
bool  is_ior = false 
) [static]

Factory method: create a CORBA Proxy for an existing TaskContextServer.

Parameters:
nameThe name of the TaskContextServer to connect to or the Object Reference of the object to connect to
is_iorset to true if name is an IOR. Defaults to false.
Return values:
0if the ORB is not initialised
Returns:
A new or previously created CORBA proxy for name.

Definition at line 52 of file TaskContextFactory.cpp.

References RTT::corba::TaskContextProxy::Create().

Factory method: create a CORBA Proxy for an existing TaskContextServer.

Parameters:
filenameA file containing an IOR which refers to the existing TaskContextServer.
Return values:
0if the ORB is not initialised
Returns:
A new or previously created CORBA proxy for filename.

Definition at line 57 of file TaskContextFactory.cpp.

References RTT::corba::TaskContextProxy::CreateFromFile().

bool RTT::corba::TaskContextFactory::InitOrb ( int  argc,
char *  argv[],
Seconds  orb_timeout = 0 
) [static]

Invoke this method once to initialise the Orb which will run the task servers.

Parameters:
orb_timeouttimeout value for each remote call, expressed in seconds. The resolution is up to 100 nano seconds. Anything smaller will be interpreted as a zero.

Definition at line 42 of file TaskContextFactory.cpp.


The documentation for this class was generated from the following files: