Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
XMLWriter_File Class Reference

#include <XMLWriter.h>

Collaboration diagram for XMLWriter_File:

Public Member Functions

 XMLWriter_File ()
 
void SetPrettyPrint (bool enabled)
 
void Comment (const char *text)
 
void XMB (const XMBData &xmb)
 
bool StoreVFS (const PIVFS &vfs, const VfsPath &pathname)
 
const CStr8 & GetOutput ()
 

Private Member Functions

void ElementXMB (const XMBData &xmb, XMBElement el)
 
void ElementStart (XMLWriter_Element *element, const char *name)
 
void ElementText (const char *text, bool cdata)
 
template<typename T >
void ElementAttribute (const char *name, const T &value, bool newelement)
 
void ElementClose ()
 
void ElementEnd (const char *name, int type)
 
CStr8 Indent ()
 
template<>
void ElementAttribute (const char *name, const char *const &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const CStr &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const CStrW &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const fixed &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const int &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const unsigned int &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const float &value, bool newelement)
 
template<>
void ElementAttribute (const char *name, const double &value, bool newelement)
 

Private Attributes

bool m_PrettyPrint
 
CStr m_Data
 
int m_Indent
 
XMLWriter_Elementm_LastElement
 

Friends

class XMLWriter_Element
 

Constructor & Destructor Documentation

◆ XMLWriter_File()

XMLWriter_File::XMLWriter_File ( )

Member Function Documentation

◆ Comment()

void XMLWriter_File::Comment ( const char *  text)

◆ ElementAttribute() [1/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const char *const &  value,
bool  newelement 
)
private

◆ ElementAttribute() [2/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const CStr &  value,
bool  newelement 
)
private

◆ ElementAttribute() [3/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const CStrW &  value,
bool  newelement 
)
private

◆ ElementAttribute() [4/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const double &  value,
bool  newelement 
)
private

◆ ElementAttribute() [5/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const fixed value,
bool  newelement 
)
private

◆ ElementAttribute() [6/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const float &  value,
bool  newelement 
)
private

◆ ElementAttribute() [7/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const int &  value,
bool  newelement 
)
private

◆ ElementAttribute() [8/9]

template<typename T >
void XMLWriter_File::ElementAttribute ( const char *  name,
const T value,
bool  newelement 
)
private

◆ ElementAttribute() [9/9]

template<>
void XMLWriter_File::ElementAttribute ( const char *  name,
const unsigned int &  value,
bool  newelement 
)
private

◆ ElementClose()

void XMLWriter_File::ElementClose ( )
private

◆ ElementEnd()

void XMLWriter_File::ElementEnd ( const char *  name,
int  type 
)
private

◆ ElementStart()

void XMLWriter_File::ElementStart ( XMLWriter_Element element,
const char *  name 
)
private

◆ ElementText()

void XMLWriter_File::ElementText ( const char *  text,
bool  cdata 
)
private

◆ ElementXMB()

void XMLWriter_File::ElementXMB ( const XMBData xmb,
XMBElement  el 
)
private

◆ GetOutput()

const CStr & XMLWriter_File::GetOutput ( )

◆ Indent()

CStr XMLWriter_File::Indent ( )
private

◆ SetPrettyPrint()

void XMLWriter_File::SetPrettyPrint ( bool  enabled)
inline

◆ StoreVFS()

bool XMLWriter_File::StoreVFS ( const PIVFS vfs,
const VfsPath pathname 
)

◆ XMB()

void XMLWriter_File::XMB ( const XMBData xmb)

Friends And Related Function Documentation

◆ XMLWriter_Element

friend class XMLWriter_Element
friend

Member Data Documentation

◆ m_Data

CStr XMLWriter_File::m_Data
private

◆ m_Indent

int XMLWriter_File::m_Indent
private

◆ m_LastElement

XMLWriter_Element* XMLWriter_File::m_LastElement
private

◆ m_PrettyPrint

bool XMLWriter_File::m_PrettyPrint
private

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