


Public Member Functions | |
Constructors and destructors | |
| SimulationViewerRecStats (OptionManager &mgr, const std::string &descrName="Simulation Viewer Stats", const std::string &tagName="SimulationViewerRecStats") | |
| Constructor. See ModelComponent.H. | |
| virtual | ~SimulationViewerRecStats () |
| Destructor. | |
Protected Member Functions | |
| SIMCALLBACK_DECLARE (SimulationViewerRecStats, SimEventWTAwinner) | |
| Callback for when a new attention shift occurs. | |
| virtual void | start2 () |
| Get started: | |
| virtual void | stop2 () |
| Get stopped: | |
| void | lockFile (const std::string fileName, int &fd, struct flock &fl) const |
| apply an advisory lock on a file | |
| void | unlockFile (const std::string fileName, const int fd, struct flock &fl) const |
| remove an advisory lock on a file | |
| std::string | getObjNameAtLoc (const std::vector< TestImages::ObjData > &objects, const Point2D< int > &loc) |
Protected Attributes | |
| OModelParam< std::string > | itsStatsFname |
| Filename for the stats. | |
Definition at line 46 of file SimulationViewerRecStats.H.
| SimulationViewerRecStats::SimulationViewerRecStats | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Simulation Viewer Stats", |
|||
| const std::string & | tagName = "SimulationViewerRecStats" | |||
| ) |
Constructor. See ModelComponent.H.
Definition at line 56 of file SimulationViewerRecStats.C.
| SimulationViewerRecStats::~SimulationViewerRecStats | ( | ) | [virtual] |
Destructor.
Definition at line 70 of file SimulationViewerRecStats.C.
| void SimulationViewerRecStats::lockFile | ( | const std::string | fileName, | |
| int & | fd, | |||
| struct flock & | fl | |||
| ) | const [protected] |
apply an advisory lock on a file
Definition at line 101 of file SimulationViewerRecStats.C.
| SimulationViewerRecStats::SIMCALLBACK_DECLARE | ( | SimulationViewerRecStats | , | |
| SimEventWTAwinner | ||||
| ) | [protected] |
Callback for when a new attention shift occurs.
| void SimulationViewerRecStats::start2 | ( | ) | [protected, virtual] |
Get started:
Reimplemented from ModelComponent.
Definition at line 74 of file SimulationViewerRecStats.C.
References OModelParam< T >::getVal(), and itsStatsFname.
| void SimulationViewerRecStats::stop2 | ( | ) | [protected, virtual] |
Get stopped:
Reimplemented from ModelComponent.
Definition at line 88 of file SimulationViewerRecStats.C.
| void SimulationViewerRecStats::unlockFile | ( | const std::string | fileName, | |
| const int | fd, | |||
| struct flock & | fl | |||
| ) | const [protected] |
remove an advisory lock on a file
Definition at line 134 of file SimulationViewerRecStats.C.
Filename for the stats.
Definition at line 65 of file SimulationViewerRecStats.H.
Referenced by start2().
1.6.3