Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SimConfig Class Reference

#include <SimConfig.h>

Inheritance diagram for SimConfig:

List of all members.


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.


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< bool > multiprocess
 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 (  )  [inline]

Definition at line 12 of file SimConfig.h.


Member Function Documentation

void setLastFile ( const std::string &  str  )  const [inline]

Definition at line 30 of file SimConfig.h.

Referenced by sim::processCommandLine().

const std::string& getLastFile (  )  const [inline]

Definition at line 33 of file SimConfig.h.

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

Reimplemented from XMLLoadSave.

Definition at line 36 of file SimConfig.h.

Referenced by sim::sim().

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

Reimplemented from XMLLoadSave.

Definition at line 40 of file SimConfig.h.


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(), Simulator::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().

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(), and SimConfig().

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(), sim::ConfigErrorCheck::holdMultiprocess(), sim::ConfigErrorCheck::plistValueChanged(), sim::run(), SimConfig(), and sim::ConfigErrorCheck::~ConfigErrorCheck().

std::string lastfile [mutable, protected]

Definition at line 46 of file SimConfig.h.

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


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

Tekkotsu Hardware Abstraction Layer 4.0
Generated Thu Nov 22 01:01:24 2007 by Doxygen 1.5.4