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
31NotifyCategoryDecl(dxml, EXPCL_PANDA_DXML, EXPTP_PANDA_DXML);
32
33extern EXPCL_PANDA_DXML void init_libdxml();
34
35class TiXmlDocument;
36class TiXmlNode;
37BEGIN_PUBLISH
38EXPCL_PANDA_DXML TiXmlDocument *read_xml_stream(std::istream &in);
39EXPCL_PANDA_DXML void write_xml_stream(std::ostream &out, TiXmlDocument *doc);
40EXPCL_PANDA_DXML void print_xml(TiXmlNode *xnode);
41EXPCL_PANDA_DXML void print_xml_to_file(const Filename &filename, TiXmlNode *xnode);
42END_PUBLISH
43
44#endif
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:1387
The parent class for everything in the Document Object Model.
Definition: tinyxml.h:424
EXPCL_PANDA_DXML void init_libdxml()
Initializes the library.
Definition: config_dxml.cxx:40
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 print_xml(TiXmlNode *xnode)
Writes an XML object to stdout, with formatting.
Definition: config_dxml.cxx:81
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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.