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