48 lines
899 B
C
48 lines
899 B
C
|
/**
|
||
|
* PANDA 3D SOFTWARE
|
||
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
||
|
*
|
||
|
* All use of this software is subject to the terms of the revised BSD
|
||
|
* license. You should have received a copy of this license along
|
||
|
* with this source code in a file named "LICENSE."
|
||
|
*
|
||
|
* @file textStats.h
|
||
|
* @author drose
|
||
|
* @date 2000-07-12
|
||
|
*/
|
||
|
|
||
|
#ifndef TEXTSTATS_H
|
||
|
#define TEXTSTATS_H
|
||
|
|
||
|
#include "pandatoolbase.h"
|
||
|
|
||
|
#include "programBase.h"
|
||
|
#include "pStatServer.h"
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <fstream>
|
||
|
|
||
|
/**
|
||
|
* A simple, scrolling-text stats server. Guaranteed to compile on every
|
||
|
* platform.
|
||
|
*/
|
||
|
class TextStats : public ProgramBase, public PStatServer {
|
||
|
public:
|
||
|
TextStats();
|
||
|
|
||
|
virtual PStatMonitor *make_monitor();
|
||
|
|
||
|
void run();
|
||
|
|
||
|
private:
|
||
|
int _port;
|
||
|
bool _show_raw_data;
|
||
|
|
||
|
// [PECI]
|
||
|
bool _got_outputFileName;
|
||
|
std::string _outputFileName;
|
||
|
std::ostream *_outFile;
|
||
|
};
|
||
|
|
||
|
#endif
|