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.4 by ab11, Tue Mar 27 00:04:30 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
3 > #include <stdlib.h>
4 > #include "SubPipe.h"
5   #include "Config.h"
6   #ifndef  XMLFORMATTER_H         /* Has the file been INCLUDE'd already? */
7      #define  XMLFORMATTER_H  yes
8      #include "XMLFormatter.h"
9   #endif
10  
11
11   #define MAX_UNIQUE_VALUES = 40;
12  
13   using std::string;
# Line 17 | Line 16 | class SysMon {
16          
17          public:
18                  SysMon(Config config, int printDebug); // constructor
19 <                int collect(); // collect data for an averager
20 <                string getData(); // return the data from averages, or a snapshot if no data is avaible
19 >                int collect();                      // collect data for an averager
20 >                string getData();                   // return the data from averages, or a snapshot if no data is avaible
21                  int getSequence(){ return sequence; }; // inline
22 +                void clearData();                   // reset the data arrays
23                  
24          private:
25 <                int sequence;           // sequence number for the packets
26 <                int debug;              // print debug info?
27 <                string titles[60];      // names for the packet info
28 <                string values[60];      // values for those packet infos
29 <                int titlepointer;       // where have we got up to?
30 <                int checks;             // number of checks since the last packet
25 >            SubPipe * p;
26 >                int sequence;                           // sequence number for the packets
27 >                int debug;                                  // print debug info?
28 >                const static int max_titles = 100;
29 >                string titles[max_titles];              // names for the packet info
30 >                string values[max_titles];              // values for those packet infos
31 >                int titlepointer;                       // where have we got up to?
32 >                int checks;                                 // number of checks since the last packet
33   }; // class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines