- Timestamp:
- Mar 9, 2012, 10:12:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/imgLoaders/ImageLoaderFactory.h
r2798 r2831 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 #ifndef __IMAGE_LOADER_FACTORY_H__3 #define __IMAGE_LOADER_FACTORY_H__2 #ifndef IMAGE_LOADER_FACTORY_H 3 #define IMAGE_LOADER_FACTORY_H 4 4 5 5 #include <map> … … 10 10 class ImageLoader; 11 11 12 class ImageLoaderFactory { 13 std::map< std::string, ImageLoaderImpl*> _loaderImpls; 12 class ImageLoaderFactory 13 { 14 public: 15 void addLoaderImpl(const std::string& ext, ImageLoaderImpl *loaderImpl); 16 ImageLoader *createLoader(const std::string& ext); 14 17 15 static ImageLoaderFactory* _instance; 18 static ImageLoaderFactory *getInstance(); 19 16 20 protected : 17 21 ImageLoaderFactory(); 18 22 ~ImageLoaderFactory(); 19 23 20 public : 21 static ImageLoaderFactory* getInstance(); 22 23 public : 24 void addLoaderImpl(const std::string& ext, ImageLoaderImpl* loaderImpl); 25 ImageLoader* createLoader(const std::string& ext); 24 private: 25 std::map<std::string, ImageLoaderImpl *> _loaderImpls; 26 static ImageLoaderFactory *_instance; 26 27 }; 27 28 28 #endif //29 #endif
Note: See TracChangeset
for help on using the changeset viewer.