15 #ifndef XFILEDATANODEREFERENCE_H 16 #define XFILEDATANODEREFERENCE_H 18 #include "pandatoolbase.h" 19 #include "xFileDataNodeTemplate.h" 20 #include "pointerTo.h" 41 virtual void write_text(ostream &out,
int indent_level)
const;
44 virtual int get_num_elements()
const;
55 static void init_type() {
56 XFileDataNode::init_type();
57 register_type(_type_handle,
"XFileDataNodeReference",
58 XFileDataNode::get_class_type());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 #include "xFileDataNodeReference.I" 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.
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...
virtual void write_text(ostream &out, int indent_level) const
Writes a suitable representation of this node to an .x file in text mode.
The abstract base class for a number of different types of data elements that may be stored in the X ...