Changeset 1009

Show
Ignore:
Timestamp:
11/08/07 08:04:56 (1 year ago)
Author:
aronb
Message:

Extend ImageFileHandler? API to allow access to more file type information. This
makes it much easier to query OpenSG for each image mimetype it supports and the
associated file extensions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/fcptr_stable_jun07/Source/System/Image/OSGImageFileHandler.cpp

    r709 r1009  
    246246     
    247247    return count; 
     248} 
     249 
     250const ImageFileHandlerBase::TypeMap& ImageFileHandlerBase::getSuffixTypeMap() const 
     251{ 
     252    return _suffixTypeMap; 
     253} 
     254 
     255const ImageFileHandlerBase::TypeMap& ImageFileHandlerBase::getMimeTypeMap() const 
     256{ 
     257    return _mimeTypeMap; 
    248258} 
    249259 
  • branches/fcptr_stable_jun07/Source/System/Image/OSGImageFileHandler.h

    r709 r1009  
    188188    /*! \{                                                                 */ 
    189189 
     190    typedef std::map<std::string, ImageFileType *> TypeMap; 
     191 
     192    const TypeMap& getSuffixTypeMap() const; 
     193 
     194    const TypeMap& getMimeTypeMap()   const; 
     195 
    190196    /*! \}                                                                 */ 
    191197 
     
    194200  protected: 
    195201     
    196     typedef std::map<std::string, ImageFileType *> TypeMap; 
    197  
    198202    ReadCB       _pReadCallback; 
    199203 
  • branches/fcptr_stable_jun07/Source/System/Image/OSGImageFileType.h

    r709 r1009  
    212212 
    213213    /*! \}                                                                 */ 
    214     /*---------------------------------------------------------------------*/ 
    215     /*! \name                     Copy Op                                  */ 
    216     /*! \{                                                                 */ 
    217  
     214    /*==========================  PRIVATE  ================================*/ 
     215 
     216  private: 
     217    /* prohibit default function (move to 'public' if needed) */ 
    218218          ImageFileType            (const ImageFileType &obj); 
    219219    const ImageFileType &operator =(const ImageFileType &obj); 
    220220 
    221     /*! \}                                                                 */ 
    222     /*==========================  PRIVATE  ================================*/ 
    223  
    224   private: 
    225221 
    226222    std::list<std::string> _suffixList;