"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/pagemeter.h" (11 Jul 2020, 705 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "pagemeter.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 1996, 2007 by Massimiliano Ghilardi ( ghilardi@cibs.sns.it )
    3 //
    4 //  This file may be distributed under terms of the GPL
    5 //
    6 
    7 #ifndef _PAGEMETER_H_
    8 #define _PAGEMETER_H_
    9 
   10 #include "fieldmetergraph.h"
   11 #include "xosview.h"
   12 
   13 
   14 class PageMeter : public FieldMeterGraph {
   15 public:
   16   PageMeter( XOSView *parent, float max );
   17   ~PageMeter( void );
   18 
   19   const char *name( void ) const { return "PageMeter"; }
   20   void checkevent( void );
   21 
   22   void checkResources( void );
   23 protected:
   24   unsigned long pageinfo_[2][2];
   25   int pageindex_;
   26   float maxspeed_;
   27   bool _vmstat;
   28   const char *_statFileName;
   29 
   30   void getpageinfo( void );
   31   void getvmpageinfo( void );
   32   void updateinfo(void);
   33 private:
   34 };
   35 
   36 #endif