48 #ifndef _MIRA_BUFFERSTREAM_H__ 49 #define _MIRA_BUFFERSTREAM_H__ 75 typedef Buffer<char> container_type;
76 typedef container_type::value_type char_type;
81 BufferStreamBuf(container_type& buffer);
86 virtual int overflow(
int c = EOF);
87 virtual std::streampos seekoff ( std::streamoff off,
88 std::ios_base::seekdir way, std::ios_base::openmode which);
89 virtual std::streampos seekpos ( std::streampos pos,
90 std::ios_base::openmode which);
94 container_type& mBuffer;
108 typedef BufferStreamBuf::container_type container_type;
110 BufferStreamBase(container_type& buffer) : mBuffer(buffer) {}
112 BufferStreamBuf mBuffer;
146 class BufferStream :
public Private::BufferStreamBase,
public std::iostream
156 BufferStreamBase(buffer),
std::iostream(&mBuffer) {}
container_type::value_type char_type
Definition: BufferStream.h:152
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
T value_type
Definition: Buffer.h:90
Buffer< char > container_type
Definition: BufferStream.h:151
BufferStream(Buffer< char > &buffer)
Definition: BufferStream.h:155
A stream class for input and output of data to/from a wrapped Buffer.
Definition: BufferStream.h:146
Generic buffer class that can be used as a replacement for std::vector whenever copying and reallocat...
Definition: Buffer.h:84
Generic buffer class that can be used as a replacement for std::vector.