The core logic for importing and exporting files from the model heirarchy. Stores a series of IOFactory children that can define when and how they are able to export or import data.
More...
|
void | addFactory (IOFactory *factory) |
|
void | addFactory (String extension, IOFactory *factory) |
|
virtual bool | canRead (const FactoryParameters &file) override |
|
virtual bool | canRead (const File &file) override |
|
virtual bool | canWrite (const FactoryParameters &file) override |
|
virtual bool | canWrite (const File &file) override |
|
void | clearFactories () |
|
virtual FactoryOptions | defaultReadOptions (const FactoryParameters &file) const override |
|
virtual FactoryOptions | defaultWriteOptions (const FactoryParameters &file) const override |
|
virtual bool | determineExtension (const File &file, String &extension) override |
|
void | enableExtension (String extension, const String &read_password, const String &write_password) |
|
void | enableFactory (const String &factory, const String &read_password, const String &write_password) |
|
void | enableFactory (IOFactory *factory, const String &read_password, const String &write_password) |
|
FactoryFeatures | factoryFeatures (const FactoryParameters &file, bool is_import) const override |
|
virtual Buffer< UUID > | filterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const override |
|
virtual String | getIcon (const File &file) override |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, const File &file) override |
|
virtual void | getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override |
|
virtual void | getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type) override |
|
virtual bool | readFile (FactoryParameters &file) override |
|
virtual bool | updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options) override |
|
virtual bool | writeFile (FactoryParameters &file) override |
|
virtual bool | canRead (const FileFormat &file) |
|
virtual bool | canWrite (const FileFormat &file) |
|
String | factoryReadAppFeature () const |
|
String | factoryWriteAppFeature () const |
|
void | getSupportedFormats (Buffer< FileFormat > &formats) |
|
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) |
|
bool | writeScenesToFile (const File &file, const Buffer< Scene > &scene) |
|
virtual | ~IOFactory () |
|
The core logic for importing and exporting files from the model heirarchy. Stores a series of IOFactory children that can define when and how they are able to export or import data.
Based on options will select the proper IOFactory to perform the import or export task.