DABC (Data Acquisition Backbone Core)  2.9.9
CpuInfoModule.h
Go to the documentation of this file.
1 // $Id: CpuInfoModule.h 3862 2018-05-11 10:06:18Z linev $
2 
3 /************************************************************
4  * The Data Acquisition Backbone Core (DABC) *
5  ************************************************************
6  * Copyright (C) 2009 - *
7  * GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
8  * Planckstr. 1, 64291 Darmstadt, Germany *
9  * Contact: http://dabc.gsi.de *
10  ************************************************************
11  * This software can be used under the GPL license *
12  * agreements as stated in LICENSE.txt file *
13  * which is part of the distribution. *
14  ************************************************************/
15 
16 #ifndef DABC_CpuInfoModule
17 #define DABC_CpuInfoModule
18 
19 #ifndef DABC_ModuleAsync
20 #include "dabc/ModuleAsync.h"
21 #endif
22 
23 #ifndef DABC_statistic
24 #include "dabc/statistic.h"
25 #endif
26 
27 namespace dabc {
28 
35  protected:
44  int fKind;
45 
46  public:
47  CpuInfoModule(const std::string &name, dabc::Command cmd = nullptr, int kind = -1);
48 
49  virtual void ProcessTimerEvent(unsigned timer);
50  };
51 
52 }
53 
54 #endif
Represents command with its arguments.
Definition: Command.h:99
Module provides CPU information
Definition: CpuInfoModule.h:34
CpuStatistic fStat
Definition: CpuInfoModule.h:36
int fKind
value of "Kind" configuration parameter, mask for 0 - just show cpu info as double parameter 1 - show...
Definition: CpuInfoModule.h:44
virtual void ProcessTimerEvent(unsigned timer)
Method called by framework when timer event is produced.
CpuInfoModule(const std::string &name, dabc::Command cmd=nullptr, int kind=-1)
Helper class to get CPU statistic.
Definition: statistic.h:33
Base class for user-derived code, implementing event-processing.
Definition: ModuleAsync.h:32
Event manipulation API.
Definition: api.h:23