Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SubfileInfo Class Reference

This class records a particular byte sub-range within an existing file on disk. More...

#include "subfileInfo.h"

Public Member Functions

 SubfileInfo (const Filename &filename, std::streampos start, std::streamsize size)
 
 SubfileInfo (const FileReference *file, std::streampos start, std::streamsize size)
 
 SubfileInfo (const SubfileInfo &copy)
 
const FileReferenceget_file () const
 Returns the FileReference that represents this file.
 
const Filenameget_filename () const
 A shortcut to the filename.
 
std::streamsize get_size () const
 Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.
 
std::streampos get_start () const
 Returns the offset within the file at which this file data begins.
 
bool is_empty () const
 Returns true if this SubfileInfo doesn't define any file, false if it has real data.
 
void operator= (const SubfileInfo &copy)
 
void output (std::ostream &out) const
 

Detailed Description

This class records a particular byte sub-range within an existing file on disk.

Generally, the filename is understood as a physical file on disk, and not to be looked up via the vfs.

Definition at line 26 of file subfileInfo.h.

Constructor & Destructor Documentation

◆ SubfileInfo() [1/4]

SubfileInfo::SubfileInfo ( )
inline

Definition at line 17 of file subfileInfo.I.

◆ SubfileInfo() [2/4]

SubfileInfo::SubfileInfo ( const FileReference * file,
std::streampos start,
std::streamsize size )
inlineexplicit

Definition at line 27 of file subfileInfo.I.

◆ SubfileInfo() [3/4]

SubfileInfo::SubfileInfo ( const Filename & filename,
std::streampos start,
std::streamsize size )
inlineexplicit

Definition at line 38 of file subfileInfo.I.

◆ SubfileInfo() [4/4]

SubfileInfo::SubfileInfo ( const SubfileInfo & copy)
inline

Definition at line 49 of file subfileInfo.I.

Member Function Documentation

◆ get_file()

const FileReference * SubfileInfo::get_file ( ) const
inline

Returns the FileReference that represents this file.

Definition at line 79 of file subfileInfo.I.

◆ get_filename()

const Filename & SubfileInfo::get_filename ( ) const
inline

A shortcut to the filename.

Definition at line 87 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

◆ get_size()

std::streamsize SubfileInfo::get_size ( ) const
inline

Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.

Definition at line 108 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

◆ get_start()

std::streampos SubfileInfo::get_start ( ) const
inline

Returns the offset within the file at which this file data begins.

Definition at line 99 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

◆ is_empty()

bool SubfileInfo::is_empty ( ) const
inline

Returns true if this SubfileInfo doesn't define any file, false if it has real data.

Definition at line 71 of file subfileInfo.I.

Referenced by MovieVideo::write_datagram().

◆ operator=()

void SubfileInfo::operator= ( const SubfileInfo & copy)
inline

Definition at line 60 of file subfileInfo.I.

◆ output()

void SubfileInfo::output ( std::ostream & out) const

Definition at line 19 of file subfileInfo.cxx.


The documentation for this class was generated from the following files: