PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
Go to the source code of this file.
Functions | |
EXPCL_PANDA_DXML void | init_libdxml () |
Initializes the library. More... | |
NotifyCategoryDecl (dxml, EXPCL_PANDA_DXML, EXPTP_PANDA_DXML) | |
EXPCL_PANDA_DXML void | print_xml (TiXmlNode *xnode) |
Writes an XML object to stdout, with formatting. More... | |
EXPCL_PANDA_DXML void | print_xml_to_file (const Filename &filename, TiXmlNode *xnode) |
Writes an XML object to the indicated file, with formatting. More... | |
BEGIN_PUBLISH EXPCL_PANDA_DXML TiXmlDocument * | read_xml_stream (std::istream &in) |
Reads an XML document from the indicated stream. More... | |
EXPCL_PANDA_DXML void | write_xml_stream (std::ostream &out, TiXmlDocument *doc) |
Writes an XML document to the indicated stream. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file config_dxml.h.
EXPCL_PANDA_DXML void init_libdxml | ( | ) |
Initializes the library.
This must be called at least once before any of the functions or classes in this library can be used. Normally it will be called by the static initializers and need not be called explicitly, but special cases exist.
Definition at line 40 of file config_dxml.cxx.
EXPCL_PANDA_DXML void print_xml | ( | TiXmlNode * | xnode | ) |
Writes an XML object to stdout, with formatting.
Definition at line 81 of file config_dxml.cxx.
References TiXmlBase::Print().
Writes an XML object to the indicated file, with formatting.
Unfortunately the VFS cannot be supported; the file must be a real filename on disk.
Definition at line 92 of file config_dxml.cxx.
References TiXmlBase::Print(), and Filename::to_os_specific().
BEGIN_PUBLISH EXPCL_PANDA_DXML TiXmlDocument* read_xml_stream | ( | std::istream & | in | ) |
Reads an XML document from the indicated stream.
Definition at line 54 of file config_dxml.cxx.
EXPCL_PANDA_DXML void write_xml_stream | ( | std::ostream & | out, |
TiXmlDocument * | doc | ||
) |
Writes an XML document to the indicated stream.
Definition at line 71 of file config_dxml.cxx.