"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/lmstemp.h" (11 Jul 2020, 1124 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 "lmstemp.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 2000, 2006 by Leopold Toetsch <lt@toetsch.at>
    3 //
    4 //  File based on btrymeter.* by
    5 //  Copyright (c) 1997 by Mike Romberg ( mike.romberg@noaa.gov )
    6 //
    7 //  This file may be distributed under terms of the GPL
    8 //
    9 //
   10 //
   11 #ifndef _LMSTEMP_H_
   12 #define _LMSTEMP_H_
   13 
   14 #include "sensorfieldmeter.h"
   15 #include "xosview.h"
   16 #include <string>
   17 
   18 
   19 class LmsTemp : public SensorFieldMeter {
   20 public:
   21   LmsTemp( XOSView *parent, const char *name, const char *tempfile,
   22            const char *highfile, const char *lowfile, const char *label,
   23            const char *caption, unsigned int nbr );
   24   ~LmsTemp( void );
   25 
   26   const char *name( void ) const { return "LmsTemp"; }
   27   void checkevent( void );
   28   void checkResources( void );
   29 
   30 protected:
   31   void getlmstemp( void );
   32   bool checksensors( const char *name, const char *tempfile,
   33                      const char *highfile, const char *lowfile );
   34 private:
   35   void determineScale( void );
   36   void determineUnit( void );
   37   std::string _tempfile, _highfile, _lowfile;
   38   unsigned int _nbr;
   39   double _scale;
   40   bool _isproc, _name_found, _temp_found, _high_found, _low_found;
   41 };
   42 
   43 
   44 #endif