From d7893436cefc6b3cef78ad765dba4fa1740d0f15 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 28 Apr 2009 16:30:08 +0200 Subject: forgot cbitmap.h --- ue2/imgsynth2/cbitmap.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 ue2/imgsynth2/cbitmap.h (limited to 'ue2/imgsynth2') diff --git a/ue2/imgsynth2/cbitmap.h b/ue2/imgsynth2/cbitmap.h new file mode 100644 index 0000000..c43e01d --- /dev/null +++ b/ue2/imgsynth2/cbitmap.h @@ -0,0 +1,72 @@ +/** + * @module cbitmap + * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) + * @brief Implementation of CFile handling Bitmaps. + * @date 17.04.2009 + */ + +#ifndef CBITMAP_H +#define CBITMAP_H + +#include +#include "cfile.h" + +class CPixelFormat; +#include "cpixelformat.h" + +/** + * @class CBitmap + * @brief Implementation of CFile handling Bitmaps. + * + * In order to support operations on bitmaps with different color bitcounts + * different implementations of CPixelFormat are used. These classes are + * allowed to modify the bitmap headers and pixelbuffer directly. + * + * On error CFile::FileError is thrown. + */ +class CBitmap : public CFile +{ + public: + /** + * @method CBitmap + * @brief Default ctor + * @param - + * @return - + * @globalvars none + * @exception none + * @conditions none + */ + CBitmap() + {} + + /** + * @method ~CBitmap + * @brief Default dtor + * @param - + * @return - + * @globalvars none + * @exception none + * @conditions none + */ + virtual ~CBitmap() + {}; + + /** + * TODO + */ + virtual void read(std::ifstream& in) = 0; + + /** + * TODO + */ + virtual void write(std::ofstream& out) = 0; + + /** + * TODO + */ + virtual void callFunc(const std::string& func, const std::list& params) = 0; +}; + +#endif + +/* vim: set et sw=2 ts=2: */ -- cgit v1.2.3