Ignore:
Timestamp:
Mar 9, 2012, 10:12:14 AM (13 years ago)
Author:
ldelgass
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/imgLoaders/ImageLoaderFactory.h

    r2798 r2831  
    11/* -*- 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
    44
    55#include <map>
     
    1010class ImageLoader;
    1111
    12 class ImageLoaderFactory {
    13     std::map< std::string, ImageLoaderImpl*> _loaderImpls;
     12class ImageLoaderFactory
     13{
     14public:
     15    void addLoaderImpl(const std::string& ext, ImageLoaderImpl *loaderImpl);
     16    ImageLoader *createLoader(const std::string& ext);
    1417
    15     static ImageLoaderFactory* _instance;
     18    static ImageLoaderFactory *getInstance();
     19
    1620protected :
    1721    ImageLoaderFactory();
    1822    ~ImageLoaderFactory();
    1923
    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);
     24private:
     25    std::map<std::string, ImageLoaderImpl *> _loaderImpls;
     26    static ImageLoaderFactory *_instance;
    2627};
    2728
    28 #endif //
     29#endif
Note: See TracChangeset for help on using the changeset viewer.