1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGBMPIMAGEFILETYPE_H_
40 #define _OSGBMPIMAGEFILETYPE_H_
45 #include "OSGImageFileIODef.h"
46 #include "OSGImageFileType.h"
50 /*! \brief BMP File Handler. Used to read/write BMP files.
51 See \ref PageSystemImage for a detailed description.
53 \ingroup GrpImageFileIOBMP
54 \ingroup GrpLibOSGImageFileIO
57 class OSG_IMGFILEIO_DLLMAPPING BMPImageFileType
: public ImageFileType
59 /*========================== PUBLIC =================================*/
63 /*---------------------------------------------------------------------*/
64 /*! \name Destructor */
67 virtual ~BMPImageFileType(void);
70 /*---------------------------------------------------------------------*/
71 /*! \name Read/Write */
74 virtual bool read ( Image
*pImage
,
76 const std::string
&mimetype
);
78 virtual bool write (const Image
*pImage
,
80 const std::string
&mimetype
);
83 /*---------------------------------------------------------------------*/
87 virtual std::string
determineMimetypeFromStream(std::istream
&is
);
90 /*========================= PROTECTED ===============================*/
94 /*---------------------------------------------------------------------*/
95 /*! \name Default Constructor */
98 BMPImageFileType (const Char8
*mimeType
,
99 const Char8
*suffixArray
[],
100 UInt16 suffixByteCount
,
104 /*---------------------------------------------------------------------*/
108 BMPImageFileType (const BMPImageFileType
&obj
);
109 const BMPImageFileType
&operator =(const BMPImageFileType
&obj
);
112 /*========================== PRIVATE ================================*/
116 typedef ImageFileType Inherited
;
118 static BMPImageFileType _the
;
121 typedef BMPImageFileType
*BMPImageFileTypeP
;
125 #endif // _OSGBMPIMAGEFILETYPE_H_