#include <pStatClient.h>
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 () |
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.
|
Definition at line 225 of file pStatClient.h. |
|
Definition at line 226 of file pStatClient.h. |
|
Attempts to establish a connection to the indicated PStatServer. Returns true if successful, false on failure. Definition at line 229 of file pStatClient.h. |
|
Closes the connection previously established.
Definition at line 230 of file pStatClient.h. |
|
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(). |
|
Definition at line 235 of file pStatClient.h. |
|
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. |