"Fossies" - the Fresh Open Source Software Archive 
Member "xosview-1.23/linux/coretemp.h" (11 Jul 2020, 919 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-2014 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 #include "fieldmeter.h"
15 #include "xosview.h"
16 #include <string>
17 #include <vector>
18
19
20 class CoreTemp : public FieldMeter {
21 public:
22 CoreTemp( XOSView *parent, const char *label, const char *caption, int pkg, int cpu);
23 ~CoreTemp( void );
24
25 const char *name( void ) const { return "CoreTemp"; }
26 void checkevent( void );
27 void checkResources( void );
28
29 static unsigned int countCores( unsigned int pkg );
30 static unsigned int countCpus( void );
31
32 protected:
33 void getcoretemp( void );
34
35 private:
36 void findSysFiles( void );
37 int _pkg, _cpu, _high;
38 std::vector<std::string> _cpus;
39 unsigned long _actcolor, _highcolor;
40 };
41
42
43 #endif