Mondschein Engine
0.3.0
|
This class implements the Buffer interface for handling MBD 1.0.0 RC4 compliant files. More...
#include <buffer.h>
Public Member Functions | |
virtual void | parse_istream (std::istream &_in) |
Parse from an input stream. More... | |
virtual void | parse_string (const std::string &_in) |
Parse from a string. More... | |
virtual void | serialize_ostream (std::ostream &_out) const |
Serialize to an output stream. More... | |
virtual void | serialize_string (std::string &_out) const |
Serialize to a string. More... | |
Public Member Functions inherited from mondschein::io::Buffer | |
virtual void | set_io_objects (const io_objects_t &_io_objects) |
Set the I/O objects container. More... | |
virtual io_objects_t | get_io_objects () const |
Get the I/O objects container. More... | |
This class implements the Buffer interface for handling MBD 1.0.0 RC4 compliant files.
|
virtual |
Parse from an input stream.
_in | the input stream |
mondschein::exception | if a known exception is thrown during execution or if the file type doesn't match |
If _in is a valid input stream containing data in the right format the buffer can parse all elements from that stream into the I/O objects container. What data can be parsed and how it is treated is implementation dependent.
Implements mondschein::io::Buffer.
Definition at line 49 of file buffer.cpp.
|
virtual |
Parse from a string.
_in | the string |
mondschein::exception | if a known exception is thrown during execution or if the file type doesn't match |
If _in is a valid string containing data in the right format the buffer can parse all elements from that string into the I/O objects container. What data can be parsed and how it is treated is implementation dependent.
Implements mondschein::io::Buffer.
Definition at line 71 of file buffer.cpp.
|
virtual |
Serialize to an output stream.
_out | the output stream |
mondschein::exception | if a known exception is thrown during execution |
If _out is a valid output stream the buffer can serialize all elements in the I/O objects container into _out. What data can be processed and how it is treated is implementation dependent.
Implements mondschein::io::Buffer.
Definition at line 94 of file buffer.cpp.
|
virtual |
Serialize to a string.
_out | the string |
mondschein::exception | if a known exception is thrown during execution |
If _out is a valid string the buffer can serialize all elements in the I/O objects container into _out. What data can be processed and how it is treated is implementation dependent.
Implements mondschein::io::Buffer.
Definition at line 99 of file buffer.cpp.