![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cImageLoader.h>
Public Member Functions | |
cImageLoader () | |
~cImageLoader () | |
HRESULT | LoadImageFile (cStreamInput &inp, const FILECHAR_t *pszFileExt, OUT cImageBasePtr &pImageRet) const |
HRESULT | LoadImageFile (const FILECHAR_t *pszFileName, OUT cImageBasePtr &pImageRet) const |
UNITTEST2_PREDEF (cImageLoader) | |
![]() | |
virtual | ~CObject () |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
![]() | |
cHeapObject () | |
virtual | ~cHeapObject () |
bool | IsValidInsideN (INT_PTR index) const |
bool | IsValidInsidePtr (void const *pTest) const |
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
virtual bool | isValidCheck () const noexcept |
Public Attributes | |
cArrayPtr< IImageCreator > | m_aImageCreator |
array of Plugins/factories to load/create an image of a particular type. More... | |
Additional Inherited Members | |
![]() | |
static cImageLoader *__stdcall | get_Single () |
static TYPE2 *__stdcall | get_SingleT () |
static cImageLoader &__stdcall | I () |
![]() | |
static bool | isSingleCreated () noexcept |
static TYPE * | get_SingleU () noexcept |
static TYPE * | get_Single () |
template<class TYPE2 > | |
static TYPE2 *__stdcall | get_SingleCast () |
static TYPE & | I () noexcept |
![]() | |
static void __stdcall | ReleaseModule (HMODULE hMod) |
![]() | |
static cThreadLockFast | sm_LockSingle |
common lock for all cSingleton. More... | |
![]() | |
cSingleton (cImageLoader *pObject, const TYPEINFO_t &rAddrCode=typeid(cImageLoader)) noexcept | |
virtual | ~cSingleton () |
![]() | |
cSingletonStatic (TYPE *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
cSingletonRegister (const TYPEINFO_t &rAddrCode) noexcept | |
virtual | ~cSingletonRegister () |
void | RegisterSingleton () |
![]() | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
![]() | |
HMODULE | m_hModuleLoaded |
What modules loaded this ? So singletons can be destroyed if DLL/SO unloads. More... | |
![]() | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
Deal with Plugins to load images of various file format types. TODO Should we do caching? Track Time since last load ?
GrayLib::cImageLoader::cImageLoader | ( | ) |
GrayLib::cImageLoader::~cImageLoader | ( | ) |
HRESULT GrayLib::cImageLoader::LoadImageFile | ( | const FILECHAR_t * | pszFileName, |
OUT cImageBasePtr & | pImageRet | ||
) | const |
Load a file of an unknown type. try to figure out the type by trying all the types i know. call m_aImageCreator IImageCreator for each type. and test load.
HRESULT GrayLib::cImageLoader::LoadImageFile | ( | cStreamInput & | inp, |
const FILECHAR_t * | pszFileExt, | ||
OUT cImageBasePtr & | pImageRet | ||
) | const |
call m_aImageCreator IImageCreator for each type. and test load.
GrayLib::cImageLoader::UNITTEST2_PREDEF | ( | cImageLoader | ) |
cArrayPtr<IImageCreator> GrayLib::cImageLoader::m_aImageCreator |
array of Plugins/factories to load/create an image of a particular type.