XdmfReader.cpp 736 Bytes
Newer Older
1 2 3
// Kenneth Leiter
// Xdmf Smart Pointer Test

4
#include "XdmfItemFactory.hpp"
5 6
#include "XdmfReader.hpp"

7 8 9 10 11 12
boost::shared_ptr<XdmfReader> XdmfReader::New()
{
	boost::shared_ptr<XdmfReader> p(new XdmfReader());
	return p;
}

13
XdmfReader::XdmfReader() :
14
	XdmfCoreReader(XdmfItemFactory::New())
15 16 17 18 19 20
{
}

XdmfReader::~XdmfReader()
{
}
21 22 23 24 25 26

// Implemented to make SWIG wrapping work correctly (typemaps to return specific subclass instances of XdmfItems)
boost::shared_ptr<XdmfItem> XdmfReader::read(const std::string & filePath) const
{
	return XdmfCoreReader::read(filePath);
}
27 28 29 30 31

std::vector<boost::shared_ptr<XdmfItem> > XdmfReader::read(const std::string & filePath, const std::string & xPath) const
{
	return XdmfCoreReader::read(filePath, xPath);
}