LibPkg
|
A class to represent a file information record from a zip file. More...
#include <zipfile.h>
Public Member Functions | |
file_info () | |
Construct file information record. More... | |
file_info (std::istream &in) | |
Construct file information record from stream. More... | |
file_info (const file_info &) | |
Copy file information record. More... | |
~file_info () | |
Destroy file information record. More... | |
file_info & | operator= (const file_info &) |
Assign file information record. More... | |
uint32 | offset () const |
Get offset to file data. More... | |
uint16 | method () const |
Get compression method. More... | |
uint32 | csize () const |
Get compressed file size. More... | |
uint32 | usize () const |
Get uncompressed file size. More... | |
const string & | pathname () const |
Get pathname. More... | |
template<class extra_type > | |
extra_type * | create_extra () |
Create extra information record. More... | |
template<class extra_type > | |
const extra_type * | find_extra () const |
Find extra information record. More... | |
A class to represent a file information record from a zip file.
pkg::zipfile::file_info::file_info | ( | ) |
Construct file information record.
pkg::zipfile::file_info::file_info | ( | std::istream & | in | ) |
Construct file information record from stream.
in | the input stream |
pkg::zipfile::file_info::file_info | ( | const file_info & | ) |
Copy file information record.
This method is not currently implemented.
pkg::zipfile::file_info::~file_info | ( | ) |
Destroy file information record.
References offset().
Assign file information record.
This method is not currently implemented.
|
inline |
Get offset to file data.
Referenced by pkg::zipfile::extract(), and ~file_info().
|
inline |
|
inline |
|
inline |
|
inline |
Get pathname.
This is relative to the root of the zipfile, and uses '/' as the path separator.
extra_type * pkg::zipfile::file_info::create_extra | ( | ) |
Create extra information record.
const extra_type * pkg::zipfile::file_info::find_extra | ( | ) | const |
Find extra information record.
Referenced by pkg::unpack::poll().
Reference Manual | LibPkg | Version 0.9.0 (4 Sep 2020) |