OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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
20
21
22// Class Action
23// ------------------------------------------------------------------------
24
26{}
27
28
30 return true;
31}
32
33
34const std::string Action::getCategory() const {
35 return "ACTION";
36}
37
38
39bool Action::shouldTrace() const {
40 return true;
41
42}
43
45 return true;
46}
47
48
49Action::Action(const std::string &name, Action *parent):
50 Object(name, parent)
51{}
52
53
54Action::Action(int size, const char *name, const char *help):
55 Object(size, name, help)
56{}
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
virtual bool shouldUpdate() const
Update flag.
Definition: Action.cpp:44
virtual const std::string getCategory() const
Return the object category as a string.
Definition: Action.cpp:34
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
Definition: Action.cpp:29
virtual ~Action()
Definition: Action.cpp:25
virtual bool shouldTrace() const
Trace flag.
Definition: Action.cpp:39
The base class for all OPAL objects.
Definition: Object.h:48