An ArchiveTextFile which is stored as a single file on disk. More...
#include <archivelib.h>
Public Member Functions | |
DirectoryArchiveTextFile (const std::string &name, const std::string &filename) | |
bool | failed () const |
std::size_t | size () |
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 |
TextFileInputStream | m_inputStream |
An ArchiveTextFile which is stored as a single file on disk.
Definition at line 214 of file archivelib.h.
DirectoryArchiveTextFile::DirectoryArchiveTextFile | ( | const std::string & | name, | |
const std::string & | filename | |||
) | [inline] |
Definition at line 220 of file archivelib.h.
bool DirectoryArchiveTextFile::failed | ( | ) | const [inline] |
Definition at line 224 of file archivelib.h.
References m_inputStream.
TextInputStream& DirectoryArchiveTextFile::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 237 of file archivelib.h.
References m_inputStream.
const std::string DirectoryArchiveTextFile::getName | ( | ) | const [inline] |
Definition at line 233 of file archivelib.h.
References m_name.
std::size_t DirectoryArchiveTextFile::size | ( | ) | [inline, virtual] |
TextFileInputStream DirectoryArchiveTextFile::m_inputStream [private] |
Definition at line 217 of file archivelib.h.
Referenced by failed(), getInputStream(), and size().
std::string DirectoryArchiveTextFile::m_name [private] |
Definition at line 216 of file archivelib.h.
Referenced by getName().