OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TokenList.h
Go to the documentation of this file.
1#ifndef OPAL_TokenList_HH
2#define OPAL_TokenList_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: TokenList.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: TokenList
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
26template <class T>
27class TValue;
28
29// Class TokenList
30// ------------------------------------------------------------------------
31
32namespace Attributes {
33
35 // Such an attribute can encode e.g. an expression in a LIST command.
36 class TokenList : public AttributeHandler {
37 public:
39 // Assign attribute name and help string.
40 TokenList(const std::string& name, const std::string& help);
41
42 virtual ~TokenList();
43
45 virtual const std::string& getType() const;
46
48 virtual void parse(Attribute&, Statement&, bool) const;
49
50 private:
51 // Not implemented.
54 void operator=(const TokenList&);
55 };
56
57}; // namespace Attributes
58
59#endif // OPAL_TokenList_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.
Definition TokenList.h:36
TokenList(const TokenList &)
virtual const std::string & getType() const
Return attribute type string `‘token list’'.
Definition TokenList.cpp:36
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition TokenList.cpp:41
void operator=(const TokenList &)
Interface for statements.
Definition Statement.h:37
A collection of routines to construct object Attributes and retrieve.