#include <ConditionParser.hpp>
Public Member Functions | |
ConditionParser (TaskContext *context, ExecutionEngine *caller, CommonParser &cp) | |
ConditionInterface * | getParseResult () |
std::pair< base::ActionInterface *, ConditionInterface * > | getParseResultAsCommand () |
rule_t & | parser () |
void | reset () |
~ConditionParser () | |
Private Member Functions | |
void | seendonecondition () |
void | seenexpression () |
Private Attributes | |
CommonParser & | commonparser |
rule_t | condition |
TaskContext * | context |
internal::DataSource< bool >::shared_ptr | ds_bool |
ExpressionParser | expressionparser |
This is a class containing a parse function for conditions. It is used by ProgramParser, and probably other parser's too in the future...
Definition at line 61 of file ConditionParser.hpp.
RTT::ConditionParser::ConditionParser | ( | TaskContext * | context, |
ExecutionEngine * | caller, | ||
CommonParser & | cp | ||
) |
conditions used to be more complex, but nowadays, they're just boolean expressions..
Definition at line 62 of file ConditionParser.cpp.
RTT::ConditionParser::~ConditionParser | ( | ) |
Definition at line 82 of file ConditionParser.cpp.
ConditionInterface * RTT::ConditionParser::getParseResult | ( | ) |
Call this to get the parsed condition. If you use it, you should subsequently call reset(), otherwise it will be deleted in the ConditionParser destructor..
Definition at line 109 of file ConditionParser.cpp.
std::pair< ActionInterface *, ConditionInterface * > RTT::ConditionParser::getParseResultAsCommand | ( | ) |
Retrieve the result as a command, condition pair.
Definition at line 118 of file ConditionParser.cpp.
|
inline |
Definition at line 78 of file ConditionParser.hpp.
void RTT::ConditionParser::reset | ( | ) |
Definition at line 76 of file ConditionParser.cpp.
|
private |
|
private |
Definition at line 86 of file ConditionParser.cpp.
|
private |
Definition at line 71 of file ConditionParser.hpp.
|
private |
Definition at line 68 of file ConditionParser.hpp.
|
private |
Definition at line 70 of file ConditionParser.hpp.
|
private |
Definition at line 63 of file ConditionParser.hpp.
|
private |
Definition at line 72 of file ConditionParser.hpp.