xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

coretemp.h
Go to the documentation of this file.
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:
35  float high_, *temps_;
36  unsigned long actcolor_, highcolor_;
37 };
38 
39 
40 #endif
unsigned long actcolor_
Definition: coretemp.h:36
int cpu_
Definition: coretemp.h:34
void getcoretemp(void)
Definition: coretemp.cc:82
CoreTemp(XOSView *parent, const char *label, const char *caption, int cpu)
Definition: coretemp.cc:22
const char * name(void) const
Definition: coretemp.h:24
static unsigned int countCpus(void)
Definition: coretemp.cc:73
float high_
Definition: coretemp.h:35
float * temps_
Definition: coretemp.h:35
void checkevent(void)
Definition: coretemp.cc:77
unsigned long highcolor_
Definition: coretemp.h:36
int cpucount_
Definition: coretemp.h:34
~CoreTemp(void)
Definition: coretemp.cc:30
void checkResources(void)
Definition: coretemp.cc:34