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)  

sensor.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2012 by Tomi Tapper <tomi.o.tapper@jyu.fi>
3 //
4 // File based on linux/lmstemp.* by
5 // Copyright (c) 2000, 2006 by Leopold Toetsch <lt@toetsch.at>
6 //
7 // This file may be distributed under terms of the GPL
8 //
9 //
10 //
11 #ifndef _BSDSENSOR_H_
12 #define _BSDSENSOR_H_
13 
14 #include "sensorfieldmeter.h"
15 #include "xosview.h"
16 
17 #define NAMESIZE 32
18 
19 
20 class BSDSensor : public SensorFieldMeter {
21 public:
22  BSDSensor( XOSView *parent, const char *name, const char *high,
23  const char *low, const char *label, const char *caption, int nbr );
24  ~BSDSensor( void );
25 
26  const char *name( void ) const { return "BSDSensor"; }
27  void checkevent( void );
28  void checkResources( void );
29 
30 protected:
31  void getsensor( void );
32 
33 private:
36  int nbr_;
37 };
38 
39 
40 #endif
char lowname_[32]
Definition: sensor.h:34
const char * name(void) const
Definition: sensor.h:26
void checkResources(void)
Definition: sensor.cc:57
char lowval_[32]
Definition: sensor.h:35
char name_[32]
Definition: sensor.h:34
char highval_[32]
Definition: sensor.h:35
int nbr_
Definition: sensor.h:36
void getsensor(void)
Definition: sensor.cc:92
void checkevent(void)
Definition: sensor.cc:87
char val_[32]
Definition: sensor.h:35
char highname_[32]
Definition: sensor.h:34
~BSDSensor(void)
Definition: sensor.cc:54
BSDSensor(XOSView *parent, const char *name, const char *high, const char *low, const char *label, const char *caption, int nbr)
Definition: sensor.cc:21
#define NAMESIZE
Definition: sensor.h:17