source: trunk/packages/vizservers/nanovis/imgLoaders/ImageLoaderFactory.h @ 1018

Last change on this file since 1018 was 823, checked in by vrinside, 16 years ago

Image Loaders - BMP (Currently BMP loader was implmented)
For extensibility, Bridge/Singleton? Pattern was used

File size: 567 bytes
Line 
1#ifndef __IMAGE_LOADER_FACTORY_H__
2#define __IMAGE_LOADER_FACTORY_H__
3
4#include <map>
5#include <string>
6
7class ImageLoaderImpl;
8class Image;
9class ImageLoader;
10
11class ImageLoaderFactory {
12    std::map< std::string, ImageLoaderImpl*> _loaderImpls;
13
14    static ImageLoaderFactory* _instance;
15protected :
16    ImageLoaderFactory();
17    ~ImageLoaderFactory();
18
19public :
20    static ImageLoaderFactory* getInstance();
21
22public :
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.