#include </home/sspr/src/www/orocos-1.0/export/build/orocos-rtt-1.2.2/build/rtt/scripting/Parser.hpp>
It parsers Orocos program scripts, Orocos State Contexts and allows to parse a text Command, Condition or Expression to the respective objects.
Public Types | |
| typedef std::vector< ProgramInterfacePtr > | ParsedFunctions |
| List of parsed functions. | |
| typedef std::vector< ProgramInterfacePtr > | ParsedPrograms |
| List of parsed programs. | |
| typedef std::vector< ParsedStateMachinePtr > | ParsedStateMachines |
| List of parsed State Machines. | |
Public Member Functions | |
| ParsedFunctions | parseFunction (const std::string &s, TaskContext *, const std::string &filename="stream") |
| Reads out the string, parses it, and returns a new FunctionGraph. | |
| ParsedPrograms | parseProgram (const std::string &s, TaskContext *, const std::string &filename="stream") |
| Reads out the string, parses it, and returns a new ProgramGraph. | |
| ParsedStateMachines | parseStateMachine (const std::string &s, TaskContext *, const std::string &filename="stream") |
| Reads out the string, parses it, and returns a new ParsedStateMachine. | |
| ConditionInterface * | parseCondition (const std::string &s, TaskContext *) |
| Parses the string as a condition, and returns a new ConditionInterface. | |
| std::pair< CommandInterface *, ConditionInterface * > | parseCommand (const std::string &s, TaskContext *t, bool dispatch) |
| Parses the command in s. | |
| DataSourceBase::shared_ptr | parseExpression (const std::string &s, TaskContext *) |
| Parses the expression in s. | |
| DataSourceBase::shared_ptr | parseValueChange (const std::string &s, TaskContext *) |
| Parses a change of a value in s. | |
| ParsedFunctions parseFunction | ( | const std::string & | s, | |
| TaskContext * | , | |||
| const std::string & | filename = "stream" | |||
| ) |
Reads out the string, parses it, and returns a new FunctionGraph.
| parse_exception | Throws exceptions of type parse_exception. |
| ParsedPrograms parseProgram | ( | const std::string & | s, | |
| TaskContext * | , | |||
| const std::string & | filename = "stream" | |||
| ) |
Reads out the string, parses it, and returns a new ProgramGraph.
| parse_exception | Throws exceptions of type parse_exception. |
| ParsedStateMachines parseStateMachine | ( | const std::string & | s, | |
| TaskContext * | , | |||
| const std::string & | filename = "stream" | |||
| ) |
Reads out the string, parses it, and returns a new ParsedStateMachine.
| file_parse_exception | Throws exceptions of type file_parse_exception. |
| ConditionInterface* parseCondition | ( | const std::string & | s, | |
| TaskContext * | ||||
| ) |
Parses the string as a condition, and returns a new ConditionInterface.
Will throw parse_exception on failure. Use ext to get the data from the components.
| parse_exception |
| std::pair<CommandInterface*,ConditionInterface*> parseCommand | ( | const std::string & | s, | |
| TaskContext * | t, | |||
| bool | dispatch | |||
| ) |
| DataSourceBase::shared_ptr parseExpression | ( | const std::string & | s, | |
| TaskContext * | ||||
| ) |
Parses the expression in s.
| parse_exception | Throws exceptions of type parse_exception. |
| DataSourceBase::shared_ptr parseValueChange | ( | const std::string & | s, | |
| TaskContext * | ||||
| ) |
Parses a change of a value in s.
| parse_exception | Throws exceptions of type parse_exception. |
1.5.1