scripts::Parser Class Reference

#include <Parser.h>

Public Types

typedef std::vector< DataBlock * >
::iterator 
EntriesIterator

Public Member Functions

 Parser (const std::string &id)
 Constructor that already parses all ufo script files and searches for entries with the given id.
virtual ~Parser ()
const std::vector< DataBlock * > & getEntries ()
DataBlockgetEntryForID (const std::string &id)

Private Member Functions

void skipBlock (Tokeniser &tokeniser)
void parse (const std::string &filename, Tokeniser &tokeniser, const std::string &id)

Private Attributes

std::vector< DataBlock * > _entries

Detailed Description

Definition at line 8 of file Parser.h.


Member Typedef Documentation

typedef std::vector<DataBlock*>::iterator scripts::Parser::EntriesIterator

Definition at line 17 of file Parser.h.


Constructor & Destructor Documentation

scripts::Parser::Parser ( const std::string id  ) 

Constructor that already parses all ufo script files and searches for entries with the given id.

Parameters:
id The id to fill the entries list with
virtual scripts::Parser::~Parser (  )  [virtual]

Member Function Documentation

const std::vector<DataBlock*>& scripts::Parser::getEntries (  ) 
Returns:
The list of blocks for the entries the parser has found
DataBlock* scripts::Parser::getEntryForID ( const std::string id  ) 
Returns:
The data block for the given id or null if not found
void scripts::Parser::parse ( const std::string filename,
Tokeniser tokeniser,
const std::string id 
) [private]
void scripts::Parser::skipBlock ( Tokeniser tokeniser  )  [private]

Field Documentation

std::vector<DataBlock*> scripts::Parser::_entries [private]

Definition at line 10 of file Parser.h.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2