25 #ifndef WMESHREADERINTERFACE_H
26 #define WMESHREADERINTERFACE_H
34 #include <boost/filesystem/path.hpp>
36 #include "core/common/WIOTools.h"
37 #include "core/common/WLogger.h"
38 #include "core/common/WProgressCombiner.h"
39 #include "core/common/WStringUtils.h"
40 #include "core/dataHandler/exceptions/WDHIOFailure.h"
41 #include "core/dataHandler/exceptions/WDHNoSuchFile.h"
42 #include "core/dataHandler/exceptions/WDHParseError.h"
43 #include "core/graphicsEngine/WTriangleMesh.h"
63 boost::filesystem::path file ) = 0;
78 std::string
getLine( std::shared_ptr< std::ifstream > ifs,
const std::string& desc )
const;
88 std::string
getLine( std::ifstream& ifs,
const std::string& desc )
const;
Define the interface which is injected into an WObjectNDIP.
virtual ~WMeshReaderInterface()
Destructor.
std::string getLine(std::shared_ptr< std::ifstream > ifs, const std::string &desc) const
Read a line from the given input stream and throw an exception on error.
virtual WTriangleMesh::SPtr operator()(WProgressCombiner::SPtr progress, boost::filesystem::path file)=0
Load the dataset.
std::shared_ptr< WProgressCombiner > SPtr
Abbreviate shared_ptr for this class.
std::shared_ptr< WTriangleMesh > SPtr
Shared pointer.