14#ifndef EGGNAMEDOBJECT_H
15#define EGGNAMEDOBJECT_H
26class EXPCL_PANDA_EGG EggNamedObject :
public EggObject,
public Namable {
28 INLINE
explicit EggNamedObject(
const std::string &name =
"");
29 INLINE EggNamedObject(
const EggNamedObject ©);
30 INLINE EggNamedObject &operator = (
const EggNamedObject ©);
32 void output(std::ostream &out)
const;
36 const char *egg_keyword)
const;
42 static void init_type() {
43 EggObject::init_type();
46 EggObject::get_class_type(),
47 Namable::get_class_type());
50 return get_class_type();
52 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
58INLINE std::ostream &operator << (std::ostream &out,
const EggNamedObject &n);
This is a fairly low-level base class–any egg object that has a name.
void write_header(std::ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
void output(std::ostream &out) const
Outputs the Namable.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...