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

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

Refactor texture classes, misc. cleanups, cut down on header pollution -- still
need to fix header deps in Makefile.in

  • Property svn:eol-style set to native
File size: 621 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{
14public:
15    void addLoaderImpl(const std::string& ext, ImageLoaderImpl *loaderImpl);
16    ImageLoader *createLoader(const std::string& ext);
17
18    static ImageLoaderFactory *getInstance();
19
20protected :
21    ImageLoaderFactory();
22    ~ImageLoaderFactory();
23
24private:
25    std::map<std::string, ImageLoaderImpl *> _loaderImpls;
26    static ImageLoaderFactory *_instance;
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.