Orocos Real-Time Toolkit
2.8.3
|
This is a class containing a parse function for conditions. More...
#include <rtt/scripting/ConditionParser.hpp>
Public Member Functions | |
ConditionParser (TaskContext *context, ExecutionEngine *caller, CommonParser &cp) | |
~ConditionParser () | |
rule_t & | parser () |
ConditionInterface * | getParseResult () |
Call this to get the parsed condition. More... | |
std::pair< base::ActionInterface *, ConditionInterface * > | getParseResultAsCommand () |
Retrieve the result as a command, condition pair. More... | |
void | reset () |
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 52 of file ConditionParser.cpp.
References RTT::scripting::ExpressionParser::parser().
RTT::ConditionParser::~ConditionParser | ( | ) |
Definition at line 72 of file ConditionParser.cpp.
References RTT::scripting::ExpressionParser::dropResult(), and RTT::scripting::ExpressionParser::getResult().
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 99 of file ConditionParser.cpp.
References RTT::internal::DataSource< T >::get().
Referenced by RTT::scripting::StateGraphParser::getParserResult(), parser(), and RTT::scripting::ProgramGraphParser::parserUsed().
std::pair< ActionInterface *, ConditionInterface * > RTT::ConditionParser::getParseResultAsCommand | ( | ) |
Retrieve the result as a command, condition pair.
Definition at line 108 of file ConditionParser.cpp.
References RTT::scripting::EvalCommand::cache().
Referenced by parser(), and RTT::scripting::ProgramGraphParser::parserUsed().
|
inline |
Definition at line 78 of file ConditionParser.hpp.
References getParseResult(), getParseResultAsCommand(), and reset().
Referenced by RTT::scripting::StateGraphParser::StateGraphParser(), and RTT::scripting::ProgramGraphParser::~ProgramGraphParser().
void RTT::ConditionParser::reset | ( | ) |
Definition at line 66 of file ConditionParser.cpp.
Referenced by RTT::scripting::StateGraphParser::getParserResult(), RTT::scripting::ProgramGraphParser::parseFunction(), and parser().