Line | |
---|
1 | #ifndef __IMAGE_LOADER_FACTORY_H__ |
---|
2 | #define __IMAGE_LOADER_FACTORY_H__ |
---|
3 | |
---|
4 | #include <map> |
---|
5 | #include <string> |
---|
6 | |
---|
7 | class ImageLoaderImpl; |
---|
8 | class Image; |
---|
9 | class ImageLoader; |
---|
10 | |
---|
11 | class ImageLoaderFactory { |
---|
12 | std::map< std::string, ImageLoaderImpl*> _loaderImpls; |
---|
13 | |
---|
14 | static ImageLoaderFactory* _instance; |
---|
15 | protected : |
---|
16 | ImageLoaderFactory(); |
---|
17 | ~ImageLoaderFactory(); |
---|
18 | |
---|
19 | public : |
---|
20 | static ImageLoaderFactory* getInstance(); |
---|
21 | |
---|
22 | public : |
---|
23 | void addLoaderImpl(const std::string& ext, ImageLoaderImpl* loaderImpl); |
---|
24 | ImageLoader* createLoader(const std::string& ext); |
---|
25 | }; |
---|
26 | |
---|
27 | #endif // |
---|
Note: See
TracBrowser
for help on using the repository browser.