14 #ifndef XFILEDATANODEREFERENCE_H 15 #define XFILEDATANODEREFERENCE_H 39 virtual void write_text(std::ostream &out,
int indent_level)
const;
42 virtual int get_num_elements()
const;
53 static void init_type() {
54 XFileDataNode::init_type();
56 XFileDataNode::get_class_type());
59 return get_class_type();
61 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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(),...
This is a nested reference to an instance of a template object, declared via the syntax:
This is a node which contains all of the data elements defined by a template.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool is_reference() const
Returns true if this node represents an indirect reference to an object defined previously in the fil...
XFileDataNodeTemplate * get_object() const
Returns the actual data object being referenced.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
A template definition in the X file.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool is_complex_object() const
Returns true if this kind of data object is a complex object that can hold nested data elements,...
The abstract base class for a number of different types of data elements that may be stored in the X ...
virtual void write_text(std::ostream &out, int indent_level) const
Writes a suitable representation of this node to an .x file in text mode.