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/misc/props.hxx>
28 #if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
29 SG_USING_STD(istream);
30 SG_USING_STD(ostream);
34 * Read properties from an XML input stream.
36 void readProperties (istream &input, SGPropertyNode * start_node,
37 const string &base = "");
41 * Read properties from an XML file.
43 void readProperties (const string &file, SGPropertyNode * start_node);
47 * Write properties to an XML output stream.
49 void writeProperties (ostream &output, const SGPropertyNode * start_node,
50 bool write_all = false);
54 * Write properties to an XML file.
56 void writeProperties (const string &file, const SGPropertyNode * start_node,
57 bool write_all = false);
61 * Copy properties from one node to another.
63 bool copyProperties (const SGPropertyNode *in, SGPropertyNode *out);
66 #endif // __PROPS_IO_HXX
68 // end of props_io.hxx