OmniSciDB
a5dc49c757
|
#include <PosixFileArchive.h>
Public Member Functions | |
PosixFileArchive (const std::string url, const bool plain_text) | |
~PosixFileArchive () override | |
void | init_for_read () override |
bool | read_next_header () override |
bool | read_data_block (const void **buff, size_t *size, int64_t *offset) override |
Public Member Functions inherited from Archive | |
Archive (const std::string url, const bool plain_text) | |
virtual | ~Archive () |
virtual std::string | archive_error (int err) |
virtual int64_t | get_position_compressed () const |
virtual int | open () |
virtual int | close () |
virtual ptrdiff_t | read (const void **buff) |
const std::string | url_part (const int i) |
std::string | entryName () |
Private Attributes | |
char * | buf = nullptr |
FILE * | fp = nullptr |
Additional Inherited Members | |
Static Public Member Functions inherited from Archive | |
static ptrdiff_t | read (struct archive *a, void *client_data, const void **buff) |
static int | open (struct archive *a, void *client_data) |
static int | close (struct archive *a, void *client_data) |
static void | parse_url (const std::string url, std::map< int, std::string > &url_parts) |
Protected Attributes inherited from Archive | |
std::string | url |
std::map< int, std::string > | url_parts |
archive * | ar = 0 |
archive_entry * | entry |
bool | plain_text |
Definition at line 29 of file PosixFileArchive.h.
|
inline |
Definition at line 31 of file PosixFileArchive.h.
References buf, g_archive_read_buf_size, init_for_read(), and Archive::url_part().
|
inlineoverride |
Definition at line 46 of file PosixFileArchive.h.
|
inlineoverridevirtual |
Reimplemented from Archive.
Definition at line 55 of file PosixFileArchive.h.
References Archive::ar, heavyai::fopen(), fp, Archive::plain_text, and Archive::url_part().
Referenced by PosixFileArchive().
|
inlineoverridevirtual |
Reimplemented from Archive.
Definition at line 78 of file PosixFileArchive.h.
References buf, fp, g_archive_read_buf_size, Archive::get_position_compressed(), Archive::plain_text, and Archive::read_data_block().
|
inlineoverridevirtual |
Reimplemented from Archive.
Definition at line 70 of file PosixFileArchive.h.
References fp, Archive::plain_text, and Archive::read_next_header().
|
private |
Definition at line 97 of file PosixFileArchive.h.
Referenced by PosixFileArchive(), read_data_block(), and ~PosixFileArchive().
|
private |
Definition at line 98 of file PosixFileArchive.h.
Referenced by init_for_read(), read_data_block(), read_next_header(), and ~PosixFileArchive().