Panda3D
Macros | Functions
config_dxml.h File Reference

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

#include "pandabase.h"
#include "notifyCategoryProxy.h"
#include "dconfig.h"

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

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

Function Documentation

◆ init_libdxml()

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.

◆ print_xml()

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

◆ print_xml_to_file()

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

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.