Started Fall 2000 by David Megginson, david@megginson.com This code is released into the Public Domain. More...
#include <simgear/compiler.h>
#include <stdlib.h>
#include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/SGMath.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/xml/easyxml.hxx>
#include "props.hxx"
#include "props_io.hxx"
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <vector>
#include <map>
Go to the source code of this file.
Functions | |
void | readProperties (istream &input, SGPropertyNode *start_node, const string &base, int default_mode, bool extended) |
Read properties from an input stream. | |
void | readProperties (const string &file, SGPropertyNode *start_node, int default_mode, bool extended) |
Read properties from a file. | |
void | readProperties (const char *buf, const int size, SGPropertyNode *start_node, int default_mode, bool extended) |
Read properties from an in-memory buffer. | |
bool | copyProperties (const SGPropertyNode *in, SGPropertyNode *out) |
Copy one property tree to another. |
Started Fall 2000 by David Megginson, david@megginson.com This code is released into the Public Domain.
See props.html for documentation [replace with URL when available].
Definition in file props_io.cxx.
bool copyProperties | ( | const SGPropertyNode * | in, | |
SGPropertyNode * | out | |||
) |
Copy one property tree to another.
Copy properties from one node to another.
in | The source property tree. | |
out | The destination property tree. |
Definition at line 628 of file props_io.cxx.
void readProperties | ( | const char * | buf, | |
const int | size, | |||
SGPropertyNode * | start_node, | |||
int | default_mode, | |||
bool | extended | |||
) |
Read properties from an in-memory buffer.
buf | A character buffer containing the xml data. | |
size | The size/length of the buffer in bytes | |
start_node | The root node for reading properties. |
Definition at line 395 of file props_io.cxx.
void readProperties | ( | const string & | file, | |
SGPropertyNode * | start_node, | |||
int | default_mode, | |||
bool | extended | |||
) |
Read properties from a file.
file | A string containing the file path. | |
start_node | The root node for reading properties. |
Definition at line 377 of file props_io.cxx.
void readProperties | ( | istream & | input, | |
SGPropertyNode * | start_node, | |||
const string & | base, | |||
int | default_mode, | |||
bool | extended | |||
) |
Read properties from an input stream.
input | The input stream containing an XML property file. | |
start_node | The root node for reading properties. | |
base | A base path for resolving external include references. |
Definition at line 359 of file props_io.cxx.