ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/SysMon.h
(Generate patch)

Comparing projects/cms/source/host/c++/SysMon.h (file contents):
Revision 1.1 by ab11, Mon Feb 26 15:00:52 2001 UTC vs.
Revision 1.3 by ab11, Fri Mar 23 14:59:01 2001 UTC

# Line 1 | Line 1
1   #include <iostream>
2   #include <string>
3   #include <stdlib.h> // used for system("XXSX") calls
4 < #include "socket++-1.10/pipestream.h"  // used to get calls to statgrab
4 > #include "SubPipe.h"
5   #include "Config.h"
6   #ifndef  XMLFORMATTER_H         /* Has the file been INCLUDE'd already? */
7      #define  XMLFORMATTER_H  yes
# Line 20 | Line 20 | class SysMon {
20                  int collect(); // collect data for an averager
21                  string getData(); // return the data from averages, or a snapshot if no data is avaible
22                  int getSequence(){ return sequence; }; // inline
23 +                void clearData();  // reset the data arrays
24                  
25          private:
26 +            SubPipe * p;
27                  int sequence;           // sequence number for the packets
28                  int debug;              // print debug info?
29 <                string titles[60];      // names for the packet info
30 <                string values[60];      // values for those packet infos
29 >                const static int maxTitles = 100;
30 >                string titles[maxTitles];       // names for the packet info
31 >                string values[maxTitles];       // values for those packet infos
32                  int titlepointer;       // where have we got up to?
33                  int checks;             // number of checks since the last packet
34   }; // class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines