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)  

sensorfieldmeter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 by Tomi Tapper <tomi.o.tapper@jyu.fi>
3 //
4 // This file may be distributed under terms of the GPL
5 //
6 // Put code common to *BSD and Linux sensor meters here.
7 //
8 
9 #ifndef _SENSORFIELDMETER_H_
10 #define _SENSORFIELDMETER_H_
11 
12 #include "fieldmeter.h"
13 #include "xosview.h"
14 
15 
16 class SensorFieldMeter : public FieldMeter {
17 public:
18  SensorFieldMeter( XOSView *parent, const char *title = "",
19  const char *legend = "", int docaptions = 0,
20  int dolegends = 0, int dousedlegends = 0 );
21  ~SensorFieldMeter( void );
22 
23 protected:
24  void updateLegend( void );
25  void checkFields( double low, double high );
26  char unit_[8];
27  double high_, low_;
29  unsigned long actcolor_, highcolor_, lowcolor_;
30 
31 private:
32 
33 };
34 
35 
36 #endif
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
void checkFields(double low, double high)
SensorFieldMeter(XOSView *parent, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
void updateLegend(void)
unsigned long actcolor_
unsigned long lowcolor_
unsigned long highcolor_