3 * Interface definition for property list io.
4 * Started Fall 2000 by David Megginson, david@megginson.com
5 * This code is released into the Public Domain.
7 * See props.html for documentation [replace with URL when available].
12 #ifndef __PROPS_IO_HXX
13 #define __PROPS_IO_HXX
15 #include <simgear/compiler.h>
16 #include <simgear/props/props.hxx>
28 SG_USING_STD(istream);
29 SG_USING_STD(ostream);
32 * Read properties from an XML input stream.
34 void readProperties (istream &input, SGPropertyNode * start_node,
35 const string &base = "");
39 * Read properties from an XML file.
41 void readProperties (const string &file, SGPropertyNode * start_node);
45 * Write properties to an XML output stream.
47 void writeProperties (ostream &output, const SGPropertyNode * start_node,
48 bool write_all = false);
52 * Write properties to an XML file.
54 void writeProperties (const string &file, const SGPropertyNode * start_node,
55 bool write_all = false);
59 * Copy properties from one node to another.
61 bool copyProperties (const SGPropertyNode *in, SGPropertyNode *out);
64 #endif // __PROPS_IO_HXX
66 // end of props_io.hxx