15 #include "xFileDataNodeReference.h" 18 TypeHandle XFileDataNodeReference::_type_handle;
25 XFileDataNodeReference::
28 object->get_template()),
37 _children =
object->_children;
38 _objects =
object->_objects;
39 _children_by_name =
object->_children_by_name;
81 indent(out, indent_level)
82 <<
"{ " << _object->get_name() <<
" }\n";
92 int XFileDataNodeReference::
93 get_num_elements()
const {
94 return _object->size();
105 return &((*_object)[n]);
115 get_element(
const string &name) {
116 return &((*_object)[name]);
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...
This is an abstract base class for an XFileNode which is also an XFileDataObject. ...
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 ...