"Fossies" - the Fresh Open Source Software Archive 
Member "xosview-1.23/bsd/sensor.h" (11 Jul 2020, 881 Bytes) of package /linux/misc/xosview-1.23.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "sensor.h" see the
Fossies "Dox" file reference documentation.
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:
34 char name_[NAMESIZE], highname_[NAMESIZE], lowname_[NAMESIZE];
35 char val_[NAMESIZE], highval_[NAMESIZE], lowval_[NAMESIZE];
36 int nbr_;
37 };
38
39
40 #endif