SimulationViewerRecStats Class Reference

Inheritance diagram for SimulationViewerRecStats:
Inheritance graph
[legend]
Collaboration diagram for SimulationViewerRecStats:
Collaboration graph
[legend]

List of all members.

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::stringitsStatsFname
 Filename for the stats.

Detailed Description

Definition at line 46 of file SimulationViewerRecStats.H.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Filename for the stats.

Definition at line 65 of file SimulationViewerRecStats.H.

Referenced by start2().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:25:33 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3