YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::XmlTree Class Reference

#include <XmlTree.hpp>

Collaboration diagram for yap::XmlTree:

List of all members.

Public Types

typedef boost::property_tree::ptree DataType

Public Member Functions

 XmlTree ()
 XmlTree (const XmlTree &copy)
template<typename T >
const T Get (const String &name) const
template<typename T >
const T Get () const
template<typename T >
void Add (const String &name, const T &value)
void Create (const String &rootName)
void CreateFromStream (IStream &iStream, const String &rootName)
void CreateFromXmlTree (const String &rootName, XmlTree &copy)
void CreateFromRawData (DataType *data)
void Dump (OStream &oStream)
XmlTreePtrType ChangeRoot (const String &rootName)
bool NodeExists (const String &name) const
const StringGetNode (int index) const
DataTypeGetRootRawData () const

Private Member Functions

 DISALLOW_ASSIGN (XmlTree)
DataTypeGetChild (const String &name)
DataTypeAbsoluteGetChild (const String &name)
DataTypeGetRootData ()
const DataTypeGetRootData () const

Private Attributes

DataType rootData_
DataTypedata_

Detailed Description

Definition at line 18 of file XmlTree.hpp.


Member Typedef Documentation

typedef boost::property_tree::ptree yap::XmlTree::DataType

Definition at line 24 of file XmlTree.hpp.


Constructor & Destructor Documentation

yap::XmlTree::XmlTree ( )

Definition at line 9 of file XmlTree.cpp.

yap::XmlTree::XmlTree ( const XmlTree copy)

Definition at line 15 of file XmlTree.cpp.


Member Function Documentation

XmlTree::DataType & yap::XmlTree::AbsoluteGetChild ( const String name)
private

Definition at line 90 of file XmlTree.cpp.

Here is the call graph for this function:

template<typename T >
void yap::XmlTree::Add ( const String name,
const T &  value 
)
inline

Definition at line 19 of file XmlTree.hxx.

Here is the caller graph for this function:

XmlTreePtrType yap::XmlTree::ChangeRoot ( const String rootName)

Definition at line 52 of file XmlTree.cpp.

Here is the caller graph for this function:

void yap::XmlTree::Create ( const String rootName)

Definition at line 21 of file XmlTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::XmlTree::CreateFromRawData ( DataType data)

Definition at line 40 of file XmlTree.cpp.

void yap::XmlTree::CreateFromStream ( IStream iStream,
const String rootName 
)

Definition at line 28 of file XmlTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::XmlTree::CreateFromXmlTree ( const String rootName,
XmlTree copy 
)

Definition at line 35 of file XmlTree.cpp.

Here is the call graph for this function:

yap::XmlTree::DISALLOW_ASSIGN ( XmlTree  )
private
void yap::XmlTree::Dump ( OStream oStream)
Todo:
Enhance writing settings management.

Definition at line 45 of file XmlTree.cpp.

Here is the caller graph for this function:

template<typename T >
const T yap::XmlTree::Get ( const String name) const
inline

Definition at line 7 of file XmlTree.hxx.

Here is the caller graph for this function:

template<typename T >
const T yap::XmlTree::Get ( ) const
inline

Definition at line 13 of file XmlTree.hxx.

XmlTree::DataType & yap::XmlTree::GetChild ( const String name)
private

Definition at line 85 of file XmlTree.cpp.

Here is the caller graph for this function:

const String & yap::XmlTree::GetNode ( int  index) const

Definition at line 69 of file XmlTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

XmlTree::DataType & yap::XmlTree::GetRootData ( )
private

Definition at line 95 of file XmlTree.cpp.

Here is the caller graph for this function:

const XmlTree::DataType & yap::XmlTree::GetRootData ( ) const
private

Definition at line 100 of file XmlTree.cpp.

XmlTree::DataType * yap::XmlTree::GetRootRawData ( ) const

Definition at line 80 of file XmlTree.cpp.

Here is the caller graph for this function:

bool yap::XmlTree::NodeExists ( const String name) const

Definition at line 61 of file XmlTree.cpp.

Here is the caller graph for this function:


Member Data Documentation

DataType* yap::XmlTree::data_
private

Definition at line 64 of file XmlTree.hpp.

DataType yap::XmlTree::rootData_
private

Definition at line 63 of file XmlTree.hpp.


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