Panda3D
|
This specialization of EggBase is intended for programs that read and/or write a single egg file. More...
#include "eggSingleBase.h"
Public Member Functions | |
virtual EggReader * | as_reader () |
Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not. | |
virtual EggWriter * | as_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 |
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.
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.