Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
XMLWriter_Element Class Reference

#include <XMLWriter.h>

Collaboration diagram for XMLWriter_Element:

Public Member Functions

 XMLWriter_Element (XMLWriter_File &file, const char *name)
 
 ~XMLWriter_Element ()
 
template<typename constCharPtr >
void Text (constCharPtr text, bool cdata)
 
template<typename T >
void Attribute (const char *name, T value)
 
template<typename T >
void Setting (const char *name, T value)
 
void Close (int type)
 
template<>
void Text (const char *text, bool cdata)
 
template<>
void Text (const wchar_t *text, bool cdata)
 

Private Attributes

XMLWriter_Filem_File
 
CStr m_Name
 
int m_Type
 

Friends

class XMLWriter_File
 

Constructor & Destructor Documentation

◆ XMLWriter_Element()

XMLWriter_Element::XMLWriter_Element ( XMLWriter_File file,
const char *  name 
)

◆ ~XMLWriter_Element()

XMLWriter_Element::~XMLWriter_Element ( )

Member Function Documentation

◆ Attribute()

template<typename T >
void XMLWriter_Element::Attribute ( const char *  name,
T  value 
)
inline

◆ Close()

void XMLWriter_Element::Close ( int  type)

◆ Setting()

template<typename T >
void XMLWriter_Element::Setting ( const char *  name,
T  value 
)
inline

◆ Text() [1/3]

template<>
void XMLWriter_Element::Text ( const char *  text,
bool  cdata 
)

◆ Text() [2/3]

template<>
void XMLWriter_Element::Text ( const wchar_t *  text,
bool  cdata 
)

◆ Text() [3/3]

template<typename constCharPtr >
void XMLWriter_Element::Text ( constCharPtr  text,
bool  cdata 
)

Friends And Related Function Documentation

◆ XMLWriter_File

friend class XMLWriter_File
friend

Member Data Documentation

◆ m_File

XMLWriter_File* XMLWriter_Element::m_File
private

◆ m_Name

CStr XMLWriter_Element::m_Name
private

◆ m_Type

int XMLWriter_Element::m_Type
private

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