OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
TableRow.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: TableRow.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: TableRow
10// A class used to parse a reference to a table lines.
11//
12// ------------------------------------------------------------------------
13//
14// $Date: 2000/03/27 09:33:36 $
15// $Author: Andreas Adelmann $
16//
17// ------------------------------------------------------------------------
18
19#include "Attributes/TableRow.h"
22#include "Expressions/SValue.h"
24
25using namespace Expressions;
26
27
28// Class TableRow
29// ------------------------------------------------------------------------
30
31namespace Attributes {
32
33 TableRow::TableRow(const std::string &name, const std::string &help):
34 AttributeHandler(name, help, 0)
35 {}
36
37
40
41
42 const std::string &TableRow::getType() const {
43 static const std::string type("table line");
44 return type;
45 }
46
47
48 void TableRow::parse(Attribute &attr, Statement &stat, bool) const {
49 attr.set(new SValue<TableRowRep>(parseTableRow(stat)));
50 }
51
52};
const std::string name
Representation objects and parsers for attribute expressions.
TableRowRep parseTableRow(Statement &)
Parse a token list (for macro argument and the like).
A collection of routines to construct object Attributes and retrieve.
A representation of an Object attribute.
Definition Attribute.h:52
void set(AttributeBase *newBase)
Define new value.
AttributeHandler(const std::string &name, const std::string &help, AttributeBase *def)
Constructor.
virtual const std::string & getType() const
Return attribute type string ``table line''.
Definition TableRow.cpp:42
TableRow(const std::string &name, const std::string &help)
Constructor.
Definition TableRow.cpp:33
virtual void parse(Attribute &, Statement &, bool) const
Parse the attribute.
Definition TableRow.cpp:48
Interface for statements.
Definition Statement.h:38
Object attribute with a constant scalar value.
Definition SValue.h:34