Public Member Functions | |
CClientStats () | |
~CClientStats () | |
void | PutTimeStamp (const time_t t=time(NULL)) |
void | increment (const CmpqsFactortypes::Factortype FType) |
increment the counter for the given type or factor (eg. static,SLP,DLP) | |
const string | info () const |
const string | XML_info () const |
Static Protected Member Functions | |
static void | lock () |
static void | unlock () |
Private Attributes | |
unsigned int | counter [Factortype_size] |
time_t | first_connect |
time_t | timestamp |
Static Private Attributes | |
static CMutex | Mutex |
static unsigned int | overall_counter [Factortype_size] = {0} |
Definition at line 71 of file mpqsStatistics.cc.
statistical_data::CClientStats::CClientStats | ( | ) | [inline] |
Definition at line 83 of file mpqsStatistics.cc.
statistical_data::CClientStats::~CClientStats | ( | ) | [inline] |
Definition at line 84 of file mpqsStatistics.cc.
static void statistical_data::CClientStats::lock | ( | ) | [inline, static, protected] |
Definition at line 79 of file mpqsStatistics.cc.
References CMutex::lock(), and Mutex.
Referenced by increment(), info(), PutTimeStamp(), and XML_info().
static void statistical_data::CClientStats::unlock | ( | ) | [inline, static, protected] |
Definition at line 80 of file mpqsStatistics.cc.
References Mutex, and CMutex::unlock().
Referenced by increment(), info(), PutTimeStamp(), and XML_info().
void statistical_data::CClientStats::PutTimeStamp | ( | const time_t | t = time(NULL) |
) | [inline] |
Definition at line 86 of file mpqsStatistics.cc.
References lock(), timestamp, and unlock().
Referenced by Cprocess_clients::process_data_stream().
void statistical_data::CClientStats::increment | ( | const CmpqsFactortypes::Factortype | FType | ) | [inline] |
increment the counter for the given type or factor (eg. static,SLP,DLP)
Definition at line 94 of file mpqsStatistics.cc.
References counter, lock(), overall_counter, and unlock().
Referenced by Cprocess_clients::process_data_stream().
const string statistical_data::CClientStats::info | ( | ) | const [inline] |
Definition at line 101 of file mpqsStatistics.cc.
References counter, CmpqsFactortypes::double_large_prime, first_connect, flush(), lock(), overall_counter, setprecision(), setw(), CmpqsFactortypes::single_large_prime, CmpqsFactortypes::static_prime, timestamp, and unlock().
const string statistical_data::CClientStats::XML_info | ( | ) | const [inline] |
Definition at line 127 of file mpqsStatistics.cc.
References counter, CmpqsFactortypes::double_large_prime, first_connect, flush(), lock(), overall_counter, setprecision(), setw(), CmpqsFactortypes::single_large_prime, CmpqsFactortypes::static_prime, timestamp, and unlock().
CMutex statistical_data::CClientStats::Mutex [static, private] |
unsigned int statistical_data::CClientStats::overall_counter = {0} [static, private] |
unsigned int statistical_data::CClientStats::counter[Factortype_size] [private] |
time_t statistical_data::CClientStats::first_connect [private] |
time_t statistical_data::CClientStats::timestamp [private] |
Definition at line 77 of file mpqsStatistics.cc.
Referenced by info(), PutTimeStamp(), and XML_info().