props_io.hxx File Reference

Interface definition for property list io. More...

#include <simgear/compiler.h>
#include <simgear/props/props.hxx>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <iosfwd>

Go to the source code of this file.

Functions

void readProperties (std::istream &input, SGPropertyNode *start_node, const std::string &base="", int default_mode=0, bool extended=false)
 Read properties from an XML input stream.
void readProperties (const std::string &file, SGPropertyNode *start_node, int default_mode=0, bool extended=false)
 Read properties from an XML file.
void readProperties (const char *buf, const int size, SGPropertyNode *start_node, int default_mode=0, bool extended=false)
 Read properties from an in-memory buffer.
void writeProperties (std::ostream &output, const SGPropertyNode *start_node, bool write_all=false, SGPropertyNode::Attribute archive_flag=SGPropertyNode::ARCHIVE)
 Write properties to an XML output stream.
void writeProperties (const std::string &file, const SGPropertyNode *start_node, bool write_all=false, SGPropertyNode::Attribute archive_flag=SGPropertyNode::ARCHIVE)
 Write properties to an XML file.
bool copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
 Copy properties from one node to another.

Detailed Description

Interface definition for property list io.

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].

Id
props_io.hxx,v 1.7 2009/07/15 23:08:02 timoore Exp

Definition in file props_io.hxx.


Function Documentation

bool copyProperties ( const SGPropertyNode in,
SGPropertyNode out 
)

Copy properties from one node to another.

Copy properties from one node to another.

Parameters:
in The source property tree.
out The destination property tree.
Returns:
true if all properties were copied, false if some failed (for example, if the property's value is tied read-only).

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.

Parameters:
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.
Returns:
true if the read succeeded, false otherwise.

Definition at line 395 of file props_io.cxx.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1