DeflatedArchiveTextFile Class Reference

#include <DeflatedArchiveTextFile.h>

Inheritance diagram for DeflatedArchiveTextFile:
Inheritance graph
[legend]
Collaboration diagram for DeflatedArchiveTextFile:
Collaboration graph
[legend]

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
TextInputStreamgetInputStream ()
 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

Detailed Description

ArchiveFile stored in a ZIP in DEFLATE format.

Definition at line 11 of file DeflatedArchiveTextFile.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Field Documentation

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.

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.

Definition at line 19 of file DeflatedArchiveTextFile.h.

Referenced by getInputStream().

DeflatedInputStream DeflatedArchiveTextFile::m_zipstream [private]

Definition at line 18 of file DeflatedArchiveTextFile.h.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2