•All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends Modules Pages
VirtualSeeker is a simple class that keeps track of a set of specified 'virtual' file endings that mark a subset of a real file. More...
#include <virtualseeker.h>
Public Member Functions | |
int | endOffset () const |
void | getOffsets (int &start_offset, int &end_offset) const |
void | setOffsets (int start_offset, int end_offset) |
int | startOffset () const |
VirtualSeeker (int start_offset=0, int end_offset=0) | |
void | vseekg (istream &is, int offset, ios::seekdir sd) const |
int | vtellg (istream &is) const |
VirtualSeeker is a simple class that keeps track of a set of specified 'virtual' file endings that mark a subset of a real file.
An example of its use (and its reason for existence) is to keep track of the file endings of a Zip file embedded in another file.
int zipios::VirtualSeeker::endOffset | ( | ) | const |
int zipios::VirtualSeeker::startOffset | ( | ) | const |
void zipios::VirtualSeeker::vseekg | ( | istream & | is, |
int | offset, | ||
ios::seekdir | sd | ||
) | const |
int zipios::VirtualSeeker::vtellg | ( | istream & | is | ) | const |