OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Reference.h
Go to the documentation of this file.
1 #ifndef OPAL_Reference_HH
2 #define OPAL_Reference_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Reference.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class Reference:
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:36 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
22 
23 class Attribute;
24 
25 
26 // Class Reference
27 // ------------------------------------------------------------------------
28 
29 namespace Attributes {
30 
32  // The attribute referred to may be logical, real, or string.
33  class Reference: public AttributeHandler {
34 
35  public:
36 
38  // Assign attribute name and help string.
39  Reference(const std::string &name, const std::string &help);
40 
41  virtual ~Reference();
42 
44  virtual const std::string &getType() const;
45 
47  virtual void parse(Attribute &, Statement &, bool) const;
48 
49  private:
50 
51  // Not implemented.
52  Reference(const Reference &);
53  void operator=(const Reference &);
54  };
55 
56 };
57 
58 #endif // OPAL_Reference_HH
Reference(const std::string &name, const std::string &help)
Constructor.
Definition: Reference.cpp:34
Parser for an attribute of type attribute reference.
Definition: Reference.h:33
virtual const std::string & getType() const
Return attribute type string ``reference''.
Definition: Reference.cpp:43
A representation of an Object attribute.
Definition: Attribute.h:55
Interface for statements.
Definition: Statement.h:38
Abstract base class for attribute parsers.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition: Reference.cpp:49
void operator=(const Reference &)
const std::string name