--- projects/cms/source/host/c++/SysMon.h 2001/03/23 14:59:01 1.3 +++ projects/cms/source/host/c++/SysMon.h 2002/05/18 18:15:56 1.5 @@ -1,6 +1,25 @@ +/* + * i-scream central monitoring system + * Copyright (C) 2000-2002 i-scream + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #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 +27,6 @@ #include "XMLFormatter.h" #endif - #define MAX_UNIQUE_VALUES = 40; using std::string; @@ -17,18 +35,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 + void clearData(); // reset the data arrays private: SubPipe * p; - int sequence; // sequence number for the packets - int debug; // print debug info? - 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 + 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