summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cbitmap.h
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-01 20:18:51 +0200
committermanuel <manuel@nc8430.lan>2009-05-01 20:18:51 +0200
commitb9ce1555b2baf9be209775dbd4c8b217db5cd735 (patch)
tree9c4b74f4a3f9e323e6d799313f9f59dd7b940fb4 /ue2/imgsynth2/cbitmap.h
parent6431d84ffec82db10030d918cfed8e791e62f42c (diff)
downloadooprog-b9ce1555b2baf9be209775dbd4c8b217db5cd735.tar.gz
ooprog-b9ce1555b2baf9be209775dbd4c8b217db5cd735.tar.bz2
ooprog-b9ce1555b2baf9be209775dbd4c8b217db5cd735.zip
rewrote pixmap::read to do more sanity checks
Diffstat (limited to 'ue2/imgsynth2/cbitmap.h')
-rw-r--r--ue2/imgsynth2/cbitmap.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ue2/imgsynth2/cbitmap.h b/ue2/imgsynth2/cbitmap.h
index c8d4dfb..f48ada7 100644
--- a/ue2/imgsynth2/cbitmap.h
+++ b/ue2/imgsynth2/cbitmap.h
@@ -68,14 +68,13 @@ class CBitmap : public CFile
68 * @method write 68 * @method write
69 * @brief Writes Windows Bitmap to filestream. 69 * @brief Writes Windows Bitmap to filestream.
70 * @param out filestream to read data from 70 * @param out filestream to read data from
71 * @param filename filename (maybe useful for some handlers)
72 * @return - 71 * @return -
73 * @globalvars none 72 * @globalvars none
74 * @exception FileError 73 * @exception FileError
75 * @exception bad_alloc 74 * @exception bad_alloc
76 * @conditions none 75 * @conditions none
77 */ 76 */
78 virtual void write(std::ofstream& out, std::string& filename) = 0; 77 virtual void write(std::ofstream& out) = 0;
79 78
80 /** 79 /**
81 * @method getPixelData 80 * @method getPixelData
@@ -231,8 +230,7 @@ class CBitmap : public CFile
231 /** pointer to pixelbuffer */ 230 /** pointer to pixelbuffer */
232 uint8_t *m_pixeldata; 231 uint8_t *m_pixeldata;
233 /** colortable map */ 232 /** colortable map */
234 //TODO std::map<std::string, CPixelFormat::RGBPIXEL *> m_colortable; 233 std::map<std::string, CPixelFormat::RGBPIXEL *> m_colortable;
235 std::map<std::string, std::map< std::string, uint32_t* > > xpmColors;
236 /** set of supported PixelFormat handlers */ 234 /** set of supported PixelFormat handlers */
237 std::set<CPixelFormat *> m_handlers; 235 std::set<CPixelFormat *> m_handlers;
238 /** pointer to CPixelFormat implementation */ 236 /** pointer to CPixelFormat implementation */