Go to the documentation of this file.
14 #ifndef XFILEDATAOBJECTARRAY_H
15 #define XFILEDATAOBJECTARRAY_H
31 virtual void write_data(std::ostream &out,
int indent_level,
32 const char *separator)
const;
35 virtual int get_num_elements()
const;
46 static void init_type() {
47 XFileDataObject::init_type();
49 XFileDataObject::get_class_type());
52 return get_class_type();
54 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool add_element(XFileDataObject *element)
Adds the indicated element as a nested data element, if this data object type supports it.
virtual bool is_complex_object() const
Returns true if this kind of data object is a complex object that can hold nested data elements,...
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The abstract base class for a number of different types of data elements that may be stored in the X ...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
virtual void write_data(std::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.
A definition of a single data element appearing within a template record.