OSG
3.4.0
|
#include <XmlParser.h>
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 |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () 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) |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
XmlNode class for very basic reading and writing of xml files.
Definition at line 39 of file XmlParser.h.
typedef std::vector< osg::ref_ptr<XmlNode> > osgDB::XmlNode::Children |
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.
Enumerator | |
---|---|
UNASSIGNED | |
ATOM | |
NODE | |
GROUP | |
ROOT | |
COMMENT | |
INFORMATION |
Definition at line 45 of file XmlParser.h.
osgDB::XmlNode::XmlNode | ( | ) |
|
inline |
bool osgDB::XmlNode::read | ( | 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 |
|
protected |
|
protected |
bool osgDB::XmlNode::writeString | ( | const ControlMap & | controlMap, |
std::ostream & | fout, | ||
const std::string & | str | ||
) | const |
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.