Public Member Functions

Tiny2D::XMLDoc Class Reference

XML document either loaded from path or created at runtime. More...

#include <Tiny2D.h>

List of all members.

Public Member Functions

 XMLDoc ()
 Creates empty XML document.
 ~XMLDoc ()
 Destroys XML document.
bool Load (const std::string &path)
 Loads XML document from given path.
bool Create (const std::string &version="1.0", const std::string &encoding="utf-8")
 Creates XML document with just root node containing version and encoding information.
bool Save (const std::string &path)
 Saves XML document to file at given path.
void Destroy ()
 Destroys XML document.
XMLNodeAsNode ()
 Gets this XML document as an XML node.

Detailed Description

XML document either loaded from path or created at runtime.


Constructor & Destructor Documentation

Tiny2D::XMLDoc::XMLDoc (  )

Creates empty XML document.

Tiny2D::XMLDoc::~XMLDoc (  )

Destroys XML document.


Member Function Documentation

XMLNode* Tiny2D::XMLDoc::AsNode (  )

Gets this XML document as an XML node.

bool Tiny2D::XMLDoc::Create ( const std::string &  version = "1.0",
const std::string &  encoding = "utf-8" 
)

Creates XML document with just root node containing version and encoding information.

void Tiny2D::XMLDoc::Destroy (  )

Destroys XML document.

bool Tiny2D::XMLDoc::Load ( const std::string &  path )

Loads XML document from given path.

bool Tiny2D::XMLDoc::Save ( const std::string &  path )

Saves XML document to file at given path.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines