Public Member Functions

ana::stats Struct Reference

A network statistics object, describes statistics for a given time period. More...

#include <stats.hpp>

List of all members.

Public Member Functions

virtual ~stats ()
virtual size_t uptime () const =0
 Returns the amount of seconds since creation.
virtual size_t packets_in () const =0
 Returns the amount of received packets for a particular collected statistics object.
virtual size_t packets_out () const =0
 Returns the amount of sent packets for a particular collected statistics object.
virtual size_t bytes_in () const =0
 Returns the amount of received bytes for a particular collected statistics object.
virtual size_t bytes_out () const =0
 Returns the amount of sent bytes for a particular collected statistics object.

Detailed Description

A network statistics object, describes statistics for a given time period.

Definition at line 62 of file stats.hpp.


Constructor & Destructor Documentation

virtual ana::stats::~stats (  )  [inline, virtual]

Definition at line 64 of file stats.hpp.


Member Function Documentation

virtual size_t ana::stats::bytes_in (  )  const [pure virtual]

Returns the amount of received bytes for a particular collected statistics object.

Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), network::get_connection_stats(), and ChatClient::parse_command().

Here is the caller graph for this function:

virtual size_t ana::stats::bytes_out (  )  const [pure virtual]

Returns the amount of sent bytes for a particular collected statistics object.

Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), network::get_connection_stats(), and ChatClient::parse_command().

Here is the caller graph for this function:

virtual size_t ana::stats::packets_in (  )  const [pure virtual]

Returns the amount of received packets for a particular collected statistics object.

Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), and ChatClient::parse_command().

Here is the caller graph for this function:

virtual size_t ana::stats::packets_out (  )  const [pure virtual]

Returns the amount of sent packets for a particular collected statistics object.

Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), and ChatClient::parse_command().

Here is the caller graph for this function:

virtual size_t ana::stats::uptime (  )  const [pure virtual]

Returns the amount of seconds since creation.

Referenced by network::get_connection_stats(), and ChatClient::parse_command().

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:18:02 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs