EPS Conduits  v0.0.2-2413
networking over networking
EPS::Stats Class Referencefinal

Manage the EPS::Statistics structure. Differentiate between total statistics, and those gathered in the last minute. More...

#include "Statistics.hpp"

Collaboration diagram for EPS::Stats:

Public Member Functions

 Stats (void)
 Constructor. More...
 
std::string to_string (void) const
 Convert the statistics to a text string for logging. More...
 
bool empty (void) const
 Determine if the statistics are all zero. More...
 
void roll (void)
 Roll the minute stats into the total stats. More...
 

Public Attributes

EPS::Statistics minute_stats
 
EPS::Statistics total_stats
 
bool log_stats
 
bool scorecard_enabled
 
std::string scorecard_filename
 

Detailed Description

Manage the EPS::Statistics structure. Differentiate between total statistics, and those gathered in the last minute.

Constructor & Destructor Documentation

◆ Stats()

EPS::Stats::Stats ( void  )

Constructor.

Member Function Documentation

◆ empty()

bool EPS::Stats::empty ( void  ) const

Determine if the statistics are all zero.

Here is the call graph for this function:

◆ roll()

void EPS::Stats::roll ( void  )

Roll the minute stats into the total stats.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_string()

std::string EPS::Stats::to_string ( void  ) const

Convert the statistics to a text string for logging.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ log_stats

bool EPS::Stats::log_stats

◆ minute_stats

EPS::Statistics EPS::Stats::minute_stats

◆ scorecard_enabled

bool EPS::Stats::scorecard_enabled

◆ scorecard_filename

std::string EPS::Stats::scorecard_filename

◆ total_stats

EPS::Statistics EPS::Stats::total_stats

The documentation for this class was generated from the following files: