Go to the documentation of this file.
14 #ifndef XFILEDATANODE_H
15 #define XFILEDATANODE_H
54 static void init_type() {
55 XFileNode::init_type();
56 XFileDataObject::init_type();
58 XFileNode::get_class_type(),
59 XFileDataObject::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
const XFileDataNode & get_data_child(int n) const
Since the children of an XFileDataNode are syntactically constrained to themselves be XFileDataNodes,...
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 ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This represents the complete contents of an X file (file.x) in memory.
A single node of an X file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool is_standard_object(const std::string &template_name) const
Returns true if this node represents an instance of the standard template with the indicated name,...
XFileTemplate * get_template() const
Returns the template used to define this data object.
virtual bool is_object() const
Returns true if this node represents a data object that is the instance of some template,...
A template definition in the X file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual std::string get_type_name() const
Returns a string that represents the type of object this data object represents.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const std::string & get_template_name() const
A convenience function to return the name of the template used to define this data object.