Panda3D
|
A base class for all things which can have a name. More...
#include "namable.h"
Public Member Functions | |
Namable (const string &initial_name="") | |
Namable (const Namable ©) | |
void | clear_name () |
Resets the Namable's name to empty. More... | |
const string & | get_name () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. More... | |
Namable & | operator= (const Namable &other) |
void | output (ostream &out) const |
Outputs the Namable. More... | |
void | set_name (const string &name) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
A base class for all things which can have a name.
The name is either empty or nonempty, but it is never NULL.
|
inline |
|
inline |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
References output().
Referenced by XFileNode::add_child(), clear_name(), EggPrimitive::copy_vertices(), Texture::ensure_loader_type(), EggGroupUniquifier::get_category(), EggCharacterCollection::make_character(), EggXfmSAnim::optimize(), NodePathComponent::output(), EggSAnimData::write(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
|
inline |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Definition at line 97 of file namable.I.
References output().
Referenced by STBasicTerrain::fill_vertices(), STTerrain::fill_vertices(), has_name(), and output().