OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Action.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: Action.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: Action
10 // The base class for all OPAL action commands.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2000/03/27 09:33:34 $
15 // $Author: Andreas Adelmann $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "AbstractObjects/Action.h"
20 
21 
22 // Class Action
23 // ------------------------------------------------------------------------
24 
26 {}
27 
28 
30  return true;
31 }
32 
33 
34 const std::string Action::getCategory() const {
35  return "ACTION";
36 }
37 
38 
39 bool Action::shouldTrace() const {
40  return true;
41 
42 }
43 
44 bool Action::shouldUpdate() const {
45  return true;
46 }
47 
48 
49 Action::Action(const std::string &name, Action *parent):
50  Object(name, parent)
51 {}
52 
53 
54 Action::Action(int size, const char *name, const char *help):
55  Object(size, name, help)
56 {}
The base class for all OPAL actions.
Definition: Action.h:30
virtual bool shouldUpdate() const
Update flag.
Definition: Action.cpp:44
virtual bool shouldTrace() const
Trace flag.
Definition: Action.cpp:39
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
Definition: Action.cpp:29
The base class for all OPAL objects.
Definition: Object.h:48
const std::string name
virtual ~Action()
Definition: Action.cpp:25
virtual const std::string getCategory() const
Return the object category as a string.
Definition: Action.cpp:34