|
PLaSK library
|
Allows to read XML from standard C++ input stream (std::istream). More...
#include <plask/utils/xml/reader.hpp>
Public Member Functions | |
| template<typename... Args> | |
| StreamDataSource (Args &&... params) | |
| std::size_t | read (char *buff, std::size_t buf_size) override |
Read buf_size bytes of data and store it in buffer buff. | |
Public Member Functions inherited from plask::XMLReader::DataSource | |
| virtual | ~DataSource () |
| Empty, virtual destructor. | |
Public Attributes | |
| std::unique_ptr< std::istream > | input |
| Stream to read from. | |
Allows to read XML from standard C++ input stream (std::istream).
Definition at line 150 of file reader.hpp.
|
inline |
| params | arguments for std::unique_ptr<std::istream> constructor |
Definition at line 159 of file reader.hpp.
|
overridevirtual |
Read buf_size bytes of data and store it in buffer buff.
Throws exception if can't read.
| buff | destination buffer |
| buf_size | size of buff |
buf_size only at the end of data Implements plask::XMLReader::DataSource.
Definition at line 23 of file reader.cpp.
| std::unique_ptr<std::istream> plask::XMLReader::StreamDataSource::input |
Stream to read from.
Definition at line 153 of file reader.hpp.