Orocos Real-Time Toolkit
2.8.3
|
This class parses and executes a single scripting statement. More...
#include <rtt/scripting/StatementProcessor.hpp>
Classes | |
struct | D |
Public Member Functions | |
StatementProcessor (TaskContext *tc) | |
~StatementProcessor () | |
int | execute (const std::string &code) |
Execute a script statement. More... | |
This class parses and executes a single scripting statement.
Definition at line 57 of file StatementProcessor.hpp.
RTT::scripting::StatementProcessor::StatementProcessor | ( | TaskContext * | tc | ) |
Definition at line 174 of file StatementProcessor.cpp.
References RTT::scripting::StatementProcessor::D::tc.
RTT::scripting::StatementProcessor::~StatementProcessor | ( | ) |
Definition at line 180 of file StatementProcessor.cpp.
int RTT::scripting::StatementProcessor::execute | ( | const std::string & | code | ) |
Execute a script statement.
-1 | a parse error occured. |
0 | statement executed |
Definition at line 184 of file StatementProcessor.cpp.
References RTT::Logger::Debug, RTT::Logger::endl(), RTT::Logger::Error, RTT::Logger::log(), RTT::Logger::nl(), RTT::scripting::Parser::parseExpression(), RTT::scripting::Parser::parseValueChange(), RTT::scripting::StatementProcessor::D::printResult(), RTT::TaskContext::provides(), RTT::scripting::StatementProcessor::D::tc, RTT::parse_exception::what(), and RTT::scripting::parse_exception_parser_fail::what().
Referenced by RTT::scripting::ScriptingService::execute().