00001
00002
00003
00004 #ifndef DEV_W3_ORG__2001_BLINDFOLD_SRC_TEST_H
00005 #define DEV_W3_ORG__2001_BLINDFOLD_SRC_TEST_H
00006 #include "config.h"
00007 #undef CLASSNAME
00008 #define CLASSNAME test
00009
00010 #include "ByteSink.h"
00011
00015 class ByteWriter {
00016
00017 public:
00018
00019
00020 ByteWriter();
00021 ByteWriter(const ByteWriter& other);
00022 const ByteWriter& operator=(const ByteWriter& other);
00023 bool operator==(const ByteWriter& other) const;
00024 bool operator<(const ByteWriter& other) const;
00025 size_t hash() const;
00026 friend ostream& operator<<(ostream& s, const ByteWriter& me);
00027 ostream& print_to(ostream& stream) const;
00028 ~ByteWriter();
00029
00030
00031
00032
00033
00034 ByteSink* getSink() { return sink; }
00035
00036 void setSink(ByteSink* new_sink) { sink = new_sink; }
00037
00038 protected:
00039 ByteSink* sink;
00040 private:
00041
00042
00043 };
00044
00045 STANDARD_EXTERNAL(CLASSNAME)
00046
00047 #endif