Manages Stats and Sends updates to the Stats Service. More...
Public Types | |
|
typedef boost::shared_ptr < StatsGroup > | SharedPtr |
Public Member Functions | |
| StatsGroup (const std::string &a_groupName, Dispatcher *a_dispatcher, int a_numUpdatesToSend, int a_numIntStats, int a_numDoubleStats, bool a_autoUpdate=true) | |
| Ctor. | |
| ~StatsGroup () | |
| Dtor. | |
| void | bindInt (const std::string &a_displayName, int a_index) |
| bindInt | |
| void | bindDouble (const std::string &a_displayName, int a_index) |
| bindDouble | |
| void | updateInt (int a_index, uint32_bt a_value) |
| updateInt | |
| void | addInt (int a_index, uint32_bt a_value) |
| addInt | |
| void | updateDouble (int a_index, double a_value) |
| updateDouble | |
| void | incrementInt (int a_index) |
| incrementInt | |
| void | sendUpdate () |
| sendUpdate | |
| std::string | getStatsXML () |
| getStatsXML | |
Manages Stats and Sends updates to the Stats Service.
| Tonido::System::StatsGroup::StatsGroup | ( | const std::string & | a_groupName, |
| Dispatcher * | a_dispatcher, | ||
| int | a_numUpdatesToSend, | ||
| int | a_numIntStats, | ||
| int | a_numDoubleStats, | ||
| bool | a_autoUpdate = true |
||
| ) |
Ctor.
Details if needed
| Tonido::System::StatsGroup::~StatsGroup | ( | ) |
Dtor.
Details if needed
| void Tonido::System::StatsGroup::addInt | ( | int | a_index, |
| uint32_bt | a_value | ||
| ) |
addInt
Adds a given value for the stat data for a Int
| [in] | a_index | Index of the stat |
| [in] | a_value | data to be added |
| void Tonido::System::StatsGroup::bindDouble | ( | const std::string & | a_displayName, |
| int | a_index | ||
| ) |
bindDouble
Binds a Double to the given display name and to the given index
| [in] | a_displayName | Name of the stats value |
| [in] | a_index | Index to refer to this stats value |
| void Tonido::System::StatsGroup::bindInt | ( | const std::string & | a_displayName, |
| int | a_index | ||
| ) |
bindInt
Binds a Integer to the given display name and to the given index
| [in] | a_displayName | Name of the stats value |
| [in] | a_index | Index to refer to this stats value |
| std::string Tonido::System::StatsGroup::getStatsXML | ( | ) |
getStatsXML
Returns the data of the XML in a form suitable for sending to UI
| void Tonido::System::StatsGroup::incrementInt | ( | int | a_index | ) |
incrementInt
Increments the count of the given stats data
| [in] | a_index | Index of the stat |
| void Tonido::System::StatsGroup::sendUpdate | ( | ) |
| void Tonido::System::StatsGroup::updateDouble | ( | int | a_index, |
| double | a_value | ||
| ) |
updateDouble
Updates the stat data for a double
| [in] | a_index | Index of the stat |
| [in] | a_value | data to be written into |
| void Tonido::System::StatsGroup::updateInt | ( | int | a_index, |
| uint32_bt | a_value | ||
| ) |
updateInt
Updates the stat data for a Int
| [in] | a_index | Index of the stat |
| [in] | a_value | data to be written into |