xosview
1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
![]() ![]() |
#include <acpitemp.h>
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) |
![]() | |
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) |
![]() | |
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) |
![]() | |
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 () |
![]() | |
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 double | scaleValue (double value, char *scale, bool metric) |
![]() | |
enum | UsedType { INVALID_0 , FLOAT , PERCENT , AUTOSCALE , INVALID_TAIL } |
![]() | |
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_ |
![]() | |
XOSView * | parent_ |
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_ |
Definition at line 21 of file acpitemp.h.
ACPITemp::ACPITemp | ( | XOSView * | parent, |
const char * | tempfile, | ||
const char * | highfile, | ||
const char * | label, | ||
const char * | caption | ||
) |
Definition at line 27 of file acpitemp.cc.
References _high, checkacpi(), XWin::done(), FieldMeter::metric_, Meter::parent_, PROC_ACPI_TZ, and SYS_ACPI_TZ.
ACPITemp::~ACPITemp | ( | void | ) |
Definition at line 46 of file acpitemp.cc.
|
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().
|
virtual |
Reimplemented from FieldMeter.
Definition at line 111 of file acpitemp.cc.
References FieldMeter::drawfields(), and getacpitemp().
|
virtual |
Reimplemented from FieldMeter.
Definition at line 98 of file acpitemp.cc.
References _actcolor, _highcolor, XWin::allocColor(), FieldMeter::checkResources(), XWin::getResource(), XWin::getResourceOrUseDefault(), Meter::parent_, Meter::priority_, FieldMeter::setfieldcolor(), FieldMeter::SetUsedFormat(), and FieldMeter::total_.
|
protected |
Definition at line 116 of file acpitemp.cc.
References _actcolor, _high, _highcolor, _highfile, _tempfile, _usesysfs, FieldMeter::colors_, XWin::done(), FieldMeter::drawlegend(), FieldMeter::fields_, Meter::legend(), Meter::parent_, FieldMeter::setfieldcolor(), FieldMeter::setUsed(), and FieldMeter::total_.
Referenced by checkevent().
|
inlinevirtual |
Reimplemented from Meter.
Definition at line 26 of file acpitemp.h.
|
private |
Definition at line 39 of file acpitemp.h.
Referenced by checkResources(), and getacpitemp().
|
private |
Definition at line 37 of file acpitemp.h.
Referenced by ACPITemp(), and getacpitemp().
|
private |
Definition at line 39 of file acpitemp.h.
Referenced by checkResources(), and getacpitemp().
|
private |
Definition at line 36 of file acpitemp.h.
Referenced by checkacpi(), and getacpitemp().
|
private |
Definition at line 35 of file acpitemp.h.
Referenced by checkacpi(), and getacpitemp().
|
private |
Definition at line 38 of file acpitemp.h.
Referenced by checkacpi(), and getacpitemp().