--- projects/cms/source/host/c++/SysMon.h 2001/02/26 15:00:52 1.1 +++ projects/cms/source/host/c++/SysMon.h 2001/03/23 14:59:01 1.3 @@ -1,7 +1,7 @@ #include #include #include // used for system("XXSX") calls -#include "socket++-1.10/pipestream.h" // used to get calls to statgrab +#include "SubPipe.h" #include "Config.h" #ifndef XMLFORMATTER_H /* Has the file been INCLUDE'd already? */ #define XMLFORMATTER_H yes @@ -20,12 +20,15 @@ class SysMon { 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 + const static int maxTitles = 100; + string titles[maxTitles]; // names for the packet info + string values[maxTitles]; // 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