diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
commit | ac517a2b7625e0aa0862679e961c6349f859ea3b (patch) | |
tree | e3e27a6b9bd5e2be6150088495c91fc91786ad9d /src/filter.cpp | |
parent | f8d4301e9fa4f3709258505941e37fab2eadadc6 (diff) | |
parent | bd865cee5f89116c1f054cd0e5c275e97c2d0a9b (diff) | |
download | libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.gz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.bz2 libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.xz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.zip |
The reorg is being put in trunk, I think it's ready. Now we just get to find
out how many applications won't work anymore :)
Diffstat (limited to 'src/filter.cpp')
-rw-r--r-- | src/filter.cpp | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/filter.cpp b/src/filter.cpp new file mode 100644 index 0000000..96a8694 --- /dev/null +++ b/src/filter.cpp | |||
@@ -0,0 +1,97 @@ | |||
1 | #include "bu/filter.h" | ||
2 | |||
3 | Bu::Filter::Filter( Bu::Stream &rNext ) : | ||
4 | rNext( rNext ) | ||
5 | { | ||
6 | } | ||
7 | |||
8 | Bu::Filter::~Filter() | ||
9 | { | ||
10 | //printf("-> Bu::Filter::~Filter()\n"); | ||
11 | } | ||
12 | /* | ||
13 | void Bu::Filter::start() | ||
14 | { | ||
15 | printf("-> Bu::Filter::start()\n"); | ||
16 | } | ||
17 | |||
18 | void Bu::Filter::stop() | ||
19 | { | ||
20 | }*/ | ||
21 | |||
22 | void Bu::Filter::close() | ||
23 | { | ||
24 | stop(); | ||
25 | rNext.close(); | ||
26 | } | ||
27 | |||
28 | long Bu::Filter::tell() | ||
29 | { | ||
30 | return rNext.tell(); | ||
31 | } | ||
32 | |||
33 | void Bu::Filter::seek( long offset ) | ||
34 | { | ||
35 | rNext.seek( offset ); | ||
36 | } | ||
37 | |||
38 | void Bu::Filter::setPos( long pos ) | ||
39 | { | ||
40 | rNext.setPos( pos ); | ||
41 | } | ||
42 | |||
43 | void Bu::Filter::setPosEnd( long pos ) | ||
44 | { | ||
45 | rNext.setPosEnd( pos ); | ||
46 | } | ||
47 | |||
48 | bool Bu::Filter::isEOS() | ||
49 | { | ||
50 | return rNext.isEOS(); | ||
51 | } | ||
52 | |||
53 | bool Bu::Filter::isOpen() | ||
54 | { | ||
55 | return rNext.isOpen(); | ||
56 | } | ||
57 | |||
58 | bool Bu::Filter::canRead() | ||
59 | { | ||
60 | return rNext.canRead(); | ||
61 | } | ||
62 | |||
63 | bool Bu::Filter::canWrite() | ||
64 | { | ||
65 | return rNext.canWrite(); | ||
66 | } | ||
67 | |||
68 | bool Bu::Filter::isReadable() | ||
69 | { | ||
70 | return rNext.isReadable(); | ||
71 | } | ||
72 | |||
73 | bool Bu::Filter::isWritable() | ||
74 | { | ||
75 | return rNext.isWritable(); | ||
76 | } | ||
77 | |||
78 | bool Bu::Filter::isSeekable() | ||
79 | { | ||
80 | return rNext.isSeekable(); | ||
81 | } | ||
82 | |||
83 | bool Bu::Filter::isBlocking() | ||
84 | { | ||
85 | return rNext.isBlocking(); | ||
86 | } | ||
87 | |||
88 | void Bu::Filter::setBlocking( bool bBlocking ) | ||
89 | { | ||
90 | rNext.setBlocking( bBlocking ); | ||
91 | } | ||
92 | |||
93 | void Bu::Filter::flush() | ||
94 | { | ||
95 | rNext.flush(); | ||
96 | } | ||
97 | |||