OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
osgDB::XmlNode Class Reference

#include <XmlParser.h>

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

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 Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) 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)
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

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

Definition at line 39 of file XmlParser.h.

Member Typedef Documentation

Definition at line 57 of file XmlParser.h.

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

Definition at line 56 of file XmlParser.h.

Member Enumeration Documentation

Enumerator
UNASSIGNED 
ATOM 
NODE 
GROUP 
ROOT 
COMMENT 
INFORMATION 

Definition at line 45 of file XmlParser.h.

Constructor & Destructor Documentation

osgDB::XmlNode::XmlNode ( )

Member Function Documentation

std::string osgDB::XmlNode::getTrimmedContents ( ) const
inline

Definition at line 65 of file XmlParser.h.

Here is the call graph for this function:

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

Children osgDB::XmlNode::children

Definition at line 63 of file XmlParser.h.

std::string osgDB::XmlNode::contents

Definition at line 61 of file XmlParser.h.

std::string osgDB::XmlNode::name

Definition at line 60 of file XmlParser.h.

Properties osgDB::XmlNode::properties

Definition at line 62 of file XmlParser.h.

NodeType osgDB::XmlNode::type

Definition at line 59 of file XmlParser.h.


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