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, OperationInterface *tobject, const std::string &object, const std::string &method) | |
Construct a new ArgumentsParser. | |
TaskContext * | peer () |
OperationInterface * | object () |
rule_t & | parser () |
std::vector < DataSourceBase::shared_ptr > | result () |
Get the parsed DataSource's. | |
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. | |
std::string | objectname () |
std::string | methodname () |
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 59 of file ArgumentsParser.hpp.
RTT::detail::ArgumentsParser::ArgumentsParser | ( | ExpressionParser & | p, | |
TaskContext * | peer, | |||
OperationInterface * | 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..
bool RTT::detail::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 99 of file ArgumentsParser.hpp.