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

IDEA::SimulatorScriptReaderBase Class Reference
[SimulatorSimulatorSimulator]

Base class for script readers. More...

#include <SimScriptReaderBase.hh>

Inheritance diagram for IDEA::SimulatorScriptReaderBase:

IDEA::SimulatorScriptReader List of all members.

Public Methods

virtual ~SimulatorScriptReaderBase ()
 Destructor.

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.


Protected Methods

 SimulatorScriptReaderBase ()
 Constructor.


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"

Detailed Description

Base class for script readers.


Constructor & Destructor Documentation

IDEA::SimulatorScriptReaderBase::~SimulatorScriptReaderBase   [virtual]
 

Destructor.

IDEA::SimulatorScriptReaderBase::SimulatorScriptReaderBase   [protected]
 

Constructor.


Member Function Documentation

bool IDEA::SimulatorScriptReaderBase::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.

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

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


Member Data Documentation

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

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

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

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

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

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


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