XdmfReader.cpp 2.39 KB
Newer Older
Kenneth Leiter's avatar
Kenneth Leiter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*****************************************************************************/
/*                                    XDMF                                   */
/*                       eXtensible Data Model and Format                    */
/*                                                                           */
/*  Id : XdmfReader.cpp                                                      */
/*                                                                           */
/*  Author:                                                                  */
/*     Kenneth Leiter                                                        */
/*     kenneth.leiter@arl.army.mil                                           */
/*     US Army Research Laboratory                                           */
/*     Aberdeen Proving Ground, MD                                           */
/*                                                                           */
/*     Copyright @ 2011 US Army Research Laboratory                          */
/*     All Rights Reserved                                                   */
/*     See Copyright.txt for details                                         */
/*                                                                           */
/*     This software is distributed WITHOUT ANY WARRANTY; without            */
/*     even the implied warranty of MERCHANTABILITY or FITNESS               */
/*     FOR A PARTICULAR PURPOSE.  See the above copyright notice             */
/*     for more information.                                                 */
/*                                                                           */
/*****************************************************************************/
23

24
#include "XdmfItemFactory.hpp"
25 26
#include "XdmfReader.hpp"

27
shared_ptr<XdmfReader>
28
XdmfReader::New()
29
{
30
  shared_ptr<XdmfReader> p(new XdmfReader());
31
  return p;
32 33
}

34
XdmfReader::XdmfReader() :
35
  XdmfCoreReader(XdmfItemFactory::New())
36 37 38 39 40 41
{
}

XdmfReader::~XdmfReader()
{
}
42

43 44
// Implemented to make SWIG wrapping work correctly
// (typemaps to return specific subclass instances of XdmfItems)
45
shared_ptr<XdmfItem>
46
XdmfReader::read(const std::string & filePath) const
47
{
48
  return XdmfCoreReader::read(filePath);
49
}
50

51
std::vector<shared_ptr<XdmfItem> >
52 53
XdmfReader::read(const std::string & filePath,
                 const std::string & xPath) const
54
{
55
  return XdmfCoreReader::read(filePath, xPath);
56
}