00001 #ifndef IOKERNEL__BINARY_STREAMS_H 00002 #define IOKERNEL__BINARY_STREAMS_H 00003 00004 #include "object_stream.h" 00005 #include "iokernel_forwarders.h" 00006 00007 class BinaryOutputStream : public OutputStream { 00008 public: 00009 BinaryOutputStream( ostream& o ); 00010 ~BinaryOutputStream(); 00011 00012 virtual void write_byte( Byte b ); 00013 00014 private: 00015 ostream& _output_stream; 00016 }; 00017 00018 00019 class BinaryInputStream : public InputStream { 00020 public: 00021 BinaryInputStream( ObjectFactory* of, istream& i ); 00022 ~BinaryInputStream(); 00023 00024 virtual Byte read_byte(); 00025 00026 private: 00027 istream& _input_stream; 00028 }; 00029 00030 00031 #endif 00032