Namespaces | Classes | Functions | Variables
OCL Namespace Reference

Namespaces

namespace  logging
namespace  TCP

Classes

class  CheckSizeDataSource
struct  comcol
class  ConsoleReporting
class  CorbaDeploymentComponent
class  DeploymentComponent
class  FileReporting
class  HelloWorld
class  HMIConsoleOutput
 This component can be used to display messages on the standard output. More...
struct  keycol
class  ListenThread
class  LuaComponent
class  NetcdfReporting
class  OCLTypekit
class  OSService
class  PrintService
class  ReportingComponent
 A Component for periodically reporting Component Port contents to a human readable text format. The default format is a table with a header. More...
class  TcpReporting
 A component which writes data reports to a tcp/ip socket. It can serve different clients. It uses a ASCI-based protocol. More...
class  Testcomp
class  TimerComponent
 A Component interface to the Real-Time types::Toolkit's timer. It must be configured with a Activity which will emit the timeout event of this component. More...
struct  titlecol

Functions

RTT::TaskContextcreateTaskContextProxy (std::string name)
RTT::TaskContextcreateTaskContextProxyIOR (std::string ior)
RTT::TaskContextcreateTaskContextProxyIORFile (std::string iorfilename)
int deployerParseCmdLine (int argc, char **argv, std::string &siteFile, std::vector< std::string > &scriptFiles, std::string &name, bool &requireNameService, po::variables_map &vm, po::options_description *otherOptions)
char getProgramStatusChar (RTT::TaskContext *t, string progname)
char getStateMachineStatusChar (RTT::TaskContext *t, string progname)
char getTaskStatusChar (RTT::TaskContext *t)
bool memberDecomposition (base::DataSourceBase::shared_ptr dsb, PropertyBag &targetbag, DataSource< bool >::shared_ptr &resized)
static std::ostream & nl (std::ostream &__os)
std::ostream & operator<< (std::ostream &os, comcol f)
std::ostream & operator<< (std::ostream &os, keycol f)
std::ostream & operator<< (std::ostream &os, titlecol f)
void str_trim (string &str, char to_trim)
int string_to_oro_sched (const std::string &sched)
prior to calling

Parse the command line arguments for a deployer program The caller can set defaults for and this function. If the user requests a log level for RTT::Logger, then the logging level is set internally by this function. If the user requests help, then the function displays the help and returns a non-0 value. Any error causes the program usage to be displayed, and a non-0 return value.

Parameters:
argcNumber of command line arguments
argvCommand line arguments
siteFileName of the site CPF/XML file for the deployer to load up front
scriptFilesNames of the XML files for the deployer to load and run
nameName of the deployer task
requireNameServiceWhether to require the CORBA name service, or not
vmThe variables map into which the options are parsed.
otherOptionsCaller can pass in other options to check for. If NULL, then is ignored.
Returns:
0 if successful, otherwise an error code
int deployerParseCmdLine (int argc, char **argv, std::string &siteFile, std::vector< std::string > &scriptFiles, std::string &name, bool &requireNameService, boost::program_options::variables_map &vm, boost::program_options::options_description *otherOptions=NULL)

Variables

static int got_signal = -1
std::map< std::string,
RTT::Logger::LogLevel
logMap
std::deque< TaskContext * > taskHistory
static std::set< string > valid_names

Detailed Description

The Orocos Component Library. This namespace contains components for supporting applications, such as the TaskBrowser, DeploymentComponent, ReportingComponent,... hardware access such as the IOComponent, AxesComponent, Kuka361Component,... or higher level application logic such as the CartesianControllerVel or nAxesGeneratorPos.

Note:
Including this header makes all the classes of the RTT namespace available in the OCL namespace. Thus a component written in the OCL namespace does not need to write the repetitive RTT:: scope.

Function Documentation

This helper function looks up a server using the Naming Service and creates a proxy for that object.

Definition at line 43 of file CorbaDeploymentComponent.cpp.

This helper function looks up a server using an IOR file and creates a proxy for that object.

Definition at line 72 of file CorbaDeploymentComponent.cpp.

This helper function looks up a server using an IOR file and creates a proxy for that object.

Definition at line 53 of file CorbaDeploymentComponent.cpp.

int OCL::deployerParseCmdLine ( int  argc,
char **  argv,
std::string &  siteFile,
std::vector< std::string > &  scriptFiles,
std::string &  name,
bool &  requireNameService,
boost::program_options::variables_map &  vm,
boost::program_options::options_description *  otherOptions = NULL 
)
int OCL::deployerParseCmdLine ( int  argc,
char **  argv,
std::string &  siteFile,
std::vector< std::string > &  scriptFiles,
std::string &  name,
bool &  requireNameService,
po::variables_map &  vm,
po::options_description *  otherOptions 
)

Definition at line 65 of file deployer-funcs.cpp.

char OCL::getProgramStatusChar ( RTT::TaskContext t,
string  progname 
)

Definition at line 706 of file TaskBrowser.cpp.

char OCL::getStateMachineStatusChar ( RTT::TaskContext t,
string  progname 
)

Definition at line 700 of file TaskBrowser.cpp.

Helper functions to display task and script states.

Definition at line 685 of file TaskBrowser.cpp.

bool OCL::memberDecomposition ( base::DataSourceBase::shared_ptr  dsb,
PropertyBag targetbag,
DataSource< bool >::shared_ptr &  resized 
)

Decompose a given type using getMember() into a property tree.

This function shares 90% of the code with RTT::types::propertyDecomposition, but is optimised for speed and only uses getMember with references, not the custom decomposeType functions.

Definition at line 87 of file ReportingComponent.cpp.

static std::ostream& OCL::nl ( std::ostream &  __os) [static]

Our own defined "\n"

Definition at line 159 of file TaskBrowser.cpp.

std::ostream& OCL::operator<< ( std::ostream &  os,
comcol  f 
)

Definition at line 1601 of file TaskBrowser.cpp.

std::ostream& OCL::operator<< ( std::ostream &  os,
keycol  f 
)

Definition at line 1605 of file TaskBrowser.cpp.

std::ostream& OCL::operator<< ( std::ostream &  os,
titlecol  f 
)

Definition at line 1609 of file TaskBrowser.cpp.

void OCL::str_trim ( string &  str,
char  to_trim 
)

Definition at line 712 of file TaskBrowser.cpp.

int OCL::string_to_oro_sched ( const std::string &  sched)

Definition at line 623 of file DeploymentComponent.cpp.


Variable Documentation

int OCL::got_signal = -1 [static]

Definition at line 81 of file DeploymentComponent.cpp.

std::map<std::string, RTT::Logger::LogLevel> OCL::logMap
Initial value:
        boost::assign::map_list_of
        ("never",       RTT::Logger::Debug)
        ("fatal",       RTT::Logger::Fatal)
        ("critical",    RTT::Logger::Critical)
        ("error",       RTT::Logger::Error)
        ("warning",     RTT::Logger::Warning)
        ("info",        RTT::Logger::Info)
        ("debug",       RTT::Logger::Debug)
        ("realtime",    RTT::Logger::RealTime)

Definition at line 54 of file deployer-funcs.cpp.

Definition at line 148 of file TaskBrowser.cpp.

std::set<string> OCL::valid_names [static]

I'm using a set to speed up lookups.

Definition at line 79 of file DeploymentComponent.cpp.



ocl
Author(s): OCL Development Team
autogenerated on Mon Oct 6 2014 03:16:37