#include <Io.h>
Inherits libcdoc::MultiDataConsumer.
|
std::filesystem::path | base |
|
std::ofstream | ofs |
|
◆ FileListConsumer()
libcdoc::FileListConsumer::FileListConsumer |
( |
const std::string & |
base_path | ) |
|
|
inline |
◆ close()
result_t libcdoc::FileListConsumer::close |
( |
| ) |
|
|
inlinefinaloverridevirtual |
◆ isError()
bool libcdoc::FileListConsumer::isError |
( |
| ) |
|
|
inlinefinaloverridevirtual |
◆ open()
result_t libcdoc::FileListConsumer::open |
( |
const std::string & |
name, |
|
|
int64_t |
size |
|
) |
| |
|
inlinefinaloverridevirtual |
create a new named sub-stream
Creates a new named sub-stream. It is up to implementation to handle the name and optional size.
- Parameters
-
name | the name of sub-stream |
size | the size of sub-stream or -1 if unknown at creation time |
- Returns
- error code or OK
Implements libcdoc::MultiDataConsumer.
References libcdoc::OK, and libcdoc::OUTPUT_STREAM_ERROR.
◆ write()
result_t libcdoc::FileListConsumer::write |
( |
const uint8_t * |
src, |
|
|
size_t |
size |
|
) |
| |
|
inlinefinaloverridevirtual |
write write bytes to output object
The following invariant holds: If there was no error then result == size If there was an error then result < 0
- Parameters
-
src | source block |
size | the number of bytes to write |
- Returns
- size or error code
Implements libcdoc::DataConsumer.
References libcdoc::OUTPUT_STREAM_ERROR.
◆ base
std::filesystem::path libcdoc::FileListConsumer::base |
|
protected |
◆ ofs
std::ofstream libcdoc::FileListConsumer::ofs |
|
protected |
The documentation for this struct was generated from the following file: