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 by Mike Romberg ( romberg@fsl.noaa.gov )
3 //
4 // NetBSD port:
5 // Copyright (c) 1995, 1996, 1997-2002 by Brian Grayson (bgrayson@netbsd.org)
6 //
7 // This file was written by Brian Grayson for the NetBSD and xosview
8 // projects.
9 // This file may be distributed under terms of the GPL or of the BSD
10 // license, whichever you choose. The full license notices are
11 // contained in the files COPYING.GPL and COPYING.BSD, which you
12 // should have received. If not, contact one of the xosview
13 // authors for a copy.
14 //
15 
16 #ifndef _NETMETER_H_
17 #define _NETMETER_H_
18 
19 #include "fieldmetergraph.h"
20 #include "xosview.h"
21 #include <string>
22 
23 
24 class NetMeter : public FieldMeterGraph {
25 public:
26  NetMeter( XOSView *parent, double max );
27  ~NetMeter( void );
28 
29  const char *name( void ) const { return "NetMeter"; }
30  void checkevent( void );
31  void checkResources( void );
32 
33 protected:
34  void getstats(void);
35 
36 private:
38  double netBandwidth_;
39  std::string netIface_;
40  bool ignored_;
41 };
42 
43 
44 #endif
~NetMeter(void)
Definition: netmeter.cc:39
void getstats(void)
Definition: netmeter.cc:64
void checkResources(void)
Definition: netmeter.cc:42
NetMeter(XOSView *parent, double max)
Definition: netmeter.cc:22
void checkevent(void)
Definition: netmeter.cc:59
std::string netIface_
Definition: netmeter.h:39
uint64_t lastBytesIn_
Definition: netmeter.h:37
double netBandwidth_
Definition: netmeter.h:38
bool ignored_
Definition: netmeter.h:40
uint64_t lastBytesOut_
Definition: netmeter.h:37
const char * name(void) const
Definition: netmeter.h:29
static const int max
Definition: intmeter.cc:17