OmniSciDB
a5dc49c757
|
#include <FileReader.h>
Public Member Functions | |
ArchiveWrapper (const std::string &file_path) | |
void | skipToEntry (int entry_number) |
bool | nextEntry () |
bool | currentEntryFinished () const |
size_t | currentEntryDataAvailable () const |
void | consumeDataFromCurrentEntry (size_t size, char *dest_buffer=nullptr) |
char | peekNextChar () |
int | getCurrentEntryIndex () const |
void | resetArchive () |
std::string | entryName () |
Private Member Functions | |
void | fetchBlock () |
Private Attributes | |
std::unique_ptr< Archive > | arch_ |
const void * | current_block_ |
size_t | block_chars_remaining_ |
int | current_entry_ |
std::string | file_path_ |
Definition at line 216 of file FileReader.h.
|
inline |
Definition at line 218 of file FileReader.h.
References resetArchive().
void foreign_storage::ArchiveWrapper::consumeDataFromCurrentEntry | ( | size_t | size, |
char * | dest_buffer = nullptr |
||
) |
Definition at line 216 of file FileReader.cpp.
References block_chars_remaining_, CHECK, current_block_, and fetchBlock().
Referenced by foreign_storage::CompressedFileReader::consumeFirstLine(), foreign_storage::CompressedFileReader::readInternal(), and foreign_storage::CompressedFileReader::skipBytes().
|
inline |
Definition at line 236 of file FileReader.h.
References block_chars_remaining_.
Referenced by foreign_storage::CompressedFileReader::checkForMoreRows(), foreign_storage::CompressedFileReader::readInternal(), and foreign_storage::CompressedFileReader::skipBytes().
|
inline |
Definition at line 234 of file FileReader.h.
References block_chars_remaining_.
Referenced by foreign_storage::CompressedFileReader::checkForMoreRows(), foreign_storage::CompressedFileReader::consumeFirstLine(), foreign_storage::CompressedFileReader::nextEntry(), and foreign_storage::CompressedFileReader::readInternal().
|
inline |
Definition at line 249 of file FileReader.h.
References arch_.
Referenced by foreign_storage::CompressedFileReader::checkForMoreRows(), and foreign_storage::CompressedFileReader::nextEntry().
|
private |
Get the next block from the current archive file
Definition at line 240 of file FileReader.cpp.
References arch_, block_chars_remaining_, and current_block_.
Referenced by consumeDataFromCurrentEntry(), nextEntry(), and skipToEntry().
|
inline |
Definition at line 244 of file FileReader.h.
References current_entry_.
Referenced by foreign_storage::CompressedFileReader::nextEntry(), and foreign_storage::CompressedFileReader::readRegion().
bool foreign_storage::ArchiveWrapper::nextEntry | ( | ) |
Definition at line 207 of file FileReader.cpp.
References arch_, current_entry_, and fetchBlock().
Referenced by foreign_storage::CompressedFileReader::checkForMoreRows(), and foreign_storage::CompressedFileReader::nextEntry().
char foreign_storage::ArchiveWrapper::peekNextChar | ( | ) |
Referenced by foreign_storage::CompressedFileReader::consumeFirstLine().
void foreign_storage::ArchiveWrapper::resetArchive | ( | ) |
Definition at line 233 of file FileReader.cpp.
References arch_, block_chars_remaining_, current_entry_, and file_path_.
Referenced by ArchiveWrapper(), foreign_storage::CompressedFileReader::checkForMoreRows(), and skipToEntry().
void foreign_storage::ArchiveWrapper::skipToEntry | ( | int | entry_number | ) |
Skip to entry in archive
Definition at line 192 of file FileReader.cpp.
References arch_, current_entry_, fetchBlock(), and resetArchive().
Referenced by foreign_storage::CompressedFileReader::checkForMoreRows(), foreign_storage::CompressedFileReader::nextEntry(), and foreign_storage::CompressedFileReader::readRegion().
|
private |
Definition at line 257 of file FileReader.h.
Referenced by entryName(), fetchBlock(), nextEntry(), resetArchive(), and skipToEntry().
|
private |
Definition at line 261 of file FileReader.h.
Referenced by consumeDataFromCurrentEntry(), currentEntryDataAvailable(), currentEntryFinished(), fetchBlock(), and resetArchive().
|
private |
Definition at line 259 of file FileReader.h.
Referenced by consumeDataFromCurrentEntry(), and fetchBlock().
|
private |
Definition at line 263 of file FileReader.h.
Referenced by getCurrentEntryIndex(), nextEntry(), resetArchive(), and skipToEntry().
|
private |
Definition at line 265 of file FileReader.h.
Referenced by resetArchive().