XII Release 0.1.0
Loading...
Searching...
No Matches
xiiImageFileFormatRegistrator< TYPE > Class Template Reference

Template used to automatically register a xiiImageFileFormat globally. More...

#include <ImageFileFormat.h>

Inheritance diagram for xiiImageFileFormatRegistrator< TYPE >:
[legend]

Public Member Functions

virtual const xiiImageFileFormatGetFormatType () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 
- Protected Attributes inherited from xiiEnumerable< xiiRegisteredImageFileFormat >
xiiEnumerablem_pNextInstance
 

Detailed Description

template<class TYPE>
class xiiImageFileFormatRegistrator< TYPE >

Template used to automatically register a xiiImageFileFormat globally.

Place a global variable of the desired type in some CPP file to register the type:

xiiImageFileFormatRegistrator<xiiDdsFileFormat> g_ddsFormat;

For the format to be available on platforms that use static linking, you may also need to add XII_STATICLINK_FORCE

Member Function Documentation

◆ GetFormatType()

template<class TYPE>
virtual const xiiImageFileFormat & xiiImageFileFormatRegistrator< TYPE >::GetFormatType ( ) const
inlineoverridevirtual

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