Panda3D
Public Member Functions | Static Public Member Functions

EggComment Class Reference

A comment that appears in an egg file within a <Comment> entry. More...

#include "eggComment.h"

Inheritance diagram for EggComment:
EggNode EggNamedObject EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggComment (const string &node_name, const string &comment)
 EggComment (const EggComment &copy)
virtual TypeHandle force_init_type ()
string get_comment () const
virtual TypeHandle get_type () const
 operator const string & () const
EggCommentoperator= (const EggComment &copy)
EggCommentoperator= (const string &comment)
void set_comment (const string &comment)
virtual void write (ostream &out, int indent_level) const
 Writes the comment definition to the indicated output stream in Egg format.

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

A comment that appears in an egg file within a <Comment> entry.

Definition at line 27 of file eggComment.h.


Member Function Documentation

static void EggComment::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 EggNode.

Definition at line 56 of file eggComment.h.

References EggNode::init_type().

void EggComment::write ( ostream &  out,
int  indent_level 
) const [virtual]

Writes the comment definition to the indicated output stream in Egg format.

Implements EggNode.

Definition at line 31 of file eggComment.cxx.

References EggNamedObject::write_header().


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