Planeshift
Static Public Member Functions | Static Public Attributes

ServerStatus Class Reference

This class generates logs at a particular interval that has information that can be displayed later on a website. More...

#include <serverstatus.h>

List of all members.

Static Public Member Functions

static bool Initialize (iObjectRegistry *objreg)
 Reads config files, starts periodical status generator.
static void ScheduleNextRun ()
 Has the generator run in a while.

Static Public Attributes

static unsigned int count
static unsigned int mob_birthcount
static unsigned int mob_deathcount
static unsigned int player_deathcount
static csString reportFile
 File that it should log to.
static csTicks reportRate
 Interval in milliseconds to generate a report file.
static unsigned int sold_items
static unsigned int sold_value

Detailed Description

This class generates logs at a particular interval that has information that can be displayed later on a website.

At the moment it overwrites logs but can be easily changed to either create a unique log file for each report ( such as daily ).

Log Format: <server_report time="Time stamp for report" number="number of this report" > <player name="player name" guild="guild name" title="guild rank" security="security level" secret="yes|no" /> <server_report>

Definition at line 64 of file serverstatus.h.


Member Function Documentation

static bool ServerStatus::Initialize ( iObjectRegistry *  objreg) [static]

Reads config files, starts periodical status generator.

static void ServerStatus::ScheduleNextRun ( ) [static]

Has the generator run in a while.


Member Data Documentation

Definition at line 79 of file serverstatus.h.

Definition at line 82 of file serverstatus.h.

Definition at line 81 of file serverstatus.h.

Definition at line 83 of file serverstatus.h.

csString ServerStatus::reportFile [static]

File that it should log to.

Definition at line 77 of file serverstatus.h.

csTicks ServerStatus::reportRate [static]

Interval in milliseconds to generate a report file.

Definition at line 74 of file serverstatus.h.

Definition at line 85 of file serverstatus.h.

Definition at line 86 of file serverstatus.h.


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