#include <gauge3d/stddefs.h>
Inherited by GAUGE3D::GCamera, GAUGE3D::GDirectory, GAUGE3D::GDisplay, GAUGE3D::GFile, GAUGE3D::GFileLoader, GAUGE3D::GImage, GAUGE3D::GIStream, GAUGE3D::GLibrary, GAUGE3D::GLight, GAUGE3D::GMessage, GAUGE3D::GMessageBox, GAUGE3D::GMessageQueue, GAUGE3D::GMessageQueue::Handler, GAUGE3D::GModel, GAUGE3D::GModel::AnimState, GAUGE3D::GModel::RenderInfo, GAUGE3D::GMutex, GAUGE3D::GObjectLoader, GAUGE3D::GOStream, GAUGE3D::GPlugin, GAUGE3D::GRawIStream, GAUGE3D::GRawOStream, GAUGE3D::GRenderer, GAUGE3D::GScene, GAUGE3D::GScheduler, GAUGE3D::GSprite, GAUGE3D::GSurface, GAUGE3D::GTexture, and GAUGE3D::GThread.
Public Types | |
typedef const char* | tError |
An error identifier. More... | |
Public Methods | |
virtual | ~GObject () |
tError | Error () |
Get the last error. | |
virtual void | DoFrame (tTime time,tTime frameTime) |
Called by GScheduler every frame if the object requests it. More... | |
virtual void | TimerCallback (tTime time) |
Called by GScheduler at a desired time. More... | |
Protected Methods | |
void | Error (tError error) |
Set the last error. |
GObject is the base class for many, but not all, GAUGE classes. Using it adds several capabilities to the derived class:
|
An error identifier. tError is an error identifier. In actuality, it is a const char* which points to a human-readable string. Every class which has error conditions should define these conditions as member variables of type static const tError. Then, to check which error occured, the caller can check the error identifier against each of these member variables. If it doesn't know how to handle the error, it can just output it to cerr or something since the error identifier points to a human-readable string. |
|
Called by GScheduler every frame if the object requests it.
Reimplemented in GAUGE3D::GInputMap, GAUGE3D::GMessageQueue, and GAUGE3D::GScheduler. |
|
Called by GScheduler at a desired time.
|