"Fossies" - the Fresh Open Source Software Archive

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

    1 //
    2 //  Copyright (c) 2013 by Tomi Tapper ( tomi.o.tapper@student.jyu.fi )
    3 //
    4 //  Based on linux/btrymeter.h:
    5 //  Copyright (c) 1997, 2005, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
    6 //
    7 //  This file may be distributed under terms of the GPL
    8 //
    9 
   10 #ifndef _BTRYMETER_H_
   11 #define _BTRYMETER_H_
   12 
   13 #include "fieldmeter.h"
   14 #include "xosview.h"
   15 
   16 
   17 class BtryMeter : public FieldMeter {
   18 public:
   19     BtryMeter( XOSView *parent );
   20     ~BtryMeter( void );
   21 
   22     const char *name( void ) const { return "BtryMeter"; }
   23     void checkevent( void );
   24     void checkResources( void );
   25 
   26 protected:
   27     void getstats( void );
   28 
   29 private:
   30     unsigned long leftcolor_, usedcolor_, chargecolor_, fullcolor_,
   31                   lowcolor_, critcolor_, nonecolor_;
   32     unsigned int  old_state_;
   33 };
   34 
   35 
   36 #endif