OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Editor.h
Go to the documentation of this file.
1 #ifndef OPAL_Editor_HH
2 #define OPAL_Editor_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Editor.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Editor
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:35 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Object.h"
22 
23 
24 // Class Editor
25 // ------------------------------------------------------------------------
27 // It implements the common behaviour of editor commands, it can also
28 // be used via dynamic casting to determine whether an object represents
29 // an editor command.
30 
31 class Editor: public Object {
32 
33 public:
34 
35  virtual ~Editor();
36 
38  // Return the string "EDITOR".
39  virtual const std::string getCategory() const;
40 
42  // If true, the object's execute() function should be traced.
43  // Always true for editor commands.
44  virtual bool shouldTrace() const;
45 
47  // If true, the data structure should be updated before calling execute().
48  // Always false for editor commands.
49  virtual bool shouldUpdate() const;
50 
51 protected:
52 
54  Editor(int size, const char *name, const char *help);
55 
57  Editor(const std::string &name, Editor *parent);
58 
59 private:
60 
61  // Not implemented.
62  Editor();
63  Editor(const Editor &);
64  void operator=(const Editor &);
65 };
66 
67 #endif // OPAL_Editor_HH
virtual ~Editor()
Definition: Editor.cpp:25
virtual bool shouldTrace() const
Trace flag.
Definition: Editor.cpp:34
The base class for all OPAL sequence editor commands.
Definition: Editor.h:31
The base class for all OPAL objects.
Definition: Object.h:48
const std::string name
virtual bool shouldUpdate() const
Update flag.
Definition: Editor.cpp:39
virtual const std::string getCategory() const
Return the object category as a string.
Definition: Editor.cpp:29
void operator=(const Editor &)