File: lmstemp.h

package info (click to toggle)
xosview 1.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: cpp: 11,975; makefile: 154; ansic: 32; awk: 13; sh: 8
file content (44 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download | duplicates (5)
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
41
42
43
44
//
//  Copyright (c) 2000, 2006 by Leopold Toetsch <lt@toetsch.at>
//
//  File based on btrymeter.* by
//  Copyright (c) 1997 by Mike Romberg ( mike.romberg@noaa.gov )
//
//  This file may be distributed under terms of the GPL
//
//
//
#ifndef _LMSTEMP_H_
#define _LMSTEMP_H_

#include "sensorfieldmeter.h"
#include "xosview.h"
#include <string>


class LmsTemp : public SensorFieldMeter {
public:
  LmsTemp( XOSView *parent, const char *name, const char *tempfile,
           const char *highfile, const char *lowfile, const char *label,
           const char *caption, unsigned int nbr );
  ~LmsTemp( void );

  const char *name( void ) const { return "LmsTemp"; }
  void checkevent( void );
  void checkResources( void );

protected:
  void getlmstemp( void );
  bool checksensors( const char *name, const char *tempfile,
                     const char *highfile, const char *lowfile );
private:
  void determineScale( void );
  void determineUnit( void );
  std::string _tempfile, _highfile, _lowfile;
  unsigned int _nbr;
  double _scale;
  bool _isproc, _name_found, _temp_found, _high_found, _low_found;
};


#endif