xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fieldmeterdecay.h
Go to the documentation of this file.
1 //
2 // Original FieldMeter class is Copyright (c) 1994, 2006 by Mike Romberg
3 // ( mike.romberg@noaa.gov )
4 // Modifications from FieldMeter class done in Oct. 1995
5 // by Brian Grayson ( bgrayson@netbsd.org )
6 //
7 // This file was written by Brian Grayson for the NetBSD and xosview
8 // projects.
9 // This file may be distributed under terms of the GPL or of the BSD
10 // license, whichever you choose. The full license notices are
11 // contained in the files COPYING.GPL and COPYING.BSD, which you
12 // should have received. If not, contact one of the xosview
13 // authors for a copy.
14 //
15 
16 #ifndef _FIELDMETERDECAY_H_
17 #define _FIELDMETERDECAY_H_
18 
19 #include "fieldmeter.h"
20 #include "xosview.h"
21 
22 
23 class FieldMeterDecay : public FieldMeter {
24 public:
25  FieldMeterDecay( XOSView *parent, int numfields,
26  const char *title = "", const char *legend = "",
27  int docaptions = 0, int dolegends = 0, int dousedlegends = 0 );
28  virtual ~FieldMeterDecay( void );
29 
30  virtual void drawfields( int mandatory = 0 );
31 
32 protected:
33  int dodecay_;
34  int firsttime_; // Used to set up decaying fields right the first time.
35  double *decay_;
36  double *lastDecayval_;
37 private:
38 };
39 
40 #endif
virtual ~FieldMeterDecay(void)
double * lastDecayval_
virtual void drawfields(int mandatory=0)
FieldMeterDecay(XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
void dousedlegends(int val)
Definition: fieldmeter.h:27
void dolegends(int val)
Definition: fieldmeter.h:26
void docaptions(int val)
Definition: fieldmeter.h:25
const char * title(void)
Definition: meter.h:25
const char * legend(void)
Definition: meter.h:27