94 std::string
get_magic()
const override {
return "OM"; }
96 bool read(
const std::string& _filename,
101 bool read(std::istream& _is,
105 virtual bool can_u_read(
const std::string& _filename)
const override;
106 virtual bool can_u_read(std::istream& _is)
const;
111 bool supports(
const OMFormat::uint8 version )
const;
116 typedef OMFormat::Header Header;
117 typedef OMFormat::Chunk::Header ChunkHeader;
118 typedef OMFormat::Chunk::PropertyName PropertyName;
121 mutable size_t bytes_;
123 mutable Header header_;
124 mutable ChunkHeader chunk_header_;
125 mutable PropertyName property_name_;
127 bool read_binary_vertex_chunk( std::istream &_is,
132 bool read_binary_face_chunk( std::istream &_is,
137 bool read_binary_edge_chunk( std::istream &_is,
142 bool read_binary_halfedge_chunk( std::istream &_is,
147 bool read_binary_mesh_chunk( std::istream &_is,
152 size_t restore_binary_custom_data(std::istream& _is,
159 void add_generic_property(OMFormat::Chunk::PropertyName& _property_type,
BaseImporter& _bi)
const;