Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NewSimulatorFile Class Reference

Main class for parsing the simulation file. More...

#include <new_sim_file.h>

Inheritance diagram for NewSimulatorFile:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorFile:

Collaboration graph
[legend]
List of all members.

Public Types

enum  mode { INIT = 0, UPDATE, UNKNOWN }
 in which the class can work

Public Member Functions

 NewSimulatorFile (const char *filename)
 Constructor Open the file <filename> and initialize a GScanner.
 ~NewSimulatorFile ()
 Destructor.
bool Open ()
 Configuration of the GScanner and reading the configuration part of the simulator file.
bool Discover (NewSimulatorDomain *domain)
 Parse the simulation file to discover the HPI values.
int & Mode ()
 Read/Write function fo the private m_mode.

Detailed Description

Main class for parsing the simulation file.


Constructor & Destructor Documentation

NewSimulatorFile::NewSimulatorFile const char *  filename  ) 
 

Constructor Open the file <filename> and initialize a GScanner.

Parameters:
filename Pointer with the simulation filename


Member Function Documentation

bool NewSimulatorFile::Discover NewSimulatorDomain domain  ) 
 

Parse the simulation file to discover the HPI values.

Starting with RPT_TOKEN_HANDLER the rpt information is read inside NewSimulatorFile::process_rpt_token.

Parameters:
domain Pointer to the domain to which the information should be linked
Returns:
success

bool NewSimulatorFile::Open  ) 
 

Configuration of the GScanner and reading the configuration part of the simulator file.

Inside the method some additional tokens are put to GScanner. Afterwards the CONFIGURATION part is read from the simulation file by calling NewSimulatorFile::process_configuration_token() to configure the class NewSimulatorFile properly.

Returns:
true


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:39:19 2010 for New Simulator by  doxygen 1.4.4