2001-10-06 14:13:28 +00:00
|
|
|
#ifndef IOUTPUTSTREAM_H
|
|
|
|
#define IOUTPUTSTREAM_H
|
|
|
|
|
|
|
|
#include "IInterface.h"
|
|
|
|
#include "BasicTypes.h"
|
|
|
|
#include "XIO.h"
|
|
|
|
|
|
|
|
class IOutputStream : public IInterface {
|
|
|
|
public:
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// close the stream
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void close() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// write count bytes to stream
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual UInt32 write(const void*, UInt32 count) = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// flush the stream
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void flush() = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
// accessors
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|