sim Class Reference
#include <sim.h>
Detailed Description
Definition at line 16 of file sim.h.
List of all members.
Member Typedef Documentation
Definition at line 28 of file sim.h.
Definition at line 25 of file sim.h.
Definition at line 26 of file sim.h.
Definition at line 33 of file sim.h.
Definition at line 34 of file sim.h.
Definition at line 31 of file sim.h.
Definition at line 29 of file sim.h.
Definition at line 27 of file sim.h.
Definition at line 32 of file sim.h.
Definition at line 30 of file sim.h.
Constructor & Destructor Documentation
Member Function Documentation
void badExitCleanup |
( |
|
) |
[static, protected] |
bool fork_process |
( |
|
) |
[static, protected] |
ProcessID hook to use the thread group as the process ID.
Definition at line 508 of file sim.cc.
Referenced by run().
int getTermFD |
( |
|
) |
[static, protected] |
void handle_exit |
( |
|
) |
[static, protected] |
void handle_signal |
( |
int |
sig |
) |
[static, protected] |
void manage_process |
( |
|
) |
[static, protected] |
unsigned int measure_usleep_cost |
( |
|
) |
[static, protected] |
bool processCommandLine |
( |
int |
argc, |
|
|
const char * |
argv[] | |
|
) |
| | |
ProcessID hook to set the thread group as the process ID.
Definition at line 514 of file sim.cc.
Referenced by run().
static unsigned int sim_get_time |
( |
|
) |
[static, protected] |
static float sim_getTimeScale |
( |
|
) |
[static, protected] |
void wait_child |
( |
|
) |
[protected] |
Friends And Related Function Documentation
int main |
( |
int |
argc, |
|
|
const char * |
argv[] | |
|
) |
| | [friend] |
friend struct PrimaryThread [friend] |
Definition at line 17 of file sim.h.
Member Data Documentation
pid_t child = static_cast<pid_t>(-1) [static, protected] |
Definition at line 36 of file sim.h.
Referenced by Simulator::cmdDelete(), Simulator::cmdHelp(), Simulator::cmdLoad(), Simulator::cmdPrint(), Simulator::cmdQuit(), Simulator::cmdRunlevel(), Simulator::cmdSave(), Simulator::cmdSet(), SoundPlay::doStart(), Simulator::doStart(), Motion::doStart(), SoundPlay::doStop(), Simulator::doStop(), Motion::doStop(), fork_process(), Motion::gotWakeup(), Main::Main(), Motion::Motion(), processCommandLine(), Simulator::processRunlevel(), Simulator::replaceEntry(), CommandThread::run(), Simulator::run(), run(), Main::run(), sim(), SimConfig::SimConfig(), Simulator::Simulator(), Main::~Main(), and Motion::~Motion().
Definition at line 37 of file sim.h.
Definition at line 73 of file sim.h.
Definition at line 74 of file sim.h.
termios ttyMode [static, protected] |
const char *const usage [static, protected] |
Initial value:
"[-h|--help] [-c|--config config-file] [-s|--seed s1,s2,s3] [cmd1 cmd2 ...]\n"
"\n"
"Commands passed as arguments are commonly of the form var=val, but can\n"
"also be any valid simulator command, such as 'freeze'. If you wish to\n"
"pass a multi-word command, encase the command in quotes.\n"
"\n"
"The first --seed argument is passed to srand and srandom, the second\n"
"and third are passed to the zignor library for normally distributed"
"random numbers."
Definition at line 76 of file sim.h.
Referenced by processCommandLine().
The documentation for this class was generated from the following files:
|