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