48 #ifndef __IOMANAGER_HH__
49 #define __IOMANAGER_HH__
62 #include <OpenMesh/Core/System/config.h>
63 #include <OpenMesh/Core/IO/Options.hh>
64 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
65 #include <OpenMesh/Core/IO/writer/BaseWriter.hh>
66 #include <OpenMesh/Core/IO/importer/BaseImporter.hh>
67 #include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
68 #include <OpenMesh/Core/Utils/SingletonT.hh>
117 bool read(
const std::string& _filename,
127 bool read(std::istream& _filename,
128 const std::string& _ext,
139 bool write(
const std::string& _filename,
149 bool write(std::ostream& _filename,
150 const std::string& _ext,
156 bool can_read(
const std::string& _format )
const;
159 bool can_write(
const std::string& _format )
const;
162 size_t binary_size(
const std::string& _format,
193 void update_read_filters();
197 void update_write_filters();
209 reader_modules_.insert(_bl);
210 update_read_filters();
221 writer_modules_.insert(_bw);
222 update_write_filters();
229 const BaseWriter *find_writer(
const std::string& _format);
232 std::set<BaseReader*> reader_modules_;
235 std::set<BaseWriter*> writer_modules_;
238 std::string read_filters_;
241 std::string write_filters_;
248 extern _IOManager_* __IOManager_instance;
250 _IOManager_& IOManager();