2 #ifndef ZIPIOS_VIRTUALSEEKER_HPP
3 #define ZIPIOS_VIRTUALSEEKER_HPP
55 void vseekg(std::istream& is,
offset_t offset, std::ios::seekdir sd)
const;
56 std::streampos
vtellg(std::istream& is)
const;
offset_t startOffset() const
Return the start offset.
offset_t endOffset() const
Return the end offset.
A virtual class used to see in a file embedded in another.
void setOffsets(offset_t start_offset, offset_t end_offset)
Set the offsets of the virtual seeker.
void getOffsets(offset_t &start_offset, offset_t &end_offset) const
Retrieve the current offsets.
zipios configuration header.
VirtualSeeker(offset_t start_offset=0, offset_t end_offset=0)
Create a virtual seeker.
void vseekg(std::istream &is, offset_t offset, std::ios::seekdir sd) const
Seek within the embedded file.
std::streampos vtellg(std::istream &is) const
Current position within the sub-file.