A service that provides Import/Export functionality for a model heirarchy. These can be registered with a EnableFactory to allow the user to export/import to certain file formats. In order to provide support for new file formats, classes should overrdide this class and then add themselves using EnableFactory.
More...
|
virtual bool | canRead (const FactoryParameters &file) |
|
virtual bool | canRead (const File &file) |
|
virtual bool | canRead (const FileFormat &file) |
|
virtual bool | canWrite (const FactoryParameters &file) |
|
virtual bool | canWrite (const File &file) |
|
virtual bool | canWrite (const FileFormat &file) |
|
virtual FactoryOptions | defaultReadOptions (const FactoryParameters &file) const |
|
virtual FactoryOptions | defaultWriteOptions (const FactoryParameters &file) const |
|
virtual bool | determineExtension (const File &file, String &extension) |
|
virtual FactoryFeatures | factoryFeatures (const FactoryParameters &file, bool is_import) const =0 |
|
String | factoryReadAppFeature () const |
|
String | factoryWriteAppFeature () const |
|
virtual Buffer< UUID > | filterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const |
|
virtual String | getIcon (const File &file) |
|
void | getSupportedFormats (Buffer< FileFormat > &formats) |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, bool is_read)=0 |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, const File &file) |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) |
|
virtual void | getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type) |
|
virtual void | getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const String &extension) |
|
| IOFactory (const String &factory_name) |
|
virtual bool | isAutoEnabled () const |
|
virtual bool | isFactoryEnabled (bool is_read) const |
|
const String & | name () const |
|
bool | readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup) |
|
Buffer< Scene > | readScenesFromFile (const File &file) |
|
void | throwIfNotEnabled (bool is_read) |
|
virtual bool | updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options) |
|
bool | writeScenesToFile (const File &file, const Buffer< Scene > &scene) |
|
virtual | ~IOFactory () |
|
A service that provides Import/Export functionality for a model heirarchy. These can be registered with a EnableFactory to allow the user to export/import to certain file formats. In order to provide support for new file formats, classes should overrdide this class and then add themselves using EnableFactory.
For write operations we will first send which data structures the user wishes to export, if it is possible for a certain implementation to write those data structures, it will then be asked to provide available write formats. If the user chooses the provided format FactoryFeatures will be requested to see what options to show the user. The factory can then write this data.
For read operations we will first ask which extensions are supported. If the user chooses a file with the supported extension, FactoryFeatures will be requested to see what options to show the user. The factory can then read this data.