OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Value.h
Go to the documentation of this file.
1 #ifndef OPAL_Value_HH
2 #define OPAL_Value_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Value.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Value
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 Value
25 // ------------------------------------------------------------------------
27 
28 class Value: public Action {
29 
30 public:
31 
33  Value();
34 
35  virtual ~Value();
36 
38  virtual Value *clone(const std::string &name);
39 
41  virtual void execute();
42 
44  virtual void parse(Statement &);
45 
46 private:
47 
48  // Not implemented.
49  Value(const Value &);
50  void operator=(const Value &);
51 
52  // Clone constructor.
53  Value(const std::string &name, Value *parent);
54 };
55 
56 #endif // OPAL_Value_HH
Value()
Exemplar constructor.
Definition: Value.cpp:31
The base class for all OPAL actions.
Definition: Action.h:30
The VALUE command.
Definition: Value.h:28
virtual void execute()
Execute the command.
Definition: Value.cpp:56
Interface for statements.
Definition: Statement.h:38
void operator=(const Value &)
virtual Value * clone(const std::string &name)
Make clone.
Definition: Value.cpp:51
virtual ~Value()
Definition: Value.cpp:47
const std::string name
virtual void parse(Statement &)
Parse command (special for one-attribute command).
Definition: Value.cpp:73