#include <Pt/System/IOStream.h>
Output stream for I/O devices.
Inherits BasicOStream< char >.
Public Member Functions | |
OStream (std::size_t bufferSize=8192, bool extend=false) | |
Construct with buffer size. | |
OStream (IODevice &device, std::size_t bufferSize=8192, bool extend=false) | |
Construct with I/O device. | |
~OStream () | |
Destructor. | |
void | attach (IODevice &dev) |
Attach to I/O device. | |
BasicStreamBuffer< char > * | buffer () |
Returns the buffer. | |
void | detach () |
Detach from I/O device. | |
IODevice * | device () |
Returns the I/O device. | |
void | discard () |
Discards the buffer. | |
IOBuffer & | ioBuffer () |
Returns the stream buffer. | |
void | reset () |
Discards and detaches. | |
void | setBuffer (BasicStreamBuffer< char > *sb) |
Sets the buffer. | |
std::streamsize | writesome (char *buffer, std::streamsize n) |
Write as much data as fits in buffer. | |