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.
Definition at line 20 of file virtualseeker.h.
| zipios::VirtualSeeker::VirtualSeeker | ( | int | start_offset = 0, |
|
| int | end_offset = 0 | |||
| ) | [inline] |
Definition at line 36 of file virtualseeker.h.
| int zipios::VirtualSeeker::endOffset | ( | ) | const [inline] |
Definition at line 59 of file virtualseeker.h.
| void zipios::VirtualSeeker::getOffsets | ( | int & | start_offset, | |
| int & | end_offset | |||
| ) | const [inline] |
Definition at line 48 of file virtualseeker.h.
| void zipios::VirtualSeeker::setOffsets | ( | int | start_offset, | |
| int | end_offset | |||
| ) | [inline] |
Definition at line 42 of file virtualseeker.h.
| int zipios::VirtualSeeker::startOffset | ( | ) | const [inline] |
Definition at line 54 of file virtualseeker.h.
Referenced by zipios::ZipFile::getInputStream().
| void zipios::VirtualSeeker::vseekg | ( | istream & | is, | |
| int | offset, | |||
| ios::seekdir | sd | |||
| ) | const [inline] |
Definition at line 63 of file virtualseeker.h.
References Sketcher::end.
Referenced by zipios::BackBuffer::BackBuffer(), and zipios::BackBuffer::readChunk().
| int zipios::VirtualSeeker::vtellg | ( | istream & | is | ) | const [inline] |
Definition at line 75 of file virtualseeker.h.
Referenced by zipios::BackBuffer::BackBuffer().
1.6.1