--- projects/cms/source/host/c++/SysMon.h 2001/03/06 00:38:32 1.2 +++ projects/cms/source/host/c++/SysMon.h 2001/03/27 00:04:30 1.4 @@ -1,6 +1,6 @@ #include #include -#include // used for system("XXSX") calls +#include #include "SubPipe.h" #include "Config.h" #ifndef XMLFORMATTER_H /* Has the file been INCLUDE'd already? */ @@ -8,7 +8,6 @@ #include "XMLFormatter.h" #endif - #define MAX_UNIQUE_VALUES = 40; using std::string; @@ -17,16 +16,18 @@ class SysMon { public: SysMon(Config config, int printDebug); // constructor - int collect(); // collect data for an averager - string getData(); // return the data from averages, or a snapshot if no data is avaible + int collect(); // collect data for an averager + string getData(); // return the data from averages, or a snapshot if no data is avaible int getSequence(){ return sequence; }; // inline + void clearData(); // reset the data arrays private: SubPipe * p; - int sequence; // sequence number for the packets - int debug; // print debug info? - string titles[60]; // names for the packet info - string values[60]; // values for those packet infos - int titlepointer; // where have we got up to? - int checks; // number of checks since the last packet + int sequence; // sequence number for the packets + int debug; // print debug info? + const static int max_titles = 100; + string titles[max_titles]; // names for the packet info + string values[max_titles]; // values for those packet infos + int titlepointer; // where have we got up to? + int checks; // number of checks since the last packet }; // class \ No newline at end of file