Orocos Real-Time Toolkit  2.9.0
Public Member Functions | List of all members
RTT::scripting::ConditionParser Class Reference

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_tparser ()
 
ConditionInterfacegetParseResult ()
 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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

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().

rule_t& RTT::scripting::ConditionParser::parser ( )
inline
void RTT::ConditionParser::reset ( )

The documentation for this class was generated from the following files: