OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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// Class Action
22// ------------------------------------------------------------------------
23
25
26bool Action::canReplaceBy(Object*) { return true; }
27
28const std::string Action::getCategory() const { return "ACTION"; }
29
30bool Action::shouldTrace() const { return true; }
31
32bool Action::shouldUpdate() const { return true; }
33
34Action::Action(const std::string& name, Action* parent) : Object(name, parent) {}
35
36Action::Action(int size, const char* name, const char* help) : Object(size, name, help) {}
The base class for all OPAL actions.
Definition Action.h:29
virtual bool shouldUpdate() const
Update flag.
Definition Action.cpp:32
virtual const std::string getCategory() const
Return the object category as a string.
Definition Action.cpp:28
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
Definition Action.cpp:26
virtual ~Action()
Definition Action.cpp:24
virtual bool shouldTrace() const
Trace flag.
Definition Action.cpp:30
The base class for all OPAL objects.
Definition Object.h:45