OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
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 RCObject()
27{}
28
29
31{}
32
33
34std::string AttributeBase::getImage() const {
35 std::ostringstream os;
36 print(os);
37 os << std::ends;
38 return os.str();
39}
40
41
43 return false;
44}
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.
Abstract base class for reference counted objects.
Definition: RCObject.h:40