NdmcMetricABC.h
Go to the documentation of this file.
1 /**
2  * NdmcMetricABC header file
3  * $Id: NdmcMetricABC.h,v 1.5 2011/11/14 01:12:27 kasahara Exp $
4  */
5 #ifndef __NDMC_METRICABC_H_
6 #define __NDMC_METRICABC_H_ // enums and typedefs
7 
9 
10 /**
11  * NdmcMetricABC
12  *
13  * This class is an abstract base class for a custom metric to be sent by a client
14  * to the DAQ Monitor Server.
15  *
16  * @author Susan Kasahara
17  * @author <a href="mailto:schubert@physics.umn.edu">schubert@physics.umn.edu</a>
18  * @date May 06 2010 (creation)
19  */
21 
22  public:
23 
24  // Constructors/Destructors
26  virtual ~NdmcMetricABC() {}
27 
28  // State changing methods
29  virtual bool send() = 0;
30  virtual void resetValue() = 0;
31  virtual void setPartition(int32_t partition) = 0;
32  virtual void setApplicationName(std::string appName) = 0;
33  virtual void setGroupName(std::string groupName) = 0;
34 
35  // Accessor methods
36  virtual std::string getName() const = 0;
37  virtual int32_t getPartition() const = 0;
38  virtual std::string getApplicationName() const = 0;
39  virtual std::string getGroupName() const = 0;
40 
41  private:
42 
43 };
44 
46 
47 #endif
48 
virtual void resetValue()=0
#define NDMC_NAMESPACE_BEGIN
Definition: Ndmc.h:23
virtual void setGroupName(std::string groupName)=0
virtual std::string getApplicationName() const =0
virtual bool send()=0
#define NDMC_NAMESPACE_END
Definition: Ndmc.h:26
virtual void setPartition(int32_t partition)=0
virtual ~NdmcMetricABC()
Definition: NdmcMetricABC.h:26
virtual void setApplicationName(std::string appName)=0
virtual std::string getName() const =0
virtual int32_t getPartition() const =0
virtual std::string getGroupName() const =0
enum BeamMode string