L-system definition file parser. More...
#include <Parser.hpp>

| Public Member Functions | |
| Parser () | |
| Parser constructor. | |
| void | parse (ifstream &file) | 
| Parse the L-system definition file. | |
| set< char > | getAlphabet () const | 
| Alphabet getter. | |
| string | getAxiom () const | 
| Axiom getter. | |
| multimap< char, string > | getRules () const | 
| Production rules getter. | |
| int | getIterations () const | 
| Number of iterations to run getter. | |
| map< char, string > | getTurtle () const | 
| Turtle graphics getter. | |
| string | getReductionScale () const | 
| Drawing reduction scale getter. | |
| vector< string > | getInitPos () const | 
| Initial position getter. | |
| string | getInitAng () const | 
| Initial angle getter. | |
L-system definition file parser.
Follows a symbolic definition similar to the L-system as is defined in the Wikipedia, but it avoids punctuation marks for convenient parsing issues.
Definition at line 57 of file Parser.hpp.
| Parser::Parser | ( | ) | 
Parser constructor.
| set<char> Parser::getAlphabet | ( | ) | const | 
Alphabet getter.
| string Parser::getAxiom | ( | ) | const | 
Axiom getter.
| string Parser::getInitAng | ( | ) | const | 
Initial angle getter.
| vector<string> Parser::getInitPos | ( | ) | const | 
Initial position getter.
| int Parser::getIterations | ( | ) | const | 
Number of iterations to run getter.
| string Parser::getReductionScale | ( | ) | const | 
Drawing reduction scale getter.
| multimap<char, string> Parser::getRules | ( | ) | const | 
Production rules getter.
| map<char, string> Parser::getTurtle | ( | ) | const | 
| void Parser::parse | ( | ifstream & | file | ) | 
Parse the L-system definition file.
| file | The file. | 
 1.7.1
 1.7.1