29 #ifndef Pt_System_IOStream_h
30 #define Pt_System_IOStream_h
32 #include <Pt/System/Api.h>
33 #include <Pt/System/IOBuffer.h>
34 #include <Pt/IOStream.h>
48 explicit IStream(std::size_t bufferSize = 8192,
bool extend =
false);
66 {
return _buffer.
device(); }
99 explicit OStream(std::size_t bufferSize = 8192,
bool extend =
false);
117 {
return _buffer.
device(); }
150 explicit IOStream(std::size_t bufferSize = 8192,
bool extend =
false);
168 {
return _buffer.
device(); }
197 , _buffer(bufferSize, extend)
205 , _buffer(device, bufferSize, extend)
213 , _buffer(bufferSize, extend)
221 , _buffer(device, bufferSize, extend)
229 , _buffer(bufferSize, extend)
237 , _buffer(device, bufferSize, extend)
246 #endif // Pt_System_IOStream_h
void setBuffer(BasicStreamBuffer< char > *sb)
Sets the buffer.
Definition: IOStream.h:127
void discard()
Discards the buffer.
Definition: IOStream.h:182
~OStream()
Destructor.
Definition: IOStream.h:106
IOBuffer & ioBuffer()
Returns the stream buffer.
Definition: IOStream.h:111
void setBuffer(BasicStreamBuffer< char > *sb)
Sets the buffer.
Definition: IOStream.h:175
IODevice * device()
Returns the I/O device.
Definition: IOStream.h:65
IODevice * device()
Returns the I/O device.
Definition: IOStream.h:167
void detach()
Detach from I/O device.
Definition: IOStream.h:75
IOStream(std::size_t bufferSize=8192, bool extend=false)
Construct with buffer size.
Definition: IOStream.h:227
void reset()
Discards and detaches.
Definition: IOStream.h:136
OStream(std::size_t bufferSize=8192, bool extend=false)
Construct with buffer size.
Definition: IOStream.h:211
void reset()
Discards and detaches.
Input stream.
Definition: IOStream.h:57
IOBuffer & ioBuffer()
Returns the stream buffer.
Definition: IOStream.h:162
Output stream for I/O devices.
Definition: IOStream.h:94
Input/Output stream.
Definition: IOStream.h:141
void attach(IODevice &dev)
Attach to I/O device.
Definition: IOStream.h:121
void attach(IODevice &ioDevice)
Attach to I/O device.
IODevice * device()
Returns the I/O device.
Definition: IOStream.h:116
Implements std::streambuf for I/O devices.
Definition: IOBuffer.h:43
~IOStream()
Destructor.
Definition: IOStream.h:157
Endpoint for I/O operations.
Definition: IODevice.h:55
void detach()
Detach from I/O device.
Definition: IOStream.h:177
void discard()
Discards the buffer.
Input stream for I/O devices.
Definition: IOStream.h:43
Output stream.
Definition: IOStream.h:101
void detach()
Detach from I/O device.
Definition: IOStream.h:126
void detach()
Detach from I/O device.
Input/Output stream for I/O devices.
Definition: IOStream.h:145
IStream(std::size_t bufferSize=8192, bool extend=false)
Construct with buffer size.
Definition: IOStream.h:195
void discard()
Discards the buffer.
Definition: IOStream.h:131
void attach(IODevice &dev)
Attach to I/O device.
Definition: IOStream.h:172
void discard()
Discards the buffer.
Definition: IOStream.h:80
void attach(IODevice &dev)
Attach to I/O device.
Definition: IOStream.h:70
~IStream()
Destructor.
Definition: IOStream.h:55
IOBuffer & ioBuffer()
Returns the stream buffer.
Definition: IOStream.h:60
void setBuffer(BasicStreamBuffer< char > *sb)
Sets the buffer.
Definition: IOStream.h:87
IODevice * device()
Returns the I/O device.
Definition: IOBuffer.h:61
void reset()
Discards and detaches.
Definition: IOStream.h:85
void reset()
Discards and detaches.
Definition: IOStream.h:187