OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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
23class Attribute;
24
25
26// Class Reference
27// ------------------------------------------------------------------------
28
29namespace Attributes {
30
32 // The attribute referred to may be logical, real, or string.
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.
53 void operator=(const Reference &);
54 };
55
56};
57
58#endif // OPAL_Reference_HH
const std::string name
A collection of routines to construct object Attributes and retrieve.
Definition: Attributes.cpp:85
A representation of an Object attribute.
Definition: Attribute.h:52
Abstract base class for attribute parsers.
Parser for an attribute of type attribute reference.
Definition: Reference.h:33
Reference(const std::string &name, const std::string &help)
Constructor.
Definition: Reference.cpp:34
virtual const std::string & getType() const
Return attribute type string `‘reference’'.
Definition: Reference.cpp:43
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition: Reference.cpp:49
Reference(const Reference &)
void operator=(const Reference &)
Interface for statements.
Definition: Statement.h:38