Class Archive

class Archive

Subclassed by PosixFileArchive, S3Archive

Public Functions

Archive(const std::string url, const bool plain_text)
virtual ~Archive()
virtual std::string archive_error(int err)
virtual bool read_next_header()
virtual bool read_data_block(const void **buff, size_t *size, int64_t *offset)
virtual int64_t get_position_compressed() const
virtual int open()
virtual int close()
virtual ptrdiff_t read(const void **buff)
virtual void init_for_read()
const std::string url_part(const int i)
std::string entryName()

Public Static Functions

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

std::string url
std::map<int, std::string> url_parts
archive *ar = 0
archive_entry *entry
bool plain_text