Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::SimulatorScriptReader Class Reference

#include <SimScriptReader.hh>

Inheritance diagram for IDEA::SimulatorScriptReader:

IDEA::SimulatorScriptReaderBase List of all members.

Public Methods

 SimulatorScriptReader (Simulator *simulator)
 ~SimulatorScriptReader ()
bool readScript (const std::string &fileName)
bool parseTimeUnit (std::istringstream &iss, Granularity &g) const
 Will parse the granulity (time unit) defined in iss. Returns true if successfully parsed otherwise returns false. The parsed value will be stored in g.


Static Protected Attributes

std::string SECONDS = "SECONDS"
std::string DECI_SECONDS = "DECI_SECONDS"
std::string CENTI_SECONDS = "CENTI_SECONDS"
std::string MILLI_SECONDS = "MILLI_SECONDS"
std::string MICRO_SECONDS = "MICRO_SECONDS"
std::string NANO_SECONDS = "NANO_SECONDS"

Private Attributes

Simulatorm_Simulator
Granularity m_Granulity

Constructor & Destructor Documentation

IDEA::SimulatorScriptReader::SimulatorScriptReader Simulator   simulator
 

IDEA::SimulatorScriptReader::~SimulatorScriptReader  
 


Member Function Documentation

bool IDEA::SimulatorScriptReaderBase::parseTimeUnit std::istringstream &    iss,
Granularity   g
const [inherited]
 

Will parse the granulity (time unit) defined in iss. Returns true if successfully parsed otherwise returns false. The parsed value will be stored in g.

Can sucessfully parse if iss contains one off the following strings:

  • SECONDS
  • DECI_SECONDS
  • CENTI_SECONDS
  • MILLI_SECONDS
  • MICRO_SECONDS
  • NANO_SECONDS

bool IDEA::SimulatorScriptReader::readScript const std::string &    fileName
 


Member Data Documentation

std::string IDEA::SimulatorScriptReaderBase::CENTI_SECONDS = "CENTI_SECONDS" [static, protected, inherited]
 

std::string IDEA::SimulatorScriptReaderBase::DECI_SECONDS = "DECI_SECONDS" [static, protected, inherited]
 

Granularity IDEA::SimulatorScriptReader::m_Granulity [private]
 

Simulator* IDEA::SimulatorScriptReader::m_Simulator [private]
 

std::string IDEA::SimulatorScriptReaderBase::MICRO_SECONDS = "MICRO_SECONDS" [static, protected, inherited]
 

std::string IDEA::SimulatorScriptReaderBase::MILLI_SECONDS = "MILLI_SECONDS" [static, protected, inherited]
 

std::string IDEA::SimulatorScriptReaderBase::NANO_SECONDS = "NANO_SECONDS" [static, protected, inherited]
 

std::string IDEA::SimulatorScriptReaderBase::SECONDS = "SECONDS" [static, protected, inherited]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:49 2006 for IDEA.