Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

/root/resourcemonitord/resourcemonitord/Statistic.h

Go to the documentation of this file.
00001 // ResourceMonitor
00002 
00003 // 
00005 // FILE:        Statistic
00006 // PACKAGE: SubsystemMonitor
00007 //  Implements the following classes:
00008 //          Statistic
00009 //  Date:   July 19, 2001
00010 //  Author: Perry G. Vincent
00012 
00013 
00014 /*M*
00015 BSD License
00016 
00017 Copyright (c) 2002, Intel Corporation
00018 All rights reserved.
00019 
00020 Redistribution and use in source and binary forms, with or without
00021 modification, are permitted provided that the following conditions are met:
00022 
00023   a.. Redistributions of source code must retain the above copyright notice,
00024       this list of conditions and the following disclaimer.
00025   b.. Redistributions in binary form must reproduce the above copyright notice,
00026       this list of conditions and the following disclaimer in the documentation
00027       and/or other materials provided with the distribution.
00028   c.. Neither the name of Intel Corporation nor the names of its contributors
00029       may be used to endorse or promote products derived from this software
00030       without specific prior written permission.
00031 
00032 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00033 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00034 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00035 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
00036 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00037 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00038 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00039 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00040 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00041 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00042 
00043  *M*/
00044 
00045 #ifndef __Statistic__
00046 #define __Statistic__
00047 
00048 // Include files
00049 #include "ResourceMonitorTypes.h"
00050 
00051 //  todo
00052 namespace SubsystemMonitor
00053 {
00059 class Statistic
00060 {
00061 public:
00062     virtual ~Statistic() {};
00075     virtual  int readValue(rmValue *a_value, time_t a_timestamp)=0;
00086     virtual  int resetCounterValue(rmValue *val);
00087 
00096     virtual  int getUpperBound(rmValue *a_value);
00097 
00098 protected:
00099 private:
00100 
00101 };
00102 
00103 // END CLASS DEFINITION Statistic
00104 
00105 }
00106 #endif // __Statistic__
00107 

Generated at Sat Sep 7 21:21:07 2002 for Resource Monitoring Facility by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001