17 TypeHandle XFileDataNodeReference::_type_handle;
22 XFileDataNodeReference::
25 object->get_template()),
33 _children =
object->_children;
34 _objects =
object->_objects;
35 _children_by_name =
object->_children_by_name;
65 write_text(std::ostream &out,
int indent_level)
const {
67 <<
"{ " << _object->get_name() <<
" }\n";
74 int XFileDataNodeReference::
75 get_num_elements()
const {
76 return _object->size();
84 return &((*_object)[n]);
92 get_element(
const std::string &name) {
93 return &((*_object)[name]);
TypeHandle is the identifier used to differentiate C++ class types.
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.
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 bool is_reference() const
Returns true if this node represents an indirect reference to an object defined previously in the fil...
This is a node which contains all of the data elements defined by a template.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
The abstract base class for a number of different types of data elements that may be stored in the X ...
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.