#include <DeflatedArchiveFile.h>
Public Types | |
typedef FileInputStream::size_type | size_type |
typedef FileInputStream::position_type | position_type |
Public Member Functions | |
DeflatedArchiveFile (const std::string &name, const std::string &archiveName, position_type position, size_type stream_size, size_type file_size) | |
size_type | size () const |
Returns the size of the file data in bytes. | |
const std::string | getName () const |
Returns the path to this file (relative to the filesystem root). | |
InputStream & | getInputStream () |
Returns the stream associated with this file. Subsequent calls return the same stream. The stream may be read forwards until it is exhausted. The stream remains valid for the lifetime of the file. | |
Private Attributes | |
std::string | m_name |
FileInputStream | m_istream |
SubFileInputStream | m_substream |
DeflatedInputStream | m_zipstream |
FileInputStream::size_type | m_size |
Definition at line 8 of file DeflatedArchiveFile.h.
typedef FileInputStream::position_type DeflatedArchiveFile::position_type |
Definition at line 15 of file DeflatedArchiveFile.h.
typedef FileInputStream::size_type DeflatedArchiveFile::size_type |
Definition at line 14 of file DeflatedArchiveFile.h.
DeflatedArchiveFile::DeflatedArchiveFile | ( | const std::string & | name, | |
const std::string & | archiveName, | |||
position_type | position, | |||
size_type | stream_size, | |||
size_type | file_size | |||
) | [inline] |
Definition at line 17 of file DeflatedArchiveFile.h.
InputStream& DeflatedArchiveFile::getInputStream | ( | ) | [inline, virtual] |
Returns the stream associated with this file. Subsequent calls return the same stream. The stream may be read forwards until it is exhausted. The stream remains valid for the lifetime of the file.
Implements ArchiveFile.
Definition at line 32 of file DeflatedArchiveFile.h.
const std::string DeflatedArchiveFile::getName | ( | ) | const [inline, virtual] |
Returns the path to this file (relative to the filesystem root).
Implements ArchiveFile.
Definition at line 28 of file DeflatedArchiveFile.h.
size_type DeflatedArchiveFile::size | ( | ) | const [inline, virtual] |
Returns the size of the file data in bytes.
Implements ArchiveFile.
Definition at line 24 of file DeflatedArchiveFile.h.
FileInputStream DeflatedArchiveFile::m_istream [private] |
Definition at line 9 of file DeflatedArchiveFile.h.
std::string DeflatedArchiveFile::m_name [private] |
Definition at line 8 of file DeflatedArchiveFile.h.
FileInputStream::size_type DeflatedArchiveFile::m_size [private] |
Definition at line 12 of file DeflatedArchiveFile.h.
SubFileInputStream DeflatedArchiveFile::m_substream [private] |
Definition at line 10 of file DeflatedArchiveFile.h.
DeflatedInputStream DeflatedArchiveFile::m_zipstream [private] |
Definition at line 11 of file DeflatedArchiveFile.h.