Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatClient Class Reference

Manages the communications to report statistics via a network connection to a remote PStatServer. More...

#include <pStatClient.h>

List of all members.

Public Member Functions

 PStatClient ()
 ~PStatClient ()

Static Public Member Functions

bool connect (const string &=string(), int=-1)
 Attempts to establish a connection to the indicated PStatServer.

void disconnect ()
 Closes the connection previously established.

bool is_connected ()
 Returns true if the client believes it is connected to a working PStatServer, false otherwise.

void resume_after_pause ()
 Resumes the PStatClient after the simulation has been paused for a while.

void main_tick ()


Detailed Description

Manages the communications to report statistics via a network connection to a remote PStatServer.

Normally, there is only one PStatClient in the world, although it is possible to have multiple PStatClients if extraordinary circumstances require in. Since each PStatCollector registers itself with the PStatClient when it is created, having multiple PStatClients requires special care when constructing the various PStatCollectors.

If DO_PSTATS is not defined, we don't want to use stats at all. This class is therefore defined as a stub class.

Definition at line 223 of file pStatClient.h.


Constructor & Destructor Documentation

PStatClient::PStatClient  )  [inline]
 

Definition at line 225 of file pStatClient.h.

PStatClient::~PStatClient  )  [inline]
 

Definition at line 226 of file pStatClient.h.


Member Function Documentation

bool PStatClient::connect const string &  hostname = string(),
int  port = -1
[inline, static]
 

Attempts to establish a connection to the indicated PStatServer.

Returns true if successful, false on failure.

Definition at line 229 of file pStatClient.h.

void PStatClient::disconnect  )  [inline, static]
 

Closes the connection previously established.

Definition at line 230 of file pStatClient.h.

bool PStatClient::is_connected  )  [inline, static]
 

Returns true if the client believes it is connected to a working PStatServer, false otherwise.

Definition at line 231 of file pStatClient.h.

Referenced by GraphicsStateGuardian::end_bind_lights(), and GraphicsStateGuardian::set_ambient_light().

void PStatClient::main_tick  )  [inline, static]
 

Definition at line 235 of file pStatClient.h.

void PStatClient::resume_after_pause  )  [inline, static]
 

Resumes the PStatClient after the simulation has been paused for a while.

This allows the stats to continue exactly where it left off, instead of leaving a big gap that would represent a chug.

Definition at line 232 of file pStatClient.h.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:28 2003 for Panda by doxygen1.3