ArchiveFile Class Reference

A file opened in binary mode. More...

#include <iarchive.h>

Inheritance diagram for ArchiveFile:
Inheritance graph
[legend]

Public Member Functions

virtual ~ArchiveFile ()
virtual std::size_t size () const =0
 Returns the size of the file data in bytes.
virtual const std::string getName () const =0
 Returns the path to this file (relative to the filesystem root).
virtual InputStream & getInputStream ()=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.

Detailed Description

A file opened in binary mode.

Definition at line 36 of file iarchive.h.


Constructor & Destructor Documentation

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

Definition at line 39 of file iarchive.h.


Member Function Documentation

virtual InputStream& ArchiveFile::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 StoredArchiveFile, DirectoryArchiveFile, and DeflatedArchiveFile.

Referenced by ScopedArchiveBuffer::ArchiveFile_loadBuffer().

virtual const std::string ArchiveFile::getName (  )  const [pure virtual]

Returns the path to this file (relative to the filesystem root).

Implemented in StoredArchiveFile, DirectoryArchiveFile, and DeflatedArchiveFile.

virtual std::size_t ArchiveFile::size (  )  const [pure virtual]

Returns the size of the file data in bytes.

Implemented in StoredArchiveFile, DirectoryArchiveFile, and DeflatedArchiveFile.

Referenced by ScopedArchiveBuffer::ArchiveFile_loadBuffer().


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

Generated by  doxygen 1.6.2