A file opened in binary mode. More...
#include <iarchive.h>
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. |
A file opened in binary mode.
Definition at line 36 of file iarchive.h.
virtual ArchiveFile::~ArchiveFile | ( | ) | [inline, virtual] |
Definition at line 39 of file iarchive.h.
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().