Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SimConfig Class Reference

Provides the root dictionary of the simulator configuration, items from SharedGlobals and LoadFileThreads are added as entries in this dictionary. More...

#include <SimConfig.h>

Inheritance diagram for SimConfig:

Detailed Description

Provides the root dictionary of the simulator configuration, items from SharedGlobals and LoadFileThreads are added as entries in this dictionary.

Definition at line 10 of file SimConfig.h.

List of all members.

Public Member Functions

 SimConfig ()
void setLastFile (const std::string &str) const
const std::string & getLastFile () const
virtual unsigned int loadFile (const char *filename)
virtual unsigned int saveFile (const char *filename) const

Public Attributes

std::string cmdPrompt
 Not persistently stored -- [re]set by main(...) on each run.
plist::Primitive< unsigned int > initSimTime
 The "boot" time to start the simulator clock at (default 0).
plist::NamedEnumeration
< SharedGlobals::runlevel_t
tgtRunlevel
 The runlevel the simulator should move to (i.e. stop before 'running' to debug startup code).
plist::Primitive< boolmultiprocess
 The processing/threading model to use -- true to use real process forks a la Aibo/Aperios, or false to just more threads like a sane person would do.

Protected Attributes

std::string lastfile

Constructor & Destructor Documentation

SimConfig (  ) 

Definition at line 12 of file SimConfig.h.


Member Function Documentation

const std::string& getLastFile (  )  const

Definition at line 33 of file SimConfig.h.

Referenced by Simulator::cmdLoad(), and Simulator::cmdSave().

virtual unsigned int loadFile ( const char *  filename  )  [virtual]

Definition at line 36 of file SimConfig.h.

Referenced by Simulator::cmdLoad(), and sim::sim().

virtual unsigned int saveFile ( const char *  filename  )  const [virtual]

Definition at line 40 of file SimConfig.h.

Referenced by Simulator::cmdSave().

void setLastFile ( const std::string &  str  )  const

Definition at line 30 of file SimConfig.h.

Referenced by sim::processCommandLine().


Member Data Documentation

std::string cmdPrompt

Not persistently stored -- [re]set by main(...) on each run.

Definition at line 25 of file SimConfig.h.

Referenced by sim::processCommandLine(), Simulator::processRunlevel(), CommandThread::run(), and Main::run().

The "boot" time to start the simulator clock at (default 0).

Definition at line 26 of file SimConfig.h.

Referenced by sim::sim(), and SimConfig().

std::string lastfile [mutable, protected]

Definition at line 46 of file SimConfig.h.

Referenced by getLastFile(), loadFile(), saveFile(), and setLastFile().

The processing/threading model to use -- true to use real process forks a la Aibo/Aperios, or false to just more threads like a sane person would do.

Definition at line 28 of file SimConfig.h.

Referenced by sim::fork_process(), ConfigErrorCheck::holdMultiprocess(), ConfigErrorCheck::plistValueChanged(), sim::run(), SimConfig(), and ConfigErrorCheck::~ConfigErrorCheck().

The runlevel the simulator should move to (i.e. stop before 'running' to debug startup code).

Definition at line 27 of file SimConfig.h.

Referenced by Simulator::cmdQuit(), Simulator::cmdRunlevel(), sim::run(), and SimConfig().


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:42 2016 by Doxygen 1.6.3