OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
21#include <list>
24#include "OpalParser/Token.h"
25
26// Class TokenListArray
27// ------------------------------------------------------------------------
28
29namespace Attributes {
30
32 // Such an attribute may encode a list of expressions in a LIST command.
34 public:
36 // Assign attribute name and help string.
37 TokenListArray(const std::string& name, const std::string& help);
38
39 virtual ~TokenListArray();
40
42 virtual const std::string& getType() const;
43
45 virtual void parse(Attribute&, Statement&, bool) const;
46
48 // Identified by its index.
49 virtual void parseComponent(Attribute&, Statement&, bool, int) const;
50
51 private:
52 // Not implemented.
56 };
57
58}; // namespace Attributes
59
60#endif // OPAL_TokenListArray_HH
Abstract base class for attribute parsers.
A representation of an Object attribute.
Definition Attribute.h:52
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:37
A collection of routines to construct object Attributes and retrieve.