OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
UpperCaseString.h
Go to the documentation of this file.
1 //
2 // Class UpperCaseString
3 // This class is used to parse attributes of type string that should
4 // be upper case, i.e. it returns upper case strings.
5 //
6 // Copyright (c) 2020, Christof Metzger-Kraus, Open Sourcerer
7 // All rights reserved
8 //
9 // This file is part of OPAL.
10 //
11 // OPAL is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
18 //
19 #ifndef OPAL_UpperCaseString_HH
20 #define OPAL_UpperCaseString_HH
21 
24 
25 
26 namespace Attributes {
27 
30 
31  public:
32 
34  // Assign attribute name and help string.
35  UpperCaseString(const std::string &name, const std::string &help);
36 
37  virtual ~UpperCaseString();
38 
40  virtual const std::string &getType() const;
41 
43  virtual void parse(Attribute &, Statement &, bool) const;
44 
45  private:
46 
47  // Not implemented.
50  void operator=(const UpperCaseString &);
51  };
52 
53 };
54 
55 #endif
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.
virtual const std::string & getType() const
Return attribute type string `‘string’'.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
UpperCaseString(const UpperCaseString &)
void operator=(const UpperCaseString &)
Interface for statements.
Definition: Statement.h:38