dynamicgraph::corba::Interpreter Class Reference

#include <dynamic-graph/corba/interpreter.hh>

Public Member Functions

 Interpreter ()
 Constructor. More...
 
void startCorbaServer (const std::string &contextId, const std::string &contextKind, const std::string &objectId, const std::string &objectKind)
 Start corba server. More...
 
int processRequest (bool inLoop)
 Process pending Corba requests. More...
 
void python (const std::string &inCommand, CORBA::String_out res, CORBA::String_out out, CORBA::String_out err)
 Locally run python command in interpreterd, return result, stderr and stdout. More...
 
std::string python (const std::string &inCommand)
 Locally run python command in interpreterd, return only result. More...
 
python::Interpreter & local ()
 Return a reference to the local python interpreter. More...
 

Constructor & Destructor Documentation

◆ Interpreter()

dynamicgraph::corba::Interpreter::Interpreter ( )

Constructor.

Member Function Documentation

◆ local()

python::Interpreter& dynamicgraph::corba::Interpreter::local ( )

Return a reference to the local python interpreter.

◆ processRequest()

int dynamicgraph::corba::Interpreter::processRequest ( bool  inLoop)

Process pending Corba requests.

Parameters
inLoopwhether the function should return after processing pending requests or loop and wait for forthcoming requests.

◆ python() [1/2]

void dynamicgraph::corba::Interpreter::python ( const std::string &  inCommand,
CORBA::String_out  res,
CORBA::String_out  out,
CORBA::String_out  err 
)

Locally run python command in interpreterd, return result, stderr and stdout.

◆ python() [2/2]

std::string dynamicgraph::corba::Interpreter::python ( const std::string &  inCommand)

Locally run python command in interpreterd, return only result.

◆ startCorbaServer()

void dynamicgraph::corba::Interpreter::startCorbaServer ( const std::string &  contextId,
const std::string &  contextKind,
const std::string &  objectId,
const std::string &  objectKind 
)

Start corba server.

Parameters
contextId,contextKind,objectId,objectKindidentification of the server in corba name server. Can be understood as a filename in a directory: contextId.contextKind/objectId.objectKind.