OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
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.
56  TokenList(const TokenList &);
57  void operator=(const TokenList &);
58  };
59 
60 };
61 
62 #endif // OPAL_TokenList_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.
Definition: TokenList.h:36
TokenList(const TokenList &)
virtual const std::string & getType() const
Return attribute type string `‘token list’'.
Definition: TokenList.cpp:41
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition: TokenList.cpp:47
void operator=(const TokenList &)
Interface for statements.
Definition: Statement.h:38