XdmfGeometry.cpp 910 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3 4 5 6 7 8
/*
 * XdmfGrid.cpp
 *
 *  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 12
XdmfGeometry::XdmfGeometry() :
mGeometryType(XdmfGeometryType::NoGeometryType())
13
{
14 15
	std::cout << "Created Geometry " << this << std::endl;
}
16

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

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

void XdmfGeometry::setGeometryType(const XdmfGeometryType& geomType)
{
29
	mGeometryType = geomType;
30 31
}

32
std::string XdmfGeometry::getGeometryTypeAsString() const
33
{
34
	return mGeometryType.getName();
35 36
}

37
int XdmfGeometry::getDimensions() const
38
{
39
	return mGeometryType.getDimensions();
40 41
}

42
const std::string XdmfGeometry::printSelf() const
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
43 44 45
{
	return "XdmfGeometry";
}
46 47 48 49 50

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