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();}
TypeHandle is the identifier used to differentiate C++ class types.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
const XFileDataNode & get_data_child(int n) const
Since the children of an XFileDataNode are syntactically constrained to themselves be XFileDataNodes,...
virtual bool is_object() const
Returns true if this node represents a data object that is the instance of some template,...
virtual std::string get_type_name() const
Returns a string that represents the type of object this data object represents.
const std::string & get_template_name() const
A convenience function to return the name of the template used to define this data object.
XFileTemplate * get_template() const
Returns the template used to define this data object.
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,...
The abstract base class for a number of different types of data elements that may be stored in the X ...
A single node of an X file.
A template definition in the X file.
This represents the complete contents of an X file (file.x) in memory.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.