DeflatedArchiveFile Class Reference

#include <DeflatedArchiveFile.h>

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

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

Detailed Description

Definition at line 8 of file DeflatedArchiveFile.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Field Documentation

FileInputStream DeflatedArchiveFile::m_istream [private]

Definition at line 9 of file DeflatedArchiveFile.h.

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.


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

Generated by  doxygen 1.6.2