OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
AttributeBase.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: AttributeBase.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.2.4.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: AttributeBase
10// The abstract base class for all attribute types.
11//
12// ------------------------------------------------------------------------
13//
14// $Date: 2002/12/09 15:06:07 $
15// $Author: jsberg $
16//
17// ------------------------------------------------------------------------
18
20#include <sstream>
21
22// Class AttributeBase
23// ------------------------------------------------------------------------
24
26
28
29std::string AttributeBase::getImage() const {
30 std::ostringstream os;
31 print(os);
32 os << std::ends;
33 return os.str();
34}
35
36bool AttributeBase::isExpression() const { return false; }
virtual bool isExpression() const
Test for expression.
virtual ~AttributeBase()
std::string getImage() const
Convert to string.
virtual void print(std::ostream &) const =0
Print value.