Accelerated Computation Engine
|
#include <eabstractdatafactory.h>
Public Member Functions | |
virtual quint16 | size () const =0 |
virtual QString | name (quint16 type) const =0 |
virtual QString | fileExtension (quint16 type) const =0 |
virtual std::unique_ptr< EAbstractData > | make (quint16 type) const =0 |
virtual | ~EAbstractDataFactory ()=default |
Static Public Member Functions | |
static EAbstractDataFactory & | instance () |
static void | setInstance (std::unique_ptr< EAbstractDataFactory > &&instance) |
This represents the factory for producing new abstract data objects. This also gives basic information that allows ACE to query and figure out all available data types the program that uses the ACE library provides. If a program wishes to be backwards compatible any previously defined data types must maintain the same unique integer that identifies them.
|
virtualdefault |
This is so any implementation of this class will be deconstructed correctly.
|
pure virtual |
This interface returns the file extension for the given data type as a string.
type | The data type whose file extension is returned. |
|
static |
Returns a reference to the global instance of the class that implements this factory. If no instance has ever been set than an exception is thrown.
|
pure virtual |
This interface makes and returns a new abstract data object of the given type.
type | The data type of the abstract data object that is made and returned. |
|
pure virtual |
This interface returns the display name for the given data type.
type | The data type whose display name is returned. |
|
static |
Sets the global instance for this object's implementation. If a global instance already exists then it is deleted and replaced with the new one given.
instance | Pointer to the new global instance for this factory. |
|
pure virtual |
This interface returns the total number of data types a program that uses ACE implements. All integers from 0 to one less than the size returned must be defined as a unique data type.