ECF 1.5
Operator.h
1#ifndef Operator_h
2#define Operator_h
3
11{
12public:
13 virtual bool operate(StateP) = 0;
14
20 virtual bool initialize(StateP)
21 { return true; }
22
27 virtual void registerParameters(StateP)
28 { }
29
34 virtual void write(XMLNode&)
35 { }
36
41 virtual void read(XMLNode&)
42 { }
43
44 virtual ~Operator()
45 { }
46};
47typedef boost::shared_ptr<Operator> OperatorP;
48
49#endif // Operator_h
Abstract operator class.
Definition: Operator.h:11
virtual void registerParameters(StateP)
Register parameters with the Registry. Called before Operator::initialize.
Definition: Operator.h:27
virtual void read(XMLNode &)
Read operator state from XMLNode or the Registry. Called after Operator::initialize.
Definition: Operator.h:41
virtual bool operate(StateP)=0
perform the designated operation
virtual void write(XMLNode &)
Write operator state to XMLNode or the Registry. Called after Operator::initialize.
Definition: Operator.h:34
virtual bool initialize(StateP)
Perform initialization. Called before Operator::operate. By default, if the return value is false,...
Definition: Operator.h:20