#include <DeflatedArchiveTextFile.h>
Public Types | |
typedef FileInputStream::size_type | size_type |
typedef FileInputStream::position_type | position_type |
Public Member Functions | |
DeflatedArchiveTextFile (const std::string &name, const std::string &archiveName, position_type position, size_type stream_size, size_type filesize) | |
std::size_t | size () |
returns the uncompressed size of the file | |
const std::string | getName () const |
TextInputStream & | 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 |
std::size_t | m_size |
std::size_t | m_filesize |
FileInputStream | m_istream |
SubFileInputStream | m_substream |
DeflatedInputStream | m_zipstream |
BinaryToTextInputStream < DeflatedInputStream > | m_textStream |
ArchiveFile stored in a ZIP in DEFLATE format.
Definition at line 11 of file DeflatedArchiveTextFile.h.
typedef FileInputStream::position_type DeflatedArchiveTextFile::position_type |
Definition at line 22 of file DeflatedArchiveTextFile.h.
typedef FileInputStream::size_type DeflatedArchiveTextFile::size_type |
Definition at line 21 of file DeflatedArchiveTextFile.h.
DeflatedArchiveTextFile::DeflatedArchiveTextFile | ( | const std::string & | name, | |
const std::string & | archiveName, | |||
position_type | position, | |||
size_type | stream_size, | |||
size_type | filesize | |||
) | [inline] |
Definition at line 24 of file DeflatedArchiveTextFile.h.
TextInputStream& DeflatedArchiveTextFile::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 ArchiveTextFile.
Definition at line 40 of file DeflatedArchiveTextFile.h.
References m_textStream.
const std::string DeflatedArchiveTextFile::getName | ( | ) | const [inline] |
Definition at line 36 of file DeflatedArchiveTextFile.h.
References m_name.
std::size_t DeflatedArchiveTextFile::size | ( | ) | [inline, virtual] |
returns the uncompressed size of the file
Implements ArchiveTextFile.
Definition at line 32 of file DeflatedArchiveTextFile.h.
References m_filesize.
std::size_t DeflatedArchiveTextFile::m_filesize [private] |
Definition at line 15 of file DeflatedArchiveTextFile.h.
Referenced by size().
FileInputStream DeflatedArchiveTextFile::m_istream [private] |
Definition at line 16 of file DeflatedArchiveTextFile.h.
std::string DeflatedArchiveTextFile::m_name [private] |
Definition at line 13 of file DeflatedArchiveTextFile.h.
Referenced by getName().
std::size_t DeflatedArchiveTextFile::m_size [private] |
Definition at line 14 of file DeflatedArchiveTextFile.h.
SubFileInputStream DeflatedArchiveTextFile::m_substream [private] |
Definition at line 17 of file DeflatedArchiveTextFile.h.
BinaryToTextInputStream<DeflatedInputStream> DeflatedArchiveTextFile::m_textStream [private] |
Definition at line 19 of file DeflatedArchiveTextFile.h.
Referenced by getInputStream().
DeflatedInputStream DeflatedArchiveTextFile::m_zipstream [private] |
Definition at line 18 of file DeflatedArchiveTextFile.h.