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)  

ACPITemp Class Reference

#include <acpitemp.h>

Inheritance diagram for ACPITemp:
[legend]
Collaboration diagram for ACPITemp:
[legend]

Public Member Functions

 ACPITemp (XOSView *parent, const char *tempfile, const char *highfile, const char *label, const char *caption)
 
 ~ACPITemp (void)
 
const char * name (void) const
 
void checkevent (void)
 
void checkResources (void)
 
- Public Member Functions inherited from FieldMeter
 FieldMeter (XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~FieldMeter (void)
 
virtual void drawfields (int mandatory=0)
 
void setfieldcolor (int field, const char *color)
 
void setfieldcolor (int field, unsigned long color)
 
void docaptions (int val)
 
void dolegends (int val)
 
void dousedlegends (int val)
 
void reset (void)
 
void setUsed (double val, double total)
 
void draw (void)
 
void disableMeter (void)
 
- Public Member Functions inherited from Meter
 Meter (XOSView *parent, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~Meter (void)
 
void resize (int x, int y, int width, int height)
 
void title (const char *title)
 
const char * title (void)
 
void legend (const char *legend)
 
const char * legend (void)
 
void docaptions (int val)
 
void dolegends (int val)
 
void dousedlegends (int val)
 
int requestevent (void)
 
int getX () const
 
int getY () const
 
int getWidth () const
 
int getHeight () const
 

Protected Member Functions

void getacpitemp (void)
 
int checkacpi (const char *tempfile, const char *highfile)
 
- Protected Member Functions inherited from FieldMeter
void SetUsedFormat (const char *const str)
 
void drawlegend (void)
 
void drawused (int mandatory)
 
bool checkX (int x, int width) const
 
void setNumFields (int n)
 
void IntervalTimerStart ()
 
void IntervalTimerStop ()
 
double IntervalTimeInMicrosecs ()
 
double IntervalTimeInSecs ()
 
- Protected Member Functions inherited from Meter
double samplesPerSecond ()
 
double secondsPerSample ()
 

Private Attributes

char _tempfile [128]
 
char _highfile [128]
 
int _high
 
bool _usesysfs
 
unsigned long _actcolor
 
unsigned long _highcolor
 

Additional Inherited Members

- Static Public Member Functions inherited from Meter
static double scaleValue (double value, char *scale, bool metric)
 
- Protected Types inherited from FieldMeter
enum  UsedType {
  INVALID_0 , FLOAT , PERCENT , AUTOSCALE ,
  INVALID_TAIL
}
 
- Protected Attributes inherited from FieldMeter
int numfields_
 
double * fields_
 
double total_
 
double used_
 
double lastused_
 
int * lastvals_
 
int * lastx_
 
unsigned long * colors_
 
unsigned long usedcolor_
 
UsedType print_
 
int printedZeroTotalMesg_
 
int numWarnings_
 
bool metric_
 
int usedoffset_
 
- Protected Attributes inherited from Meter
XOSViewparent_
 
int x_
 
int y_
 
int width_
 
int height_
 
int docaptions_
 
int dolegends_
 
int dousedlegends_
 
int priority_
 
int counter_
 
char * title_
 
char * legend_
 
unsigned long textcolor_
 

Detailed Description

Definition at line 21 of file acpitemp.h.

Constructor & Destructor Documentation

◆ ACPITemp()

ACPITemp::ACPITemp ( XOSView parent,
const char *  tempfile,
const char *  highfile,
const char *  label,
const char *  caption 
)

◆ ~ACPITemp()

ACPITemp::~ACPITemp ( void  )

Definition at line 46 of file acpitemp.cc.

Member Function Documentation

◆ checkacpi()

int ACPITemp::checkacpi ( const char *  tempfile,
const char *  highfile 
)
protected

Definition at line 50 of file acpitemp.cc.

References _highfile, _tempfile, _usesysfs, PATH_SIZE, PROC_ACPI_TZ, and SYS_ACPI_TZ.

Referenced by ACPITemp().

◆ checkevent()

void ACPITemp::checkevent ( void  )
virtual

Reimplemented from FieldMeter.

Definition at line 111 of file acpitemp.cc.

References FieldMeter::drawfields(), and getacpitemp().

◆ checkResources()

◆ getacpitemp()

◆ name()

const char* ACPITemp::name ( void  ) const
inlinevirtual

Reimplemented from Meter.

Definition at line 26 of file acpitemp.h.

Member Data Documentation

◆ _actcolor

unsigned long ACPITemp::_actcolor
private

Definition at line 39 of file acpitemp.h.

Referenced by checkResources(), and getacpitemp().

◆ _high

int ACPITemp::_high
private

Definition at line 37 of file acpitemp.h.

Referenced by ACPITemp(), and getacpitemp().

◆ _highcolor

unsigned long ACPITemp::_highcolor
private

Definition at line 39 of file acpitemp.h.

Referenced by checkResources(), and getacpitemp().

◆ _highfile

char ACPITemp::_highfile[128]
private

Definition at line 36 of file acpitemp.h.

Referenced by checkacpi(), and getacpitemp().

◆ _tempfile

char ACPITemp::_tempfile[128]
private

Definition at line 35 of file acpitemp.h.

Referenced by checkacpi(), and getacpitemp().

◆ _usesysfs

bool ACPITemp::_usesysfs
private

Definition at line 38 of file acpitemp.h.

Referenced by checkacpi(), and getacpitemp().


The documentation for this class was generated from the following files: