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)  

netmeter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 1994, 1995, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
3 //
4 // This file may be distributed under terms of the GPL
5 //
6 
7 #ifndef _NETMETER_H_
8 #define _NETMETER_H_
9 
10 #include "fieldmetergraph.h"
11 #include "xosview.h"
12 #include <string>
13 
14 
15 class NetMeter : public FieldMeterGraph {
16 public:
17  NetMeter(XOSView *parent, float max);
18  ~NetMeter( void );
19 
20  const char *name( void ) const { return "NetMeter"; }
21  void checkevent( void );
22  void checkResources( void );
23 
24 private:
25  void getProcStats( unsigned long long &totin, unsigned long long &totout );
26  void getSysStats( unsigned long long &totin, unsigned long long &totout );
27  float _maxpackets;
28  std::string _netIface;
30  unsigned long long _lastBytesIn, _lastBytesOut;
31 };
32 
33 
34 #endif
void getProcStats(unsigned long long &totin, unsigned long long &totout)
Definition: netmeter.cc:149
float _maxpackets
Definition: netmeter.h:27
~NetMeter(void)
void checkResources(void)
NetMeter(XOSView *parent, double max)
Definition: netmeter.cc:22
std::string _netIface
Definition: netmeter.h:28
unsigned long long _lastBytesOut
Definition: netmeter.h:30
void getSysStats(unsigned long long &totin, unsigned long long &totout)
Definition: netmeter.cc:119
void checkevent(void)
unsigned long long _lastBytesIn
Definition: netmeter.h:30
bool _usesysfs
Definition: netmeter.h:29
const char * name(void) const
Definition: netmeter.h:20
bool _ignored
Definition: netmeter.h:29
static const int max
Definition: intmeter.cc:17