StatGrabDriver Class Reference
Inheritance diagram for StatGrabDriver:

Detailed Description
Definition at line 12 of file statgrab_health.h.
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
| 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.
Definition at line 126 of file statgrab_health.cpp.
| 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.
Definition at line 146 of file statgrab_health.cpp.
References Driver::StopThread().
Here is the call graph for this function:

| 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.
Definition at line 161 of file statgrab_health.cpp.
References mSleep, Driver::ProcessMessages(), and RefreshData().
Here is the call graph for this function:

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