Panda3D
Public Member Functions

SubfileInfo Class Reference

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

#include "subfileInfo.h"

List of all members.

Public Member Functions

 SubfileInfo (const FileReference *file, streampos start, streamsize size)
 SubfileInfo (const SubfileInfo &copy)
 SubfileInfo (const Filename &filename, streampos start, streamsize size)
const FileReferenceget_file () const
 Returns the FileReference that represents this file.
const Filenameget_filename () const
 A shortcut to the filename.
streamsize get_size () const
 Returns the number of consecutive bytes, beginning at get_start(), that correspond to this file data.
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 (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 29 of file subfileInfo.h.


Member Function Documentation

const FileReference * SubfileInfo::get_file ( ) const [inline]

Returns the FileReference that represents this file.

Definition at line 96 of file subfileInfo.I.

const Filename & SubfileInfo::get_filename ( ) const [inline]

A shortcut to the filename.

Definition at line 106 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

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 132 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

streampos SubfileInfo::get_start ( ) const [inline]

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

Definition at line 121 of file subfileInfo.I.

Referenced by DatagramOutputFile::copy_datagram().

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 86 of file subfileInfo.I.

Referenced by MovieVideo::write_datagram().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations