OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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// Class Reference
26// ------------------------------------------------------------------------
27
28namespace Attributes {
29
31 // The attribute referred to may be logical, real, or string.
32 class Reference : public AttributeHandler {
33 public:
35 // Assign attribute name and help string.
36 Reference(const std::string& name, const std::string& help);
37
38 virtual ~Reference();
39
41 virtual const std::string& getType() const;
42
44 virtual void parse(Attribute&, Statement&, bool) const;
45
46 private:
47 // Not implemented.
49 void operator=(const Reference&);
50 };
51
52}; // namespace Attributes
53
54#endif // OPAL_Reference_HH
Abstract base class for attribute parsers.
A representation of an Object attribute.
Definition Attribute.h:52
Parser for an attribute of type attribute reference.
Definition Reference.h:32
virtual const std::string & getType() const
Return attribute type string `‘reference’'.
Definition Reference.cpp:38
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition Reference.cpp:43
Reference(const Reference &)
void operator=(const Reference &)
Interface for statements.
Definition Statement.h:37
A collection of routines to construct object Attributes and retrieve.