#include <ArgumentsParser.hpp>
Public Member Functions | |
ArgumentsParser (ExpressionParser &p, TaskContext *peer, Service::shared_ptr tobject, const std::string &object, const std::string &method) | |
std::string | methodname () |
Service::shared_ptr | object () |
std::string | objectname () |
bool | parsed () const |
rule_t & | parser () |
TaskContext * | peer () |
std::vector< base::DataSourceBase::shared_ptr > | result () |
~ArgumentsParser () | |
Private Member Functions | |
void | seen_arg () |
void | seenarguments () |
Private Attributes | |
TaskContext * | _peer |
rule_t | argument |
rule_t | arguments |
ExpressionParser & | expressionparser |
std::vector< base::DataSourceBase::shared_ptr > | margs |
std::string | mmethod |
std::string | mobject |
bool | mparsed |
Service::shared_ptr | mtobject |
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.
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 62 of file ArgumentsParser.cpp.
RTT::ArgumentsParser::~ArgumentsParser | ( | ) |
Definition at line 96 of file ArgumentsParser.cpp.
|
inline |
Definition at line 130 of file ArgumentsParser.hpp.
|
inline |
Definition at line 99 of file ArgumentsParser.hpp.
|
inline |
Definition at line 126 of file ArgumentsParser.hpp.
|
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.
|
inline |
Definition at line 104 of file ArgumentsParser.hpp.
|
inline |
Definition at line 94 of file ArgumentsParser.hpp.
|
inline |
Get the parsed internal::DataSource's.
Definition at line 112 of file ArgumentsParser.hpp.
|
private |
Definition at line 85 of file ArgumentsParser.cpp.
|
private |
Definition at line 91 of file ArgumentsParser.cpp.
|
private |
Definition at line 81 of file ArgumentsParser.hpp.
|
private |
Definition at line 72 of file ArgumentsParser.hpp.
|
private |
Definition at line 72 of file ArgumentsParser.hpp.
|
private |
Definition at line 74 of file ArgumentsParser.hpp.
|
private |
Definition at line 69 of file ArgumentsParser.hpp.
|
private |
Definition at line 80 of file ArgumentsParser.hpp.
|
private |
Definition at line 79 of file ArgumentsParser.hpp.
|
private |
Definition at line 70 of file ArgumentsParser.hpp.
|
private |
Definition at line 82 of file ArgumentsParser.hpp.