Panda3D
Functions
config_dxml.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "config_dxml.h"
#include "dconfig.h"
#include <stdio.h>
#include "tinyxml.h"

Go to the source code of this file.

Functions

BEGIN_PUBLISH END_PUBLISH Configure (config_dxml)
 
 ConfigureFn (config_dxml)
 
void init_libdxml ()
 Initializes the library. More...
 
 NotifyCategoryDef (dxml, "")
 
END_PUBLISH BEGIN_PUBLISH void print_xml (TiXmlNode *xnode)
 Writes an XML object to stdout, with formatting. More...
 
END_PUBLISH BEGIN_PUBLISH void print_xml_to_file (const Filename &filename, TiXmlNode *xnode)
 Writes an XML object to the indicated file, with formatting. More...
 
BEGIN_PUBLISH TiXmlDocumentread_xml_stream (std::istream &in)
 Reads an XML document from the indicated stream. More...
 
END_PUBLISH BEGIN_PUBLISH void write_xml_stream (std::ostream &out, TiXmlDocument *doc)
 Writes an XML document to the indicated stream. More...
 

Detailed Description

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."

Author
drose
Date
2009-08-08

Definition in file config_dxml.cxx.

Function Documentation

◆ init_libdxml()

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.

◆ print_xml()

END_PUBLISH BEGIN_PUBLISH 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().

◆ print_xml_to_file()

END_PUBLISH BEGIN_PUBLISH void print_xml_to_file ( const Filename filename,
TiXmlNode xnode 
)

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().

◆ read_xml_stream()

BEGIN_PUBLISH TiXmlDocument* read_xml_stream ( std::istream &  in)

Reads an XML document from the indicated stream.

Returns
the document, or NULL on error.

Definition at line 54 of file config_dxml.cxx.

◆ write_xml_stream()

END_PUBLISH BEGIN_PUBLISH 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.