summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@clan-server.at>2009-04-28 16:30:08 +0200
committermanuel <manuel@clan-server.at>2009-04-28 16:30:08 +0200
commitd7893436cefc6b3cef78ad765dba4fa1740d0f15 (patch)
treeda6fcdf95cfa21e5de44f126eed6f767e4059509
parentf3c5bc280737573cf8597f18c011a1a1092e32d3 (diff)
downloadooprog-d7893436cefc6b3cef78ad765dba4fa1740d0f15.tar.gz
ooprog-d7893436cefc6b3cef78ad765dba4fa1740d0f15.tar.bz2
ooprog-d7893436cefc6b3cef78ad765dba4fa1740d0f15.zip
forgot cbitmap.h
-rw-r--r--ue2/imgsynth2/cbitmap.h72
1 files changed, 72 insertions, 0 deletions
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 @@
1/**
2 * @module cbitmap
3 * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348)
4 * @brief Implementation of CFile handling Bitmaps.
5 * @date 17.04.2009
6 */
7
8#ifndef CBITMAP_H
9#define CBITMAP_H
10
11#include <stdint.h>
12#include "cfile.h"
13
14class CPixelFormat;
15#include "cpixelformat.h"
16
17/**
18 * @class CBitmap
19 * @brief Implementation of CFile handling Bitmaps.
20 *
21 * In order to support operations on bitmaps with different color bitcounts
22 * different implementations of CPixelFormat are used. These classes are
23 * allowed to modify the bitmap headers and pixelbuffer directly.
24 *
25 * On error CFile::FileError is thrown.
26 */
27class CBitmap : public CFile
28{
29 public:
30 /**
31 * @method CBitmap
32 * @brief Default ctor
33 * @param -
34 * @return -
35 * @globalvars none
36 * @exception none
37 * @conditions none
38 */
39 CBitmap()
40 {}
41
42 /**
43 * @method ~CBitmap
44 * @brief Default dtor
45 * @param -
46 * @return -
47 * @globalvars none
48 * @exception none
49 * @conditions none
50 */
51 virtual ~CBitmap()
52 {};
53
54 /**
55 * TODO
56 */
57 virtual void read(std::ifstream& in) = 0;
58
59 /**
60 * TODO
61 */
62 virtual void write(std::ofstream& out) = 0;
63
64 /**
65 * TODO
66 */
67 virtual void callFunc(const std::string& func, const std::list<std::string>& params) = 0;
68};
69
70#endif
71
72/* vim: set et sw=2 ts=2: */