open_iA 2024.9
Loading...
Searching...
No Matches
iAFileTypeRegistry Class Referencefinal

Registry for file types (of type iAFileIO) with the file I/O framework of open_iA. More...

#include <iAFileTypeRegistry.h>

Static Public Member Functions

static bool add (iAFileIOCreateFuncPtr c)
 Adds a given file type to the registry.
 
static void addDefaultExtension (iADataSetType type, QString ext)
 Adds a default extension for a given file type.
 
static std::shared_ptr< iAFileIOcreateIO (QString const &fileName, iAFileIO::Operation op)
 Create a file I/O for the given extension.
 
static bool defaultExtAvailable (iADataSetType type)
 Whether a default extension for datasets of the given type is available.
 
static QString defaultExtension (iADataSetType type)
 Get the default extension for datasets of the given type.
 
static QString defaultExtFilterString (iADataSetType type)
 Get the filter string for the default extension for a given dataset type.
 
static QString registeredFileTypes (iAFileIO::Operation op, iADataSetTypes allowedTypes=iADataSetType::All)
 Retrieve list of file types for file open/save dialog.
 

Detailed Description

Registry for file types (of type iAFileIO) with the file I/O framework of open_iA.

Member Function Documentation

◆ add()

bool iAFileTypeRegistry::add ( iAFileIOCreateFuncPtr c)
static

Adds a given file type to the registry.

◆ addDefaultExtension()

void iAFileTypeRegistry::addDefaultExtension ( iADataSetType type,
QString ext )
static

Adds a default extension for a given file type.

◆ createIO()

std::shared_ptr< iAFileIO > iAFileTypeRegistry::createIO ( QString const & fileName,
iAFileIO::Operation op )
static

Create a file I/O for the given extension.

◆ defaultExtAvailable()

bool iAFileTypeRegistry::defaultExtAvailable ( iADataSetType type)
static

Whether a default extension for datasets of the given type is available.

◆ defaultExtension()

QString iAFileTypeRegistry::defaultExtension ( iADataSetType type)
static

Get the default extension for datasets of the given type.

◆ defaultExtFilterString()

QString iAFileTypeRegistry::defaultExtFilterString ( iADataSetType type)
static

Get the filter string for the default extension for a given dataset type.

To be used in file open dialog, same string returned for that filetype as part of the result of registeredFileTypes

◆ registeredFileTypes()

QString iAFileTypeRegistry::registeredFileTypes ( iAFileIO::Operation op,
iADataSetTypes allowedTypes = iADataSetType::All )
static

Retrieve list of file types for file open/save dialog.


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