XdmfGeometry.cpp 767 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1
/*
2
 * XdmfGeometry.cpp
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
3 4 5 6 7 8
 *
 *  Created on: Jan 29, 2010
 *      Author: kleiter
 */

#include "XdmfGeometry.hpp"
9
#include "XdmfVisitor.hpp"
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
10

11
XdmfGeometry::XdmfGeometry() :
12 13
	mGeometryType(XdmfGeometryType::NoGeometryType()),
	mNumberPoints(0)
14
{
15 16
	std::cout << "Created Geometry " << this << std::endl;
}
17

18 19 20
XdmfGeometry::~XdmfGeometry()
{
	std::cout << "Deleted Geometry " << this << std::endl;
21 22
}

23
XdmfGeometryType XdmfGeometry::getGeometryType() const
24
{
25
	return mGeometryType;
26 27 28
}


29
std::string XdmfGeometry::printSelf() const
30
{
31
	return "XdmfGeometry";
32 33
}

34
void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType)
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
35
{
36
	mGeometryType = geometryType;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
37
}
38 39 40

void XdmfGeometry::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
41
	visitor->visit(this, visitor);
42
}