Panda3D

textStats.h

00001 // Filename: textStats.h
00002 // Created by:  drose (12Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef TEXTSTATS_H
00016 #define TEXTSTATS_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "programBase.h"
00021 #include "pStatServer.h"
00022 
00023 #include <iostream>
00024 #include <fstream>
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : TextStats
00028 // Description : A simple, scrolling-text stats server.  Guaranteed to
00029 //               compile on every platform.
00030 ////////////////////////////////////////////////////////////////////
00031 class TextStats : public ProgramBase, public PStatServer {
00032 public:
00033   TextStats();
00034 
00035   virtual PStatMonitor *make_monitor();
00036 
00037   void run();
00038 
00039 private:  
00040   int _port;
00041   bool _show_raw_data;
00042   
00043   //[PECI]
00044   bool _got_outputFileName;
00045   string _outputFileName;
00046   ostream *_outFile;
00047 };
00048 
00049 #endif
00050 
 All Classes Functions Variables Enumerations