Public Types | Public Member Functions
Tonido::System::StatsGroup Class Reference

Manages Stats and Sends updates to the Stats Service. More...

List of all members.

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

Detailed Description

Manages Stats and Sends updates to the Stats Service.


Constructor & Destructor Documentation

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


Member Function Documentation

void Tonido::System::StatsGroup::addInt ( int  a_index,
uint32_bt  a_value 
)

addInt

Adds a given value for the stat data for a Int

Parameters:
[in]a_indexIndex of the stat
[in]a_valuedata to be added
Returns:
none
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

Parameters:
[in]a_displayNameName of the stats value
[in]a_indexIndex to refer to this stats value
Returns:
none
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

Parameters:
[in]a_displayNameName of the stats value
[in]a_indexIndex to refer to this stats value
Returns:
none
std::string Tonido::System::StatsGroup::getStatsXML ( )

getStatsXML

Returns the data of the XML in a form suitable for sending to UI

Returns:
none
void Tonido::System::StatsGroup::incrementInt ( int  a_index)

incrementInt

Increments the count of the given stats data

Parameters:
[in]a_indexIndex of the stat
Returns:
none
void Tonido::System::StatsGroup::sendUpdate ( )

sendUpdate

Sends an update with data to the StatsService

Returns:
none
void Tonido::System::StatsGroup::updateDouble ( int  a_index,
double  a_value 
)

updateDouble

Updates the stat data for a double

Parameters:
[in]a_indexIndex of the stat
[in]a_valuedata to be written into
Returns:
none
void Tonido::System::StatsGroup::updateInt ( int  a_index,
uint32_bt  a_value 
)

updateInt

Updates the stat data for a Int

Parameters:
[in]a_indexIndex of the stat
[in]a_valuedata to be written into
Returns:
none

Generated on Wed Oct 12 2011 21:46:54. © CodeLathe LLC 2007-2011. All Rights Reserved.