API Documentation
Loading...
Searching...
No Matches
IOFactory Class Referenceabstract

#include <IOFactory.h>

Inheritance diagram for IOFactory:
[legend]

Public Member Functions

 IOFactory (const String &factory_name)
 
const Stringname () const
 
virtual ~IOFactory ()
 
bool writeScenesToFile (const File &file, const Buffer< Scene > &scene)
 
bool readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup)
 
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 getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const String &extension)
 
virtual void getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type)
 
virtual Buffer< UUIDfilterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const
 
virtual bool isFactoryEnabled (bool is_read) const
 
virtual bool canRead (const File &file)
 
virtual bool determineExtension (const File &file, String &extension)
 
virtual bool canWrite (const File &file)
 
virtual bool isAutoEnabled () const
 
virtual String getIcon (const File &file)
 
virtual bool canRead (const FactoryParameters &file)
 
virtual bool canWrite (const FactoryParameters &file)
 
virtual bool canRead (const FileFormat &file)
 
virtual bool canWrite (const FileFormat &file)
 
Buffer< ScenereadScenesFromFile (const File &file)
 
virtual FactoryOptions defaultReadOptions (const FactoryParameters &file) const
 
virtual FactoryOptions defaultWriteOptions (const FactoryParameters &file) const
 
virtual bool updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options)
 
virtual FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const =0
 
String factoryReadAppFeature () const
 
String factoryWriteAppFeature () const
 
void throwIfNotEnabled (bool is_read)
 

Static Public Member Functions

static void EnableFactory (IOFactory *factory, const String &read_password, const String &write_password)
 
static void EnableFactory (const String &factory, const String &read_password, const String &write_password)
 
static void EnableExtension (const String &extension, const String &read_password, const String &write_password)
 

Friends

class ModelFactory
 

Constructor & Destructor Documentation

◆ IOFactory()

IOFactory ( const String & factory_name)

◆ ~IOFactory()

~IOFactory ( )
virtual

Member Function Documentation

◆ canRead() [1/3]

bool canRead ( const FactoryParameters & file)
virtual

◆ canRead() [2/3]

bool canRead ( const File & file)
virtual

Reimplemented in IredesPatternFactory, and ModelFactory.

◆ canRead() [3/3]

bool canRead ( const FileFormat & file)
virtual

◆ canWrite() [1/3]

bool canWrite ( const FactoryParameters & file)
virtual

Reimplemented in ModelFactory, NDVFactory, and PDFFactory.

◆ canWrite() [2/3]

bool canWrite ( const File & file)
virtual

Reimplemented in ModelFactory, and PDFFactory.

◆ canWrite() [3/3]

bool canWrite ( const FileFormat & file)
virtual

Reimplemented in NDVFactory, and PDFFactory.

◆ defaultReadOptions()

◆ defaultWriteOptions()

◆ determineExtension()

bool determineExtension ( const File & file,
String & extension )
virtual

Reimplemented in DXFFactory, ModelFactory, NDVFactory, and SH3DFactory.

◆ EnableExtension()

void EnableExtension ( const String & extension,
const String & read_password,
const String & write_password )
static

◆ EnableFactory() [1/2]

void EnableFactory ( const String & factory,
const String & read_password,
const String & write_password )
static

◆ EnableFactory() [2/2]

void EnableFactory ( IOFactory * factory,
const String & read_password,
const String & write_password )
static

◆ factoryFeatures()

◆ factoryReadAppFeature()

String factoryReadAppFeature ( ) const

◆ factoryWriteAppFeature()

String factoryWriteAppFeature ( ) const

◆ filterModelsToExport()

Buffer< UUID > filterModelsToExport ( Buffer< UUID > models_to_check,
const DesignObjectLookup * lookup,
const FileFormat & export_format ) const
virtual

◆ getIcon()

String getIcon ( const File & file)
virtual

◆ getSupportedFormats() [1/4]

void getSupportedFormats ( Buffer< FileFormat > & formats)

◆ getSupportedFormats() [2/4]

virtual void getSupportedFormats ( Buffer< FileFormat > & formats,
bool is_read )
pure virtual

◆ getSupportedFormats() [3/4]

void getSupportedFormats ( Buffer< FileFormat > & formats,
const File & file )
virtual

Reimplemented in ModelFactory.

◆ getSupportedFormats() [4/4]

void getSupportedFormats ( Buffer< FileFormat > & formats,
DesignObjectLookup * lookup,
const Buffer< UUID > & models )
virtual

Reimplemented in AsciiFactory, ModelFactory, and PDFFactory.

◆ getSupportedFormatsByModelType()

void getSupportedFormatsByModelType ( Buffer< FileFormat > & formats,
bool is_read,
const String & model_type )
virtual

◆ getSupportedFormatsForExtension()

void getSupportedFormatsForExtension ( Buffer< FileFormat > & formats,
bool is_read,
const String & extension )
virtual

◆ isAutoEnabled()

bool isAutoEnabled ( ) const
virtual

◆ isFactoryEnabled()

bool isFactoryEnabled ( bool is_read) const
virtual

◆ name()

const String & name ( ) const
inline

◆ readFileWithDefaultSettings()

bool readFileWithDefaultSettings ( const File & file,
DesignObjectLookup * lookup )

◆ readScenesFromFile()

Buffer< Scene > readScenesFromFile ( const File & file)

◆ throwIfNotEnabled()

void throwIfNotEnabled ( bool is_read)

◆ updateFromFile()

bool updateFromFile ( const FactoryParameters & file,
const FactoryOptions & old_options )
virtual

Reimplemented in ModelFactory.

◆ writeScenesToFile()

bool writeScenesToFile ( const File & file,
const Buffer< Scene > & scene )

Friends And Related Symbol Documentation

◆ ModelFactory

friend class ModelFactory
friend

The documentation for this class was generated from the following files: