OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
What.h
Go to the documentation of this file.
1 #ifndef OPAL_What_HH
2 #define OPAL_What_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: What.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: What
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:37 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
22 
23 
24 // Class What
25 // ------------------------------------------------------------------------
27 
28 class What: public Action {
29 
30 public:
31 
33  What();
34 
35  virtual ~What();
36 
38  virtual What *clone(const std::string &name);
39 
41  virtual void execute();
42 
44  virtual void parse(Statement &);
45 
46 private:
47 
48  // Not implemented.
49  What(const What &);
50  void operator=(const What &);
51 
52  // Clone constructor.
53  What(const std::string &name, What *parent);
54 };
55 
56 #endif // OPAL_What_HH
The base class for all OPAL actions.
Definition: Action.h:30
What()
Exemplar constructor.
Definition: What.cpp:28
void operator=(const What &)
virtual What * clone(const std::string &name)
Make clone.
Definition: What.cpp:48
Interface for statements.
Definition: Statement.h:38
virtual void execute()
Execute the command.
Definition: What.cpp:53
virtual ~What()
Definition: What.cpp:44
const std::string name
The WHAT command.
Definition: What.h:28
virtual void parse(Statement &)
Parse command (special for one-attribute command).
Definition: What.cpp:69