#include <stream_reader.h>

Public Member Functions | |
| size_t | getByteCount () |
| void | readBuffer (mutable_buffer buf) |
| void | readBytes (void *buf, size_t n) |
| virtual void | skip (size_t n) |
| StreamReader (shared_ptr< istream > isp) | |
Private Attributes | |
| shared_ptr< istream > | isp_ |
Helper class to read values out of a stream to assist in deserializing. Really just an adapter so that classes can use the Reader interface for all deserialization tasks.
Definition at line 49 of file stream_reader.h.
| eip::serialization::StreamReader::StreamReader | ( | shared_ptr< istream > | isp | ) | [inline] |
Create a reader to use the input stream given
| isp | Input stream to use for inputs |
Definition at line 57 of file stream_reader.h.
| size_t eip::serialization::StreamReader::getByteCount | ( | ) | [inline, virtual] |
Get the number of bytes read from the buffer
Implements eip::serialization::Reader.
Definition at line 83 of file stream_reader.h.
| void eip::serialization::StreamReader::readBuffer | ( | mutable_buffer | buf | ) | [inline, virtual] |
Read a set of bytes into the given buffer
| buf | Buffer to use for reading |
| std::length_error | if the buffer is too small to contain that many bytes |
Implements eip::serialization::Reader.
Definition at line 74 of file stream_reader.h.
| void eip::serialization::StreamReader::readBytes | ( | void * | buf, |
| size_t | n | ||
| ) | [inline, virtual] |
Read a set of bytes from the reader into a given buffer
| buf | Buffer into which to copy bytes |
| n | number of bytes to read |
Implements eip::serialization::Reader.
Definition at line 64 of file stream_reader.h.
| virtual void eip::serialization::StreamReader::skip | ( | size_t | n | ) | [inline, virtual] |
Skip forward in input by n bytes
| n | number of bytes to skip forward |
Implements eip::serialization::Reader.
Definition at line 92 of file stream_reader.h.
shared_ptr<istream> eip::serialization::StreamReader::isp_ [private] |
Definition at line 97 of file stream_reader.h.