OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
TokenListArray.h
Go to the documentation of this file.
1#ifndef OPAL_TokenListArray_HH
2#define OPAL_TokenListArray_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: TokenListArray.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: TokenListArray
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:36 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
23#include "Parser/Token.h"
24#include <list>
25
26
27// Class TokenListArray
28// ------------------------------------------------------------------------
29
30namespace Attributes {
31
33 // Such an attribute may encode a list of expressions in a LIST command.
35
36 public:
37
39 // Assign attribute name and help string.
40 TokenListArray(const std::string &name, const std::string &help);
41
42 virtual ~TokenListArray();
43
45 virtual const std::string &getType() const;
46
48 virtual void parse(Attribute &, Statement &, bool) const;
49
51 // Identified by its index.
52 virtual void parseComponent(Attribute &, Statement &, bool, int) const;
53
54 private:
55
56 // Not implemented.
60 };
61
62};
63
64#endif // OPAL_TokenListArray_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 token list array.
virtual void parseComponent(Attribute &, Statement &, bool, int) const
Parse a component.
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
TokenListArray(const TokenListArray &)
virtual const std::string & getType() const
Return attribute type string `‘token list array’'.
void operator=(const TokenListArray &)
Interface for statements.
Definition: Statement.h:38