00001
00012 #ifndef __PROPS_IO_HXX
00013 #define __PROPS_IO_HXX
00014
00015 #include <simgear/compiler.h>
00016 #include <simgear/props/props.hxx>
00017
00018 #include <stdio.h>
00019
00020 #include <string>
00021 #include <vector>
00022 #include <map>
00023 #include <iosfwd>
00024
00028 void readProperties (std::istream &input, SGPropertyNode * start_node,
00029 const std::string &base = "", int default_mode = 0,
00030 bool extended = false);
00031
00032
00036 void readProperties (const std::string &file, SGPropertyNode * start_node,
00037 int default_mode = 0, bool extended = false);
00038
00039
00043 void readProperties (const char *buf, const int size,
00044 SGPropertyNode * start_node, int default_mode = 0,
00045 bool extended = false);
00046
00047
00051 void writeProperties (std::ostream &output, const SGPropertyNode * start_node,
00052 bool write_all = false,
00053 SGPropertyNode::Attribute archive_flag = SGPropertyNode::ARCHIVE);
00054
00055
00059 void writeProperties (const std::string &file,
00060 const SGPropertyNode * start_node,
00061 bool write_all = false,
00062 SGPropertyNode::Attribute archive_flag = SGPropertyNode::ARCHIVE);
00063
00064
00068 bool copyProperties (const SGPropertyNode *in, SGPropertyNode *out);
00069
00070
00071 #endif // __PROPS_IO_HXX
00072
00073