#include <ConditionParser.hpp>
Public Member Functions | |
ConditionParser (TaskContext *context, ExecutionEngine *caller, CommonParser &cp) | |
ConditionParser (TaskContext *context, ExecutionEngine *caller, CommonParser &cp) | |
ConditionInterface * | getParseResult () |
ConditionInterface * | getParseResult () |
std::pair < base::ActionInterface *, ConditionInterface * > | getParseResultAsCommand () |
std::pair < base::ActionInterface *, ConditionInterface * > | getParseResultAsCommand () |
rule_t & | parser () |
rule_t & | parser () |
void | reset () |
void | reset () |
~ConditionParser () | |
~ConditionParser () | |
Private Member Functions | |
void | seendonecondition () |
void | seendonecondition () |
void | seenexpression () |
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 50 of file install/include/rtt/scripting/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 50 of file ConditionParser.cpp.
RTT::ConditionParser::~ConditionParser | ( | ) |
Definition at line 70 of file ConditionParser.cpp.
RTT::scripting::ConditionParser::ConditionParser | ( | TaskContext * | context, | |
ExecutionEngine * | caller, | |||
CommonParser & | cp | |||
) |
RTT::scripting::ConditionParser::~ConditionParser | ( | ) |
ConditionInterface* RTT::scripting::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..
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 97 of file ConditionParser.cpp.
std::pair<base::ActionInterface*,ConditionInterface*> RTT::scripting::ConditionParser::getParseResultAsCommand | ( | ) |
Retrieve the result as a command, condition pair.
std::pair< ActionInterface *, ConditionInterface * > RTT::ConditionParser::getParseResultAsCommand | ( | ) |
Retrieve the result as a command, condition pair.
Definition at line 106 of file ConditionParser.cpp.
rule_t& RTT::scripting::ConditionParser::parser | ( | ) | [inline] |
Definition at line 78 of file rtt/scripting/ConditionParser.hpp.
rule_t& RTT::scripting::ConditionParser::parser | ( | ) | [inline] |
Definition at line 60 of file install/include/rtt/scripting/ConditionParser.hpp.
void RTT::scripting::ConditionParser::reset | ( | ) |
void RTT::ConditionParser::reset | ( | ) |
Definition at line 64 of file ConditionParser.cpp.
void RTT::scripting::ConditionParser::seendonecondition | ( | ) | [private] |
void RTT::scripting::ConditionParser::seendonecondition | ( | ) | [private] |
void RTT::scripting::ConditionParser::seenexpression | ( | ) | [private] |
void RTT::ConditionParser::seenexpression | ( | ) | [private] |
Definition at line 74 of file ConditionParser.cpp.
Definition at line 53 of file install/include/rtt/scripting/ConditionParser.hpp.
Definition at line 50 of file install/include/rtt/scripting/ConditionParser.hpp.
TaskContext * RTT::scripting::ConditionParser::context [private] |
Definition at line 52 of file install/include/rtt/scripting/ConditionParser.hpp.
internal::DataSource< bool >::shared_ptr RTT::scripting::ConditionParser::ds_bool [private] |
Definition at line 45 of file install/include/rtt/scripting/ConditionParser.hpp.
Definition at line 54 of file install/include/rtt/scripting/ConditionParser.hpp.