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

Last change on this file since 2798 was 2798, checked in by ldelgass, 12 years ago

Add emacs mode magic line in preparation for indentation cleanup

  • Property svn:eol-style set to native
File size: 633 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2#ifndef __IMAGE_LOADER_FACTORY_H__
3#define __IMAGE_LOADER_FACTORY_H__
4
5#include <map>
6#include <string>
7
8class ImageLoaderImpl;
9class Image;
10class ImageLoader;
11
12class ImageLoaderFactory {
13    std::map< std::string, ImageLoaderImpl*> _loaderImpls;
14
15    static ImageLoaderFactory* _instance;
16protected :
17    ImageLoaderFactory();
18    ~ImageLoaderFactory();
19
20public :
21    static ImageLoaderFactory* getInstance();
22
23public :
24    void addLoaderImpl(const std::string& ext, ImageLoaderImpl* loaderImpl);
25    ImageLoader* createLoader(const std::string& ext);
26};
27
28#endif //
Note: See TracBrowser for help on using the repository browser.