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)  

FieldMeterDecay Class Reference

#include <fieldmeterdecay.h>

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

Public Member Functions

 FieldMeterDecay (XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~FieldMeterDecay (void)
 
virtual void drawfields (int mandatory=0)
 
- 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)
 
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 checkevent (void)
 
void disableMeter (void)
 
virtual void checkResources (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)
 
virtual const char * name (void) const
 
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 Attributes

int dodecay_
 
int firsttime_
 
double * decay_
 
double * lastDecayval_
 
- 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_
 

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 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 ()
 

Detailed Description

Definition at line 23 of file fieldmeterdecay.h.

Constructor & Destructor Documentation

◆ FieldMeterDecay()

FieldMeterDecay::FieldMeterDecay ( XOSView parent,
int  numfields,
const char *  title = "",
const char *  legend = "",
int  docaptions = 0,
int  dolegends = 0,
int  dousedlegends = 0 
)

Definition at line 31 of file fieldmeterdecay.cc.

References decay_, dodecay_, firsttime_, and lastDecayval_.

◆ ~FieldMeterDecay()

FieldMeterDecay::~FieldMeterDecay ( void  )
virtual

Definition at line 44 of file fieldmeterdecay.cc.

References decay_, and lastDecayval_.

Member Function Documentation

◆ drawfields()

Member Data Documentation

◆ decay_

double* FieldMeterDecay::decay_
protected

Definition at line 35 of file fieldmeterdecay.h.

Referenced by drawfields(), FieldMeterDecay(), and ~FieldMeterDecay().

◆ dodecay_

◆ firsttime_

int FieldMeterDecay::firsttime_
protected

Definition at line 34 of file fieldmeterdecay.h.

Referenced by drawfields(), and FieldMeterDecay().

◆ lastDecayval_

double* FieldMeterDecay::lastDecayval_
protected

Definition at line 36 of file fieldmeterdecay.h.

Referenced by drawfields(), FieldMeterDecay(), and ~FieldMeterDecay().


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