Subclass of instream for reading data from multiple files in a directory (as if they were all concatinated).
More...
#include <instream_directory_iterator.h>
|
|
static void | unittest (void) |
| | Unit test this class.
|
| |
|
|
std::filesystem::directory_iterator | source |
| | Use the C++17 directory iterator.
|
| |
|
std::filesystem::directory_iterator | current |
| | Where we are in the current iteration.
|
| |
|
std::filesystem::directory_iterator | last |
| | The point where the iterator finishes iterating.
|
| |
|
std::shared_ptr< instream > | reader |
| | A chain of instram objects responsible for sourcing the data.
|
| |
|
size_t | bytes_read |
| | The number of bytes that have been read from the file.
|
| |
|
std::shared_ptr< instream > | source |
| | If this object is reading from another instream then this is that instream.
|
| |
|
std::shared_ptr< allocator > | memory |
| | Any and all memory allocation must happen using this object.
|
| |
Subclass of instream for reading data from multiple files in a directory (as if they were all concatinated).
◆ instream_directory_iterator()
| JASS::instream_directory_iterator::instream_directory_iterator |
( |
const std::string & |
directory_name | ) |
|
Constructor.
- Parameters
-
| directory_name | [in] The name of the directory to search within |
◆ read()
| void JASS::instream_directory_iterator::read |
( |
document & |
buffer | ) |
|
|
virtual |
Read buffer.contents.size() bytes of data into buffer.contents, resizing on eof.
- Parameters
-
| buffer | [out] buffer.contents.size() bytes of data are read from source into buffer which is resized to the number of bytes read on eof. |
Implements JASS::instream.
The documentation for this class was generated from the following files: