OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
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 
23 #include "Parser/Token.h"
24 #include <list>
25 
26 template <class T> class TValue;
27 
28 
29 // Class TokenList
30 // ------------------------------------------------------------------------
31 
32 namespace Attributes {
33 
35  // Such an attribute can encode e.g. an expression in a LIST command.
36  class TokenList: public AttributeHandler {
37 
38  public:
39 
41  // Assign attribute name and help string.
42  TokenList(const std::string &name, const std::string &help);
43 
44  virtual ~TokenList();
45 
47  virtual const std::string &getType() const;
48 
50  virtual void parse(Attribute &, Statement &, bool) const;
51 
52  private:
53 
54  // Not implemented.
55  TokenList();
56  TokenList(const TokenList &);
57  void operator=(const TokenList &);
58  };
59 
60 };
61 
62 #endif // OPAL_TokenList_HH
Parser for an attribute of type token list.
Definition: TokenList.h:36
void operator=(const TokenList &)
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition: TokenList.cpp:47
virtual const std::string & getType() const
Return attribute type string ``token list&#39;&#39;.
Definition: TokenList.cpp:41
A representation of an Object attribute.
Definition: Attribute.h:55
Interface for statements.
Definition: Statement.h:38
Abstract base class for attribute parsers.
const std::string name