YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::Utils::StatisticsClientIntCounter Class Reference

StatisticsClientIntCounter class. More...

Inheritance diagram for yane::Utils::StatisticsClientIntCounter:
[legend]
Collaboration diagram for yane::Utils::StatisticsClientIntCounter:
[legend]

List of all members.

Public Member Functions

void addValue (int value)
 Function to add an integer value to the statistical variable.
virtual std::string formattedData ()
 Output format of the statistical data.
virtual std::string name ()
 Function returning the name of the client.
virtual void reset ()
 Function to reset the client.
void setValue (int value)
 Function to set the value of the statistical variable.
 StatisticsClientIntCounter (StatisticsMaster *master, const std::string &group, const std::string &name)
 Constructor.
virtual ~StatisticsClientIntCounter ()
 Destructor.

Protected Attributes

std::string _group
 Name of the group the client belongs to.
StatisticsMaster_master
 Pointer of the StatisticsMaster object to which the client is connected to.
std::string _name
 Name of client.
int _value
 Value of the statistical variable.

Detailed Description

See also:
StatisticsMaster This class uses a StatisticsMaster to gather integer valued statistical information.

Constructor & Destructor Documentation

LIB_EXPORT yane::Utils::StatisticsClientIntCounter::StatisticsClientIntCounter ( StatisticsMaster master,
const std::string &  group,
const std::string &  name 
)

Constructor

Parameters:
masterPointer of the StatisticsMaster class the client belongs to
groupGroup of clients the client belongs to
nameName of the client

Member Function Documentation

LIB_EXPORT void yane::Utils::StatisticsClientIntCounter::addValue ( int  value)

Function to add an integer value to the statistical variable

Parameters:
valueValue to add to the variable
LIB_EXPORT void yane::Utils::StatisticsClientIntCounter::setValue ( int  value)

Function to set the value of the statistical variable

Parameters:
valueValue the variable is set to