#include <StateGraphParser.hpp>
Public Member Functions | |
ParsedStateMachinePtr | getParserResult () |
std::vector< ParsedStateMachinePtr > | parse (iter_t &begin, iter_t end) |
rule_t & | parser () |
StateGraphParser (iter_t &positer, TaskContext *tc, ExecutionEngine *caller, CommonParser *cp) | |
void | storeOffset () |
~StateGraphParser () | |
Private Types | |
typedef std::map< std::string, StateMachineBuilder * > | machinebuilders_t |
typedef std::map< std::string, ParsedStateMachinePtr > | machinenamemap_t |
typedef std::map< std::string, base::AttributeBase * > | machineparams_t |
typedef std::map< std::string, base::DataSourceBase::shared_ptr > | machineparamvalues_t |
typedef std::map< std::string, StateDescription * > | machinestatesmap_t |
typedef boost::shared_ptr< ParsedStateMachine > | ParsedStateMachinePtr |
This is not a parser in the Boost.spirit sense of the word, it's just a class used to hold the parser and semantic actions..
This class does the actual work. It generates a Finite State Graph, by constructing the State nodes. We just go over the code one single time, and construct the FSM as we go. For every statement, we construct a new GraphNode, and fill it up as we get the information we need.
Definition at line 61 of file StateGraphParser.hpp.
|
private |
Definition at line 80 of file StateGraphParser.hpp.
|
private |
Definition at line 76 of file StateGraphParser.hpp.
|
private |
Definition at line 77 of file StateGraphParser.hpp.
|
private |
Definition at line 78 of file StateGraphParser.hpp.
|
private |
Definition at line 79 of file StateGraphParser.hpp.
|
private |
Definition at line 75 of file StateGraphParser.hpp.
RTT::StateGraphParser::StateGraphParser | ( | iter_t & | positer, |
TaskContext * | tc, | ||
ExecutionEngine * | caller, | ||
CommonParser * | cp | ||
) |
Definition at line 111 of file StateGraphParser.cpp.
RTT::StateGraphParser::~StateGraphParser | ( | ) |
Definition at line 803 of file StateGraphParser.cpp.
|
private |
Definition at line 811 of file StateGraphParser.cpp.
|
private |
Definition at line 529 of file StateGraphParser.cpp.
|
private |
Definition at line 417 of file StateGraphParser.cpp.
ParsedStateMachinePtr RTT::StateGraphParser::getParserResult | ( | ) |
Returns the last state machine instantiation of parser() or null if no instantiations were seen.
Definition at line 331 of file StateGraphParser.cpp.
|
private |
Definition at line 915 of file StateGraphParser.cpp.
|
private |
Definition at line 405 of file StateGraphParser.cpp.
|
private |
Definition at line 514 of file StateGraphParser.cpp.
std::vector< ParsedStateMachinePtr > RTT::StateGraphParser::parse | ( | iter_t & | begin, |
iter_t | end | ||
) |
Definition at line 739 of file StateGraphParser.cpp.
rule_t & RTT::StateGraphParser::parser | ( | ) |
Returns the top-level parser for state machines. It parses one state machine definition or one state machine instantiation.
Definition at line 327 of file StateGraphParser.cpp.
Definition at line 905 of file StateGraphParser.cpp.
|
private |
Definition at line 468 of file StateGraphParser.cpp.
|
private |
Definition at line 462 of file StateGraphParser.cpp.
|
private |
Definition at line 455 of file StateGraphParser.cpp.
|
private |
Definition at line 639 of file StateGraphParser.cpp.
|
private |
Definition at line 422 of file StateGraphParser.cpp.
|
private |
Definition at line 507 of file StateGraphParser.cpp.
Definition at line 477 of file StateGraphParser.cpp.
|
private |
Definition at line 646 of file StateGraphParser.cpp.
|
private |
Definition at line 429 of file StateGraphParser.cpp.
|
private |
Definition at line 346 of file StateGraphParser.cpp.
|
private |
Definition at line 436 of file StateGraphParser.cpp.
|
private |
Definition at line 341 of file StateGraphParser.cpp.
Definition at line 992 of file StateGraphParser.cpp.
|
private |
Definition at line 1016 of file StateGraphParser.cpp.
Definition at line 998 of file StateGraphParser.cpp.
|
private |
Definition at line 1004 of file StateGraphParser.cpp.
|
private |
Definition at line 1094 of file StateGraphParser.cpp.
Definition at line 983 of file StateGraphParser.cpp.
|
private |
Definition at line 1086 of file StateGraphParser.cpp.
|
private |
Definition at line 652 of file StateGraphParser.cpp.
|
private |
Definition at line 923 of file StateGraphParser.cpp.
|
private |
Definition at line 934 of file StateGraphParser.cpp.
|
private |
Definition at line 443 of file StateGraphParser.cpp.
Definition at line 523 of file StateGraphParser.cpp.
|
private |
Definition at line 374 of file StateGraphParser.cpp.
|
private |
Definition at line 666 of file StateGraphParser.cpp.
Definition at line 874 of file StateGraphParser.cpp.
|
private |
Definition at line 956 of file StateGraphParser.cpp.
|
private |
Definition at line 450 of file StateGraphParser.cpp.
|
private |
Definition at line 930 of file StateGraphParser.cpp.
Definition at line 351 of file StateGraphParser.cpp.
void RTT::StateGraphParser::storeOffset | ( | ) |
Stores the current position in the input stream (iterator received from the constructor) in order to be able to extract the statemachine's text from the input stream. You need to call this function once before using the parser().
Definition at line 897 of file StateGraphParser.cpp.
|
private |
Definition at line 138 of file StateGraphParser.hpp.
|
private |
Definition at line 162 of file StateGraphParser.hpp.
|
private |
Definition at line 120 of file StateGraphParser.hpp.
|
private |
Definition at line 66 of file StateGraphParser.hpp.
|
private |
Definition at line 158 of file StateGraphParser.hpp.
|
private |
Definition at line 159 of file StateGraphParser.hpp.
|
private |
Definition at line 64 of file StateGraphParser.hpp.
|
private |
Definition at line 116 of file StateGraphParser.hpp.
|
private |
Definition at line 101 of file StateGraphParser.hpp.
|
private |
Definition at line 94 of file StateGraphParser.hpp.
|
private |
Definition at line 93 of file StateGraphParser.hpp.
|
private |
Definition at line 87 of file StateGraphParser.hpp.
|
private |
Definition at line 89 of file StateGraphParser.hpp.
|
private |
Definition at line 90 of file StateGraphParser.hpp.
|
private |
Definition at line 88 of file StateGraphParser.hpp.
|
private |
Definition at line 91 of file StateGraphParser.hpp.
|
private |
Definition at line 92 of file StateGraphParser.hpp.
|
private |
Definition at line 96 of file StateGraphParser.hpp.
|
private |
Definition at line 68 of file StateGraphParser.hpp.
|
private |
Definition at line 95 of file StateGraphParser.hpp.
|
private |
Definition at line 84 of file StateGraphParser.hpp.
|
private |
Definition at line 147 of file StateGraphParser.hpp.
|
private |
Definition at line 100 of file StateGraphParser.hpp.
|
private |
Definition at line 99 of file StateGraphParser.hpp.
|
private |
Definition at line 132 of file StateGraphParser.hpp.
|
private |
store line number of select's 'if' statement.
Definition at line 114 of file StateGraphParser.hpp.
|
private |
Definition at line 143 of file StateGraphParser.hpp.
|
private |
Definition at line 115 of file StateGraphParser.hpp.
|
private |
Definition at line 140 of file StateGraphParser.hpp.
|
private |
Definition at line 161 of file StateGraphParser.hpp.
|
private |
Definition at line 117 of file StateGraphParser.hpp.
|
private |
Definition at line 139 of file StateGraphParser.hpp.
|
private |
Definition at line 146 of file StateGraphParser.hpp.
|
private |
Definition at line 111 of file StateGraphParser.hpp.
|
private |
Definition at line 73 of file StateGraphParser.hpp.
|
private |
Definition at line 155 of file StateGraphParser.hpp.
|
private |
Definition at line 83 of file StateGraphParser.hpp.
|
private |
Definition at line 154 of file StateGraphParser.hpp.
|
private |
Definition at line 124 of file StateGraphParser.hpp.
|
private |
Definition at line 150 of file StateGraphParser.hpp.
|
private |
Definition at line 149 of file StateGraphParser.hpp.
|
private |
Definition at line 151 of file StateGraphParser.hpp.
|
private |
Definition at line 153 of file StateGraphParser.hpp.
|
private |
Definition at line 152 of file StateGraphParser.hpp.
|
private |
Definition at line 70 of file StateGraphParser.hpp.
|
private |
Definition at line 121 of file StateGraphParser.hpp.
|
private |
Definition at line 85 of file StateGraphParser.hpp.
|
private |
Definition at line 69 of file StateGraphParser.hpp.
|
private |
Definition at line 163 of file StateGraphParser.hpp.
|
private |
Definition at line 134 of file StateGraphParser.hpp.
|
private |
Definition at line 133 of file StateGraphParser.hpp.
|
private |
Definition at line 119 of file StateGraphParser.hpp.
|
private |
Definition at line 97 of file StateGraphParser.hpp.
|
private |
Definition at line 144 of file StateGraphParser.hpp.
|
private |
Definition at line 141 of file StateGraphParser.hpp.
|
private |
Definition at line 145 of file StateGraphParser.hpp.
|
private |
used to sort conditions as they are generated and inserted in the StateMachine.
Definition at line 110 of file StateGraphParser.hpp.
|
private |
Definition at line 122 of file StateGraphParser.hpp.
|
private |
Definition at line 82 of file StateGraphParser.hpp.
|
private |
Definition at line 135 of file StateGraphParser.hpp.
|
private |
Definition at line 71 of file StateGraphParser.hpp.
|
private |
are we instantiating a rootmachine ?
Definition at line 112 of file StateGraphParser.hpp.
|
private |
Definition at line 148 of file StateGraphParser.hpp.
|
private |
Definition at line 127 of file StateGraphParser.hpp.
|
private |
Definition at line 130 of file StateGraphParser.hpp.
|
private |
Definition at line 131 of file StateGraphParser.hpp.
|
private |
Definition at line 123 of file StateGraphParser.hpp.
|
private |
Definition at line 125 of file StateGraphParser.hpp.
|
private |
Definition at line 129 of file StateGraphParser.hpp.
|
private |
Definition at line 156 of file StateGraphParser.hpp.
|
private |
Definition at line 137 of file StateGraphParser.hpp.
|
private |
Definition at line 136 of file StateGraphParser.hpp.
|
private |
Definition at line 142 of file StateGraphParser.hpp.
|
private |
Definition at line 98 of file StateGraphParser.hpp.
|
private |
Definition at line 160 of file StateGraphParser.hpp.
|
private |
Definition at line 128 of file StateGraphParser.hpp.
|
private |
Definition at line 86 of file StateGraphParser.hpp.
|
private |
Definition at line 126 of file StateGraphParser.hpp.