YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::Utils::StatisticsClientPerSecond Class Reference

StatisticsClientPerSecond class. More...

Inheritance diagram for yane::Utils::StatisticsClientPerSecond:
Collaboration diagram for yane::Utils::StatisticsClientPerSecond:

List of all members.

Public Member Functions

void addValue (double value)
 Function to add an double value to the statistical data.
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.
 StatisticsClientPerSecond (StatisticsMaster *master, const std::string &group, const std::string &name, int prec)
virtual ~StatisticsClientPerSecond ()

Protected Attributes

 Pointer of class yane::Utils::RTClock object.
std::string _group
 Name of the group the client belongs to.
 Pointer of the StatisticsMaster object to which the client is connected to.
std::string _name
 Name of client.
int _prec
 Precision of output.
double _value
 Per seconds value of the statistical data.

Detailed Description

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

Constructor & Destructor Documentation

LIB_EXPORT yane::Utils::StatisticsClientPerSecond::StatisticsClientPerSecond ( StatisticsMaster master,
const std::string &  group,
const std::string &  name,
int  prec 


masterPointer of the StatisticsMaster class the client belongs to
groupGroup of clients the client belongs to
nameName of the client
precPrecision of output

Member Function Documentation

LIB_EXPORT void yane::Utils::StatisticsClientPerSecond::addValue ( double  value)

Function to add an double value to the statistical data

valueValue to add to the data