An ArchiveTextFile which is stored uncompressed as part of a larger archive file. More...
#include <archivelib.h>
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 () |
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 |
FileInputStream | m_filestream |
SubFileInputStream | m_substream |
BinaryToTextInputStream < SubFileInputStream > | m_textStream |
An ArchiveTextFile which is stored uncompressed as part of a larger archive file.
Definition at line 139 of file archivelib.h.
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.
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.
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] |
FileInputStream StoredArchiveTextFile::m_filestream [private] |
Definition at line 142 of file archivelib.h.
Referenced by size().
std::string StoredArchiveTextFile::m_name [private] |
Definition at line 141 of file archivelib.h.
Referenced by getName().
SubFileInputStream StoredArchiveTextFile::m_substream [private] |
Definition at line 143 of file archivelib.h.
BinaryToTextInputStream<SubFileInputStream> StoredArchiveTextFile::m_textStream [private] |
Definition at line 144 of file archivelib.h.
Referenced by getInputStream().