XdmfGeometry.cpp 842 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 9
 *
 *  Created on: Jan 29, 2010
 *      Author: kleiter
 */

#include "XdmfGeometry.hpp"

10
XdmfGeometry::XdmfGeometry() :
11 12
	mGeometryType(XdmfGeometryType::NoGeometryType()),
	mNumberPoints(0)
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 29 30 31 32 33
std::map<std::string, std::string> XdmfGeometry::getItemProperties() const
{
	std::map<std::string, std::string> geometryProperties;
	mGeometryType.getProperties(geometryProperties);
	return geometryProperties;
}

34 35 36 37 38
std::string XdmfGeometry::getItemTag() const
{
	return "Geometry";
}

39
void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType)
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
40
{
41
	mGeometryType = geometryType;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
42
}