15 #ifndef XFILEDATANODE_H
16 #define XFILEDATANODE_H
18 #include "pandatoolbase.h"
19 #include "xFileNode.h"
20 #include "xFileDataObject.h"
21 #include "xFileTemplate.h"
22 #include "pointerTo.h"
57 static void init_type() {
58 XFileNode::init_type();
59 XFileDataObject::init_type();
60 register_type(_type_handle,
"XFileDataNode",
61 XFileNode::get_class_type(),
62 XFileDataObject::get_class_type());
65 return get_class_type();
67 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
73 #include "xFileDataNode.I"
const string & get_template_name() const
A convenience function to return the name of the template used to define this data object...
virtual bool is_standard_object(const string &template_name) const
Returns true if this node represents an instance of the standard template with the indicated name...
virtual string get_type_name() const
Returns a string that represents the type of object this data object represents.
A single node of an X file.
const XFileDataNode & get_data_child(int n) const
Since the children of an XFileDataNode are syntactically constrained to themselves be XFileDataNodes...
This is an abstract base class for an XFileNode which is also an XFileDataObject. ...
This represents the complete contents of an X file (file.x) in memory.
A template definition in the X file.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool is_object() const
Returns true if this node represents a data object that is the instance of some template, or false otherwise.
XFileTemplate * get_template() const
Returns the template used to define this data object.
The abstract base class for a number of different types of data elements that may be stored in the X ...