50 #ifndef __OMREADER_HH__
51 #define __OMREADER_HH__
57 #include <OpenMesh/Core/System/config.h>
58 #include <OpenMesh/Core/Utils/SingletonT.hh>
59 #include <OpenMesh/Core/IO/OMFormat.hh>
60 #include <OpenMesh/Core/IO/IOManager.hh>
61 #include <OpenMesh/Core/IO/importer/BaseImporter.hh>
62 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
94 bool read(
const std::string& _filename,
99 bool read(std::istream& _is,
103 virtual bool can_u_read(
const std::string& _filename)
const;
104 virtual bool can_u_read(std::istream& _is)
const;
109 bool supports(
const OMFormat::uint8 version )
const;
119 mutable size_t bytes_;
120 mutable Header header_;
121 mutable ChunkHeader chunk_header_;
122 mutable PropertyName property_name_;
124 bool read_binary_vertex_chunk( std::istream &_is,
129 bool read_binary_face_chunk( std::istream &_is,
134 bool read_binary_edge_chunk( std::istream &_is,
139 bool read_binary_halfedge_chunk( std::istream &_is,
144 bool read_binary_mesh_chunk( std::istream &_is,
149 size_t restore_binary_custom_data( std::istream& _is,
162 _OMReader_& OMReader();