Panda3D
config_dxml.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file config_dxml.h
10  * @author drose
11  * @date 2009-08-08
12  */
13 
14 #ifndef CONFIG_DXML_H
15 #define CONFIG_DXML_H
16 
17 #include "pandabase.h"
18 #include "notifyCategoryProxy.h"
19 #include "dconfig.h"
20 
21 // The purpose of this directory is to expose tinyxml interfaces to
22 // Python via interrogate.
23 
24 // tinyxml.h requires having the symbol TIXML_USE_STL already defined
25 // before you include it.
26 
27 #ifndef TIXML_USE_STL
28 #define TIXML_USE_STL
29 #endif
30 
31 NotifyCategoryDecl(dxml, EXPCL_PANDA_DXML, EXPTP_PANDA_DXML);
32 
33 extern EXPCL_PANDA_DXML void init_libdxml();
34 
35 class TiXmlDocument;
36 class TiXmlNode;
37 BEGIN_PUBLISH
38 EXPCL_PANDA_DXML TiXmlDocument *read_xml_stream(std::istream &in);
39 EXPCL_PANDA_DXML void write_xml_stream(std::ostream &out, TiXmlDocument *doc);
40 EXPCL_PANDA_DXML void print_xml(TiXmlNode *xnode);
41 EXPCL_PANDA_DXML void print_xml_to_file(const Filename &filename, TiXmlNode *xnode);
42 END_PUBLISH
43 
44 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDA_DXML void write_xml_stream(std::ostream &out, TiXmlDocument *doc)
Writes an XML document to the indicated stream.
Definition: config_dxml.cxx:71
EXPCL_PANDA_DXML void init_libdxml()
Initializes the library.
Definition: config_dxml.cxx:40
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDA_DXML void print_xml(TiXmlNode *xnode)
Writes an XML object to stdout, with formatting.
Definition: config_dxml.cxx:81
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
Always the top level node.
Definition: tinyxml.h:1386
EXPCL_PANDA_DXML void print_xml_to_file(const Filename &filename, TiXmlNode *xnode)
Writes an XML object to the indicated file, with formatting.
Definition: config_dxml.cxx:92
BEGIN_PUBLISH EXPCL_PANDA_DXML TiXmlDocument * read_xml_stream(std::istream &in)
Reads an XML document from the indicated stream.
Definition: config_dxml.cxx:54
The parent class for everything in the Document Object Model.
Definition: tinyxml.h:423
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.