YANE-Framework 1.1.0
Public Member Functions | Protected Member Functions | Protected Attributes

yane::Utils::StatisticsMaster Class Reference

StatisticsMaster base class. More...

List of all members.

Public Member Functions

virtual std::string evaluateStatistics ()
 Function to evaluate the statistic clients as list.
virtual std::string evaluateStatisticsLatexTable (const std::vector< std::string > &list)
 Function to evaluate the statictic clients as latex table.
virtual std::string evaluateStatisticsTable (const std::vector< std::string > &list)
 Function to evaluate the statictic clients as table.
virtual void reset ()
 Function to reset all connected statistic clients.
 StatisticsMaster ()
 Constructor.
virtual ~StatisticsMaster ()
 Destructor.

Protected Member Functions

void registerClient (StatisticsClient *client, const std::string &group)
 Function to register a client.

Protected Attributes

std::map< std::string,
std::vector< StatisticsClient * > > 
_clients
 List of statistic clients.

Detailed Description

Class to use and create the StatisticsMaster. A StatisticsMaster is used to gather statistical data. Usually there is one StatisticsMaster in every program and at least (usually more than) one StatisticsClient.


Member Function Documentation

LIB_EXPORT std::string yane::Utils::StatisticsMaster::evaluateStatisticsLatexTable ( const std::vector< std::string > &  list) [virtual]

Function to evaluate the statictic clients as latex table

Parameters:
listList of statistical data to be evaluated
LIB_EXPORT std::string yane::Utils::StatisticsMaster::evaluateStatisticsTable ( const std::vector< std::string > &  list) [virtual]

Function to evaluate the statictic clients as table

Parameters:
listList of statistical data to be evaluated
LIB_EXPORT void yane::Utils::StatisticsMaster::registerClient ( StatisticsClient client,
const std::string &  group 
) [protected]

Function to register a client

Parameters:
clientObject of class StatisticsClient to be registered
groupGroup to which the client will be registered to