DirectoryArchiveTextFile Class Reference

An ArchiveTextFile which is stored as a single file on disk. More...

#include <archivelib.h>

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

Public Member Functions

 DirectoryArchiveTextFile (const std::string &name, const std::string &filename)
bool failed () const
std::size_t size ()
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
TextFileInputStream m_inputStream

Detailed Description

An ArchiveTextFile which is stored as a single file on disk.

Definition at line 214 of file archivelib.h.


Constructor & Destructor Documentation

DirectoryArchiveTextFile::DirectoryArchiveTextFile ( const std::string name,
const std::string filename 
) [inline]

Definition at line 220 of file archivelib.h.


Member Function Documentation

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]

Implements ArchiveTextFile.

Definition at line 229 of file archivelib.h.

References m_inputStream.


Field Documentation

TextFileInputStream DirectoryArchiveTextFile::m_inputStream [private]

Definition at line 217 of file archivelib.h.

Referenced by failed(), getInputStream(), and size().

Definition at line 216 of file archivelib.h.

Referenced by getName().


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

Generated by  doxygen 1.6.2