StatGrabDriver Class Reference

Inheritance diagram for StatGrabDriver:
Collaboration diagram for StatGrabDriver:

List of all members.

Public Member Functions

 StatGrabDriver (ConfigFile *cf, int section)
int Setup ()
 Initialize the driver.
int Shutdown ()
 Finalize the driver.

Private Member Functions

virtual void Main ()
 Main method for driver thread.
void RefreshData ()

Private Attributes

sg_swap_stats * swap_stats
sg_cpu_percents * cpu_percent
sg_mem_stats * mem_data
double mem_percent
player_devaddr_t mHealthId
player_health_data_t mHealth
int status
int32_t mSleep

Member Function Documentation

void StatGrabDriver::Main (  )  [private, virtual]

Main method for driver thread.

drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Reimplemented from Driver.

References Driver::ProcessMessages().

Here is the call graph for this function:

int StatGrabDriver::Setup (  )  [virtual]

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

int StatGrabDriver::Shutdown (  )  [virtual]

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

References Driver::StopThread().

Here is the call graph for this function:


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

Last updated 12 September 2005 21:38:45