The ImageLoaderManager class loads ImageLoader plugins and creates appropriate ImageLoader instances for each image file format. More...
Public Member Functions | |
ImageLoaderPtr | getLoader (const QString &fileName) |
void | registerLoaders (const QString &directory) |
bool | empty () |
Private Attributes | |
QMap< QString, ImageLoaderFactory * > | loaders |
Friends | |
class | Singleton< ImageLoaderManager > |
The ImageLoaderManager class loads ImageLoader plugins and creates appropriate ImageLoader instances for each image file format.
Appropriate loaders are chosen according to file name extensions.
This class is a Singleton.
Definition at line 31 of file ImageLoaderManager.h.
bool ImageLoaderManager::empty | ( | ) |
Returns true if the ImageLoaderManager has no loader, otherwise returns false.
Definition at line 78 of file ImageLoaderManager.cpp.
ImageLoaderPtr ImageLoaderManager::getLoader | ( | const QString & | fileName ) |
Returns a pointer to a loader able to load the image with the name fileName.
Definition at line 37 of file ImageLoaderManager.cpp.
void ImageLoaderManager::registerLoaders | ( | const QString & | directory ) |
Registers all the loaders found in the directory with the name directory.
Definition at line 54 of file ImageLoaderManager.cpp.