OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
UpperCaseStringArray.h
Go to the documentation of this file.
1//
2// Class UpperCaseStringArray
3// This class is used to parse attributes of type array of strings that should
4// be all upper case, i.e. it returns an array of upper case strings.
5//
6// Copyright (c) 2020, Matthias Frey, Paul Scherrer Institut, Villigen PSI, Switzerland
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_UpperCaseStringArray_HH
20#define OPAL_UpperCaseStringArray_HH
21
25
26namespace Attributes {
27
30 public:
32 // Assign attribute name and help string.
33 UpperCaseStringArray(const std::string& name, const std::string& help);
34
35 virtual ~UpperCaseStringArray();
36
38 virtual const std::string& getType() const;
39
41 virtual void parse(Attribute&, Statement&, bool) const;
42
44 // Identified by its index.
45 virtual void parseComponent(Attribute&, Statement&, bool, int) const;
46
47 private:
48 // Not implemented.
52 };
53
54}; // namespace Attributes
55
56#endif
Abstract base class for attribute parsers.
A representation of an Object attribute.
Definition Attribute.h:52
Parser for an attribute of type string array.
virtual const std::string & getType() const
Return attribute type string `‘string array’'.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
void operator=(const UpperCaseStringArray &)
virtual void parseComponent(Attribute &, Statement &, bool, int) const
Parse a component of the array.
UpperCaseStringArray(const UpperCaseStringArray &)
Interface for statements.
Definition Statement.h:37
A collection of routines to construct object Attributes and retrieve.