"Fossies" - the Fresh Open Source Software Archive

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

    1 //
    2 //  Copyright (c) 2008 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 _CORETEMP_H_
   12 #define _CORETEMP_H_
   13 
   14 
   15 #include "fieldmeter.h"
   16 #include "xosview.h"
   17 
   18 
   19 class CoreTemp : public FieldMeter {
   20 public:
   21     CoreTemp( XOSView *parent, const char *label, const char *caption, int cpu);
   22     ~CoreTemp( void );
   23 
   24     const char *name( void ) const { return "CoreTemp"; }
   25     void checkevent( void );
   26     void checkResources( void );
   27 
   28     static unsigned int countCpus( void );
   29 
   30 protected:
   31     void getcoretemp( void );
   32 
   33 private:
   34     int   cpu_, cpucount_;
   35     float high_, *temps_;
   36     unsigned long actcolor_, highcolor_;
   37 };
   38 
   39 
   40 #endif