Panda3D
Public Member Functions | Static Public Member Functions | Protected Attributes

FileReference Class Reference

Keeps a reference-counted pointer to a file on disk. More...

#include "fileReference.h"

Inheritance diagram for FileReference:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase TemporaryFile

List of all members.

Public Member Functions

 FileReference (const Filename &filename)
virtual TypeHandle force_init_type ()
const Filenameget_filename () const
 Returns the filename of the reference.
virtual TypeHandle get_type () const

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Protected Attributes

Filename _filename

Detailed Description

Keeps a reference-counted pointer to a file on disk.

As long as the FileReference is held, someone presumably has a use for this file.

Definition at line 29 of file fileReference.h.


Member Function Documentation

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

Returns the filename of the reference.

Definition at line 31 of file fileReference.I.

Referenced by DatagramSink::get_filename(), and DatagramGenerator::get_filename().

static void FileReference::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from TypedReferenceCount.

Reimplemented in TemporaryFile.

Definition at line 41 of file fileReference.h.

References TypedReferenceCount::init_type().

Referenced by TemporaryFile::init_type().


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