Planeshift
status.h
Go to the documentation of this file.
1 /*
2 * status.h
3 *
4 * Copyright (C) 2008 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 #ifndef NPC_STATUS_HEADER
20 #define NCP_STATUS_HEADER
21 
22 //=============================================================================
23 // Crystal Space Includes
24 //=============================================================================
25 #include <iutil/vfs.h>
26 #include <csutil/threading/thread.h>
27 #include <csutil/csstring.h>
28 
33 struct iObjectRegistry;
34 
38 class NPCStatus
39 {
40 public:
42  static bool Initialize(iObjectRegistry* objreg);
43 
45  static void ScheduleNextRun();
46 
48  static csTicks reportRate;
49 
51  static csString reportFile;
52 
53  static unsigned int count;
54 };
55 
58 #endif
static bool Initialize(iObjectRegistry *objreg)
Reads config files, starts periodical status generator.
static csTicks reportRate
Interval in milliseconds to generate a report file.
Definition: status.h:48
static csString reportFile
File that it should log to.
Definition: status.h:51
static void ScheduleNextRun()
Has the generator run in a while.
This class is used to record the status of the npcclient to display it on a website so people can see...
Definition: status.h:38
static unsigned int count
Definition: status.h:53