StoredArchiveTextFile Class Reference

An ArchiveTextFile which is stored uncompressed as part of a larger archive file. More...

#include <archivelib.h>

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

Public Types

typedef FileInputStream::size_type size_type
typedef
FileInputStream::position_type 
position_type

Public Member Functions

 StoredArchiveTextFile (const std::string &name, const std::string &archiveName, position_type position, size_type stream_size)
const std::string getName () const
std::size_t size ()
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
FileInputStream m_filestream
SubFileInputStream m_substream
BinaryToTextInputStream
< SubFileInputStream > 
m_textStream

Detailed Description

An ArchiveTextFile which is stored uncompressed as part of a larger archive file.

Definition at line 139 of file archivelib.h.


Member Typedef Documentation

typedef FileInputStream::position_type StoredArchiveTextFile::position_type

Definition at line 148 of file archivelib.h.

typedef FileInputStream::size_type StoredArchiveTextFile::size_type

Definition at line 147 of file archivelib.h.


Constructor & Destructor Documentation

StoredArchiveTextFile::StoredArchiveTextFile ( const std::string name,
const std::string archiveName,
position_type  position,
size_type  stream_size 
) [inline]

Constructor.

Definition at line 153 of file archivelib.h.


Member Function Documentation

TextInputStream& StoredArchiveTextFile::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 168 of file archivelib.h.

References m_textStream.

const std::string StoredArchiveTextFile::getName (  )  const [inline]

Definition at line 160 of file archivelib.h.

References m_name.

std::size_t StoredArchiveTextFile::size (  )  [inline, virtual]

Implements ArchiveTextFile.

Definition at line 164 of file archivelib.h.

References m_filestream.


Field Documentation

FileInputStream StoredArchiveTextFile::m_filestream [private]

Definition at line 142 of file archivelib.h.

Referenced by size().

Definition at line 141 of file archivelib.h.

Referenced by getName().

SubFileInputStream StoredArchiveTextFile::m_substream [private]

Definition at line 143 of file archivelib.h.

Definition at line 144 of file archivelib.h.

Referenced by getInputStream().


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

Generated by  doxygen 1.6.2