OpenSceneGraph  3.0.1
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions
osgDB::XmlNode Class Reference

XmlNode class for very basic reading and writing of xml files. More...

Inheritance diagram for osgDB::XmlNode:
Inheritance graph
[legend]

List of all members.

Classes

class  ControlMap
class  Input

Public Types

enum  NodeType {
  UNASSIGNED, ATOM, NODE, GROUP,
  ROOT, COMMENT, INFORMATION
}
typedef std::map< std::string,
std::string > 
Properties
typedef std::vector
< osg::ref_ptr< XmlNode > > 
Children

Public Member Functions

 XmlNode ()
std::string getTrimmedContents () const
bool read (Input &input)
bool write (std::ostream &fout, const std::string &indent="") const
bool write (const ControlMap &controlMap, std::ostream &fout, const std::string &indent="") const
bool writeString (const ControlMap &controlMap, std::ostream &fout, const std::string &str) const

Public Attributes

NodeType type
std::string name
std::string contents
Properties properties
Children children

Protected Member Functions

bool writeChildren (const ControlMap &controlMap, std::ostream &fout, const std::string &indent) const
bool writeProperties (const ControlMap &controlMap, std::ostream &fout) const
bool readAndReplaceControl (std::string &contents, Input &input)

Detailed Description

XmlNode class for very basic reading and writing of xml files.


Member Typedef Documentation

typedef std::map< std::string, std::string > osgDB::XmlNode::Properties

Member Enumeration Documentation

Enumerator:
UNASSIGNED 
ATOM 
NODE 
GROUP 
ROOT 
COMMENT 
INFORMATION 

Constructor & Destructor Documentation

osgDB::XmlNode::XmlNode ( )

Member Function Documentation

std::string osgDB::XmlNode::getTrimmedContents ( ) const [inline]
bool osgDB::XmlNode::read ( Input input)
bool osgDB::XmlNode::readAndReplaceControl ( std::string &  contents,
Input input 
) [protected]
bool osgDB::XmlNode::write ( std::ostream &  fout,
const std::string &  indent = "" 
) const
bool osgDB::XmlNode::write ( const ControlMap controlMap,
std::ostream &  fout,
const std::string &  indent = "" 
) const
bool osgDB::XmlNode::writeChildren ( const ControlMap controlMap,
std::ostream &  fout,
const std::string &  indent 
) const [protected]
bool osgDB::XmlNode::writeProperties ( const ControlMap controlMap,
std::ostream &  fout 
) const [protected]
bool osgDB::XmlNode::writeString ( const ControlMap controlMap,
std::ostream &  fout,
const std::string &  str 
) const

Member Data Documentation

std::string osgDB::XmlNode::name

The documentation for this class was generated from the following file:

osg logo
Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5.