Abstract base interface common for importers and exporters. More...
#include <iimpexp_base.h>
Public Member Functions | |
virtual IImpexp_state * | create_impexp_state (const char *uri, const IImpexp_state *parent_state=0) const =0 |
Returns a state suitable for passing it to a recursive import or export call. More... | |
virtual bool | test_file_type (const char *extension) const =0 |
Indicates whether a file name extension is supported. More... | |
virtual Impexp_priority | get_priority () const =0 |
Returns the priority of the importer or exporter. More... | |
virtual const char * | get_supported_extensions (Uint32 i) const =0 |
Returns the i -th supported file name extension. More... | |
virtual const char * | get_name () const =0 |
Returns a concise single-line clear text description of the importer or exporter. More... | |
virtual const char * | get_author () const =0 |
Returns a concise single-line clear text description of the author of this importer or exporter. More... | |
virtual base::Uuid | get_uuid () const =0 |
Returns the unique identifier for the importer or exporter. More... | |
virtual Uint32 | get_major_version () const =0 |
Returns the major version number of the importer or exporter. More... | |
virtual Uint32 | get_minor_version () const =0 |
Returns the minor version number of the importer or exporter. More... | |
Public Member Functions inherited from mi::base::IInterface | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0xf14bab60, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::IInterface | |
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> | IID |
Declares the interface ID (IID) of this interface. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0xf14bab60, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::IInterface | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
Abstract base interface common for importers and exporters.
The common functionality of importers and exporters comprises a factory function for the corresponding state, a test function to indicate support of a particular file extension, and additional methods to provide information about the importer or exporter, like author, version number, UUID, and so on.