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