ArchiveTextFile Class Reference

A file opened in text mode. More...

#include <iarchive.h>

Inheritance diagram for ArchiveTextFile:
Inheritance graph
[legend]

Public Member Functions

virtual ~ArchiveTextFile ()
virtual std::size_t size ()=0
virtual TextInputStreamgetInputStream ()=0
 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.
virtual std::string getString ()

Detailed Description

A file opened in text mode.

Definition at line 54 of file iarchive.h.


Constructor & Destructor Documentation

virtual ArchiveTextFile::~ArchiveTextFile (  )  [inline, virtual]

Definition at line 57 of file iarchive.h.


Member Function Documentation

virtual TextInputStream& ArchiveTextFile::getInputStream (  )  [pure 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.

Implemented in StoredArchiveTextFile, DirectoryArchiveTextFile, and DeflatedArchiveTextFile.

Referenced by getString().

virtual std::string ArchiveTextFile::getString (  )  [inline, virtual]

Return the contents of this file in the form of a string.

Returns:
std::string containing the file's text contents

Definition at line 74 of file iarchive.h.

References getInputStream(), and string.

virtual std::size_t ArchiveTextFile::size (  )  [pure virtual]

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

Generated by  doxygen 1.6.2