18 XFileDataDef(
XFile *x_file,
const std::string &name,
50 return _array_def.size();
59 nassertr(i >= 0 && i < (
int)_array_def.size(), _array_def[0]);
Defines one level of array bounds for an associated XFileDataDef element.
int get_num_array_defs() const
Returns the number of dimensions of array elements on this data object, or 0 if the data object is no...
Type get_data_type() const
Returns the primitive type of this element, or T_template if this represents a nested template object...
A single node of an X file.
XFileTemplate * get_template() const
If get_data_type() returned T_template, this returns the particular template pointer that this object...
This represents the complete contents of an X file (file.x) in memory.
A template definition in the X file.
const XFileArrayDef & get_array_def(int i) const
Returns the description of the nth dimension of array elements on this data object.