28 SubfileInfo(
const FileReference *file, std::streampos start, std::streamsize size) :
39 SubfileInfo(
const Filename &filename, std::streampos start, std::streamsize size) :
60 INLINE
void SubfileInfo::
73 return _file ==
nullptr;
89 if (_file !=
nullptr) {
90 return _file->get_filename();
92 static const Filename empty_filename;
93 return empty_filename;
113 INLINE std::ostream &
114 operator << (std::ostream &out,
const SubfileInfo &info) {
std::streamsize get_size() const
Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.
Keeps a reference-counted pointer to a file on disk.
const FileReference * get_file() const
Returns the FileReference that represents this file.
The name of a file, such as a texture file or an Egg file.
bool is_empty() const
Returns true if this SubfileInfo doesn't define any file, false if it has real data.
const Filename & get_filename() const
A shortcut to the filename.
This class records a particular byte sub-range within an existing file on disk.
std::streampos get_start() const
Returns the offset within the file at which this file data begins.