EggNamedObject Class Reference

This is a fairly low-level base class--any egg object that has a name. More...

#include "eggNamedObject.h"

Inheritance diagram for EggNamedObject:
EggObject Namable TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase EggNode EggVertexUV EggAnimData EggAnimPreload EggComment EggCoordinateSystem EggFilenameNode EggGroupNode EggMaterial EggPrimitive EggVertexPool

List of all members.

Public Member Functions

 EggNamedObject (const string &name="")
 EggNamedObject (const EggNamedObject &copy)
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
EggNamedObjectoperator= (const EggNamedObject &copy)
void output (ostream &out) const
 Outputs the Namable.
void write_header (ostream &out, int indent_level, const char *egg_keyword) const
 Writes the first line of the egg object, e.g.

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.

Detailed Description

This is a fairly low-level base class--any egg object that has a name.

Definition at line 29 of file eggNamedObject.h.


Member Function Documentation

static void EggNamedObject::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 EggObject.

Reimplemented in EggAnimData, EggAnimPreload, EggBin, EggComment, EggCoordinateSystem, EggData, EggExternalReference, EggFilenameNode, EggGroup, EggGroupNode, EggMaterial, EggNode, EggSAnimData, EggTable, EggTexture, EggVertexPool, EggVertexUV, EggXfmAnimData, and EggXfmSAnim.

Definition at line 45 of file eggNamedObject.h.

References EggObject::init_type().

Referenced by EggVertexUV::init_type(), and EggNode::init_type().

void EggNamedObject::output ( ostream &  out) const

Outputs the Namable.

This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

Reimplemented from Namable.

Definition at line 28 of file eggNamedObject.cxx.

References Namable::has_name().

void EggNamedObject::write_header ( ostream &  out,
int  indent_level,
const char *  egg_keyword 
) const

Writes the first line of the egg object, e.g.

"<Group> group_name {" or some such. It automatically enquotes the name if it contains any special characters. egg_keyword is the keyword that begins the line, e.g. "<Group>".

Definition at line 45 of file eggNamedObject.cxx.

References Namable::has_name().

Referenced by EggXfmSAnim::write(), EggXfmAnimData::write(), EggVertexPool::write(), EggTriangleStrip::write(), EggTriangleFan::write(), EggTexture::write(), EggTable::write(), EggSAnimData::write(), EggPoint::write(), EggNurbsSurface::write(), EggNurbsCurve::write(), EggMaterial::write(), EggLine::write(), EggGroup::write(), EggExternalReference::write(), EggComment::write(), and EggAnimPreload::write().


The documentation for this class was generated from the following files: