Panda3D
Public Member Functions | Protected Member Functions

EggSingleBase Class Reference

This specialization of EggBase is intended for programs that read and/or write a single egg file. More...

#include "eggSingleBase.h"

Inheritance diagram for EggSingleBase:
EggBase ProgramBase EggReader EggWriter EggFilter EggListTextures EggFilter EggMakeFont EggMakeSomething EggTextureCards EggConverter EggCrop EggQtess EggTrans EggConverter EggCrop EggQtess EggTrans EggMakeTube

List of all members.

Public Member Functions

virtual EggReaderas_reader ()
 Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not.
virtual EggWriteras_writer ()
 Returns this object as an EggWriter pointer, if it is in fact an EggWriter, or NULL if it is not.

Protected Member Functions

virtual bool post_command_line ()
 This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.
 PT (EggData) _data

Detailed Description

This specialization of EggBase is intended for programs that read and/or write a single egg file.

(See EggMultiBase for programs that operate on multiple egg files at once.)

This is just a base class; see EggReader, EggWriter, or EggFilter according to your particular I/O needs.

Definition at line 40 of file eggSingleBase.h.


Member Function Documentation

EggReader * EggSingleBase::as_reader ( ) [virtual]

Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not.

This is intended to work around the C++ limitation that prevents downcasts past virtual inheritance. Since both EggReader and EggWriter inherit virtually from EggSingleBase, we need functions like this to downcast to the appropriate pointer.

Reimplemented in EggReader.

Definition at line 48 of file eggSingleBase.cxx.

EggWriter * EggSingleBase::as_writer ( ) [virtual]

Returns this object as an EggWriter pointer, if it is in fact an EggWriter, or NULL if it is not.

This is intended to work around the C++ limitation that prevents downcasts past virtual inheritance. Since both EggReader and EggWriter inherit virtually from EggSingleBase, we need functions like this to downcast to the appropriate pointer.

Reimplemented in EggWriter.

Definition at line 65 of file eggSingleBase.cxx.

bool EggSingleBase::post_command_line ( ) [protected, virtual]

This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.

It should return true if everything is fine, false if there is an error.

Reimplemented from ProgramBase.

Reimplemented in EggFilter, EggReader, EggWriter, SomethingToEgg, and EggCrop.

Definition at line 75 of file eggSingleBase.cxx.


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