Orocos Real-Time Toolkit  2.9.0
Public Member Functions | List of all members
RTT::scripting::ArgumentsParser Class Reference

This is a parser that you construct to parse a set of arguments. More...

#include <rtt/scripting/ArgumentsParser.hpp>

Public Member Functions

 ArgumentsParser (ExpressionParser &p, TaskContext *peer, Service::shared_ptr tobject, const std::string &object, const std::string &method)
 Construct a new ArgumentsParser. More...
 
 ~ArgumentsParser ()
 
TaskContextpeer ()
 
Service::shared_ptr object ()
 
rule_tparser ()
 
std::vector< base::DataSourceBase::shared_ptrresult ()
 Get the parsed internal::DataSource's. More...
 
bool parsed () const
 Some syntaxes allow an argument list to be left out, and then this variable is useful to find out whether an argument list was actually parsed or not. More...
 
std::string objectname ()
 
std::string methodname ()
 

Detailed Description

This is a parser that you construct to parse a set of arguments.

It is meant to only be constructed after the objectname and methodname have been parsed. You should then assign its parser to a rule ( it is one of boost.spirit coolest features that it allows to do this during parsing ), and get the results back after the rule is done.. You are supposed to construct a new ArgumentsParser for every method call you see.

Definition at line 66 of file ArgumentsParser.hpp.

Constructor & Destructor Documentation

RTT::ArgumentsParser::ArgumentsParser ( ExpressionParser p,
TaskContext peer,
Service::shared_ptr  tobject,
const std::string &  object,
const std::string &  method 
)

Construct a new ArgumentsParser.

The object and method parameters are for use in its error messages, and will otherwise not be used..

Definition at line 52 of file ArgumentsParser.cpp.

References RTT::scripting::ExpressionParser::dropResult(), RTT::scripting::ExpressionParser::getResult(), and RTT::scripting::ExpressionParser::parser().

RTT::ArgumentsParser::~ArgumentsParser ( )

Definition at line 86 of file ArgumentsParser.cpp.

Member Function Documentation

std::string RTT::scripting::ArgumentsParser::methodname ( )
inline

Definition at line 130 of file ArgumentsParser.hpp.

Referenced by RTT::scripting::DataCallParser::DataCallParser().

Service::shared_ptr RTT::scripting::ArgumentsParser::object ( )
inline

Definition at line 99 of file ArgumentsParser.hpp.

Referenced by RTT::scripting::DataCallParser::DataCallParser().

std::string RTT::scripting::ArgumentsParser::objectname ( )
inline
bool RTT::scripting::ArgumentsParser::parsed ( ) const
inline

Some syntaxes allow an argument list to be left out, and then this variable is useful to find out whether an argument list was actually parsed or not.

Definition at line 121 of file ArgumentsParser.hpp.

rule_t& RTT::scripting::ArgumentsParser::parser ( )
inline
TaskContext* RTT::scripting::ArgumentsParser::peer ( )
inline

Definition at line 94 of file ArgumentsParser.hpp.

std::vector<base::DataSourceBase::shared_ptr> RTT::scripting::ArgumentsParser::result ( )
inline

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