Public Member Functions
||XFileDataNode (XFile *x_file, const string &name, XFileTemplate *xtemplate)|
virtual TypeHandle ||force_init_type ()|
|const XFileDataNode & ||get_data_child (int n) const |
| ||Since the children of an XFileDataNode are syntactically constrained to themselves be XFileDataNodes, this is a convenience function that returns the same thing as XFileNode::get_child(), but it is cast to a type XFileDataNode and dereferenced. |
|XFileTemplate * ||get_template () const |
| ||Returns the template used to define this data object. |
|const string & ||get_template_name () const |
| ||A convenience function to return the name of the template used to define this data object. |
virtual TypeHandle ||get_type () const |
|virtual string ||get_type_name () const |
| ||Returns a string that represents the type of object this data object represents. |
|virtual bool ||is_object () const |
| ||Returns true if this node represents a data object that is the instance of some template, or false otherwise. |
|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, or false otherwise. |
Static Public Member Functions
static TypeHandle ||get_class_type ()|
static void ||init_type ()|
Protected Member Functions
||PT (XFileTemplate) _template|
This is an abstract base class for an XFileNode which is also an XFileDataObject.
That is to say, objects that inherit from this class may be added to the toplevel X file graph as nodes, and they also may be containers for data elements.
Specifically, this is the base class of both XFileDataNodeTemplate and XFileDataNodeReference.
Definition at line 36 of file xFileDataNode.h.
Returns true if this node represents a data object that is the instance of some template, or false otherwise.
This also returns true for references to objects (which are generally treated just like the objects themselves).
If this returns true, the node must be of type XFileDataNode (it is either an XFileDataNodeTemplate or an XFileDataNodeReference).
Reimplemented from XFileNode.
Definition at line 47 of file xFileDataNode.cxx.