00001 #ifndef _IT_BUS_PDK_BINARY_BUFFER_OUTPUT_STREAM_H_
00002 #define _IT_BUS_PDK_BINARY_BUFFER_OUTPUT_STREAM_H_
00003
00004
00005
00006
00007 #include <it_bus/api_defines.h>
00008
00009 #include <it_bus/output_stream.h>
00010 #include <it_bus/binary_buffer.h>
00011
00012 namespace IT_Bus
00013 {
00014 class IT_AFC_API BinaryBufferOutputStream : public OutputStream
00015 {
00016 public:
00017
00018 BinaryBufferOutputStream() IT_THROW_DECL((IOException));
00019
00020 ~BinaryBufferOutputStream();
00021
00022 virtual
00023 void write(
00024 const Character to_write
00025 ) IT_THROW_DECL((IOException));
00026
00027 virtual
00028 void write(
00029 const Character * to_write
00030 ) IT_THROW_DECL((IOException));
00031
00032 virtual
00033 void write(
00034 const Character * to_write,
00035 size_t length
00036 ) IT_THROW_DECL((IOException));
00037
00038 BinaryBuffer &
00039 get_buffer();
00040
00041 void
00042 reset();
00043
00044 private:
00045
00046 BinaryBufferOutputStream&
00047 operator=(
00048 const BinaryBufferOutputStream & rhs
00049 );
00050
00051 BinaryBufferOutputStream(
00052 const BinaryBufferOutputStream & rhs
00053 );
00054
00055 BinaryBuffer m_buffer;
00056
00057 size_t m_length;
00058 };
00059 }
00060
00061 #endif