PLaSK library
|
Base class to source of data. More...
#include <plask/utils/xml/reader.hpp>
Public Member Functions | |
virtual std::size_t | read (char *buff, std::size_t buf_size)=0 |
Read buf_size bytes of data and store it in buffer buff . | |
virtual | ~DataSource () |
Empty, virtual destructor. | |
Base class to source of data.
Definition at line 133 of file reader.hpp.
|
inlinevirtual |
Empty, virtual destructor.
Definition at line 146 of file reader.hpp.
|
pure virtual |
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 Implemented in plask::XMLReader::StreamDataSource, and plask::XMLReader::CFileDataSource.