Parser Class Reference
our class contains the read the text from a file and saving it
More...
#include <Parser.h>
List of all members.
Public Member Functions |
| Parser () |
| ~Parser () |
std::vector< ngl::Transformation > | readText () |
std::vector< int > | readPositions () |
void | parseNumber (tokenizer::iterator &_firstWord) |
| function to parse the Number of entities
|
void | parseTranslate (tokenizer::iterator &_firstWord) |
| function to parse the Translate
|
void | parseRotate (tokenizer::iterator &_firstWord) |
| function to parse the Rotate
|
void | parseScale (tokenizer::iterator &_firstWord) |
| function to parse the Scale
|
void | parsePositions (tokenizer::iterator &_firstWord) |
float | getPrecision () |
| a vector to hold the transformation information
|
Public Attributes |
std::vector< ngl::Transformation > | m_levelTransformation |
ngl::Transformation | m_trans |
| a an object of transformation for storing the intermediate values before storing in the vector
|
float | m_noOfEntities |
| a value to store the number of entities in the file
|
float | m_index |
| a value to iterator the parsed line
|
std::vector< int > | m_obstaclePositions |
| a vector to hold the positions of obstacles
|
bool | m_datastart |
| a bool to indicate the start of script
|
Detailed Description
our class contains the read the text from a file and saving it
Definition at line 32 of file Parser.h.
Constructor & Destructor Documentation
Member Function Documentation
float Parser::getPrecision |
( |
|
) |
[inline] |
void Parser::parseNumber |
( |
tokenizer::iterator & |
_firstWord |
) |
|
function to parse the Number of entities
- Parameters:
-
| _firstWord | an iterator to the tokenizer |
void Parser::parsePositions |
( |
tokenizer::iterator & |
_firstWord |
) |
|
- Parameters:
-
| _firstWord | an iterator to the tokenize |
void Parser::parseRotate |
( |
tokenizer::iterator & |
_firstWord |
) |
|
function to parse the Rotate
- Parameters:
-
| _firstWord | an iterator to the tokenizer |
void Parser::parseScale |
( |
tokenizer::iterator & |
_firstWord |
) |
|
function to parse the Scale
- Parameters:
-
| _firstWord | an iterator to the tokenize |
void Parser::parseTranslate |
( |
tokenizer::iterator & |
_firstWord |
) |
|
function to parse the Translate
- Parameters:
-
| _firstWord | an iterator to the tokenizer |
std::vector<int> Parser::readPositions |
( |
|
) |
|
std::vector<ngl::Transformation> Parser::readText |
( |
|
) |
|
Member Data Documentation
a bool to indicate the start of script
Definition at line 86 of file Parser.h.
a value to iterator the parsed line
Definition at line 80 of file Parser.h.
a value to store the number of entities in the file
Definition at line 78 of file Parser.h.
a vector to hold the positions of obstacles
Definition at line 83 of file Parser.h.
a an object of transformation for storing the intermediate values before storing in the vector
Definition at line 76 of file Parser.h.
The documentation for this class was generated from the following file: