Panda3D
 All Classes Functions Variables Enumerations
textStats.h
1 // Filename: textStats.h
2 // Created by: drose (12Jul00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef TEXTSTATS_H
16 #define TEXTSTATS_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "programBase.h"
21 #include "pStatServer.h"
22 
23 #include <iostream>
24 #include <fstream>
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : TextStats
28 // Description : A simple, scrolling-text stats server. Guaranteed to
29 // compile on every platform.
30 ////////////////////////////////////////////////////////////////////
31 class TextStats : public ProgramBase, public PStatServer {
32 public:
33  TextStats();
34 
35  virtual PStatMonitor *make_monitor();
36 
37  void run();
38 
39 private:
40  int _port;
41  bool _show_raw_data;
42 
43  //[PECI]
44  bool _got_outputFileName;
45  string _outputFileName;
46  ostream *_outFile;
47 };
48 
49 #endif
50 
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:37
A simple, scrolling-text stats server.
Definition: textStats.h:31
This is an abstract class that presents the interface to any number of different front-ends for the s...
Definition: pStatMonitor.h:43
The overall manager of the network connections.
Definition: pStatServer.h:41