it_bus/output_stream.h

00001 #ifndef _IT_BUS_OUTPUT_STREAM_H_
00002 #define _IT_BUS_OUTPUT_STREAM_H_
00003 
00004 // @Copyright 2004 IONA Technologies, Plc. All Rights Reserved.
00005 //
00006 
00007 #include <it_bus/types.h>
00008 #include <it_bus/api_defines.h>
00009 #include <it_bus/io_exception.h>
00010 
00011 namespace IT_Bus
00012 {
00016     class IT_AFC_API OutputStream
00017     {
00018       public:
00019         virtual ~OutputStream();
00020 
00026         virtual
00027         void write(
00028             const Character to_write
00029         ) throw((IOException)) = 0;
00030 
00036         virtual
00037         void write(
00038             const Character * to_write
00039         ) throw((IOException)) = 0;
00040 
00047         virtual
00048         void write(
00049             const Character * to_write,
00050             size_t length
00051         ) throw((IOException)) = 0;
00052 
00053       protected:
00054         OutputStream() {}
00055 
00056       private:
00057         // private and unimplemented to prevent copying
00058         OutputStream(const OutputStream&);
00059         void operator=(const OutputStream&);
00060     };
00061 }
00062 
00063 #endif  

Generated on Tue Mar 20 15:27:42 2007 for Artix by  doxygen 1.5.1-p1