HOPS
HOPS class reference
MHO_Operator.hh
Go to the documentation of this file.
1 #ifndef MHO_Operator_HH__
2 #define MHO_Operator_HH__
3 
4 #include <string>
5 
6 namespace hops
7 {
8 
21 {
22  public:
23  MHO_Operator();
24  virtual ~MHO_Operator();
25 
32  virtual bool Initialize() = 0;
39  virtual bool Execute() = 0;
40 
46  void SetName(std::string name) { fName = name; }
47 
53  std::string GetName() const { return fName; }
54 
55  //allow priority to vary
63  void SetPriority(double priority) { fPriority = priority; }
64 
70  double Priority() const { return fPriority; }
71 
72  private:
73  std::string fName;
74  double fPriority;
75 };
76 
77 } // namespace hops
78 
79 #endif
Class MHO_Operator.
Definition: MHO_Operator.hh:21
virtual ~MHO_Operator()
Definition: MHO_Operator.cc:13
void SetName(std::string name)
Setter for operator name.
Definition: MHO_Operator.hh:46
double Priority() const
Get the the priority field value.
Definition: MHO_Operator.hh:70
void SetPriority(double priority)
Setter for operator priority (determines order of execution within a operator category)
Definition: MHO_Operator.hh:63
virtual bool Initialize()=0
Function Initialize.
std::string GetName() const
Getter for operator name.
Definition: MHO_Operator.hh:53
virtual bool Execute()=0
Function Execute.
MHO_Operator()
Definition: MHO_Operator.cc:7
Definition: MHO_AdhocFlagging.hh:18