15 #ifndef XFILEDATAOBJECTARRAY_H
16 #define XFILEDATAOBJECTARRAY_H
18 #include "pandatoolbase.h"
19 #include "xFileDataObject.h"
33 virtual void write_data(ostream &out,
int indent_level,
34 const char *separator)
const;
37 virtual int get_num_elements()
const;
48 static void init_type() {
49 XFileDataObject::init_type();
50 register_type(_type_handle,
"XFileDataObjectArray",
51 XFileDataObject::get_class_type());
54 return get_class_type();
56 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
62 #include "xFileDataObjectArray.I"
virtual bool add_element(XFileDataObject *element)
Adds the indicated element as a nested data element, if this data object type supports it...
A definition of a single data element appearing within a template record.
virtual void write_data(ostream &out, int indent_level, const char *separator) const
Writes a suitable representation of this node to an .x file in text mode.
An array of nested data elements.
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 ...