OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
String.h
Go to the documentation of this file.
1 #ifndef OPAL_String_HH
2 #define OPAL_String_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: String.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: String
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:36 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
23 
24 
25 // Class String
26 // ------------------------------------------------------------------------
27 
28 namespace Attributes {
29 
31  class String: public AttributeHandler {
32 
33  public:
34 
36  // Assign attribute name and help string.
37  String(const std::string &name, const std::string &help);
38 
39  virtual ~String();
40 
42  virtual const std::string &getType() const;
43 
45  virtual void parse(Attribute &, Statement &, bool) const;
46 
47  private:
48 
49  // Not implemented.
50  String();
51  String(const String &);
52  void operator=(const String &);
53  };
54 
55 };
56 
57 #endif // OPAL_String_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 string.
Definition: String.h:31
String(const String &)
virtual const std::string & getType() const
Return attribute type string `‘string’'.
Definition: String.cpp:42
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition: String.cpp:48
virtual ~String()
Definition: String.cpp:38
void operator=(const String &)
Interface for statements.
Definition: Statement.h:38