#include <Io.h>
Inherits libcdoc::MultiDataSource.
◆ FileListSource()
libcdoc::FileListSource::FileListSource |
( |
const std::string & |
base, |
|
|
const std::vector< std::string > & |
files |
|
) |
| |
◆ getNumComponents()
result_t libcdoc::FileListSource::getNumComponents |
( |
| ) |
|
|
finaloverridevirtual |
◆ isEof()
bool libcdoc::FileListSource::isEof |
( |
| ) |
|
|
finaloverridevirtual |
◆ isError()
bool libcdoc::FileListSource::isError |
( |
| ) |
|
|
finaloverridevirtual |
◆ next()
result_t libcdoc::FileListSource::next |
( |
std::string & |
name, |
|
|
int64_t & |
size |
|
) |
| |
|
finaloverridevirtual |
◆ read()
result_t libcdoc::FileListSource::read |
( |
uint8_t * |
dst, |
|
|
size_t |
size |
|
) |
| |
|
finaloverridevirtual |
read bytes from input object
The following invariant holds:
- if there is neither error nor eof then result == size
- if there is no errors but end of stream is reached then 0 <= result <= size
- if there is error then result < 0
- Parameters
-
dst | the destination block |
size | the number of bytes to read |
- Returns
- the number of bytes read or error code
Reimplemented from libcdoc::DataSource.
◆ _base
std::filesystem::path libcdoc::FileListSource::_base |
|
protected |
◆ _current
int64_t libcdoc::FileListSource::_current |
|
protected |
◆ _files
const std::vector<std::string>& libcdoc::FileListSource::_files |
|
protected |
◆ _ifs
std::ifstream libcdoc::FileListSource::_ifs |
|
protected |
The documentation for this struct was generated from the following file: