Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

util::Xml Class Reference

#include <Xml.h>

List of all members.

Public Member Functions

 Xml (FILE *)
 ~Xml ()
void Write (const char *, bool)
void Write (const char *, char)
void Write (const char *, long)
void Write (const char *, SDL_Color &)
void Write (const char *, std::string &)

Private Attributes

FILE * m_fil


Constructor & Destructor Documentation

util::Xml::Xml FILE *   ) 
 

Definition at line 39 of file Xml.cpp.

00040 :m_fil(f) 00041 { 00042 }

util::Xml::~Xml  ) 
 

Definition at line 45 of file Xml.cpp.

00046 { 00047 }


Member Function Documentation

void util::Xml::Write const char *  ,
std::string & 
 

Definition at line 79 of file Xml.cpp.

References m_fil.

00080 { 00081 fprintf(m_fil,"<%s>%s</%s>\n",s,str.c_str(),s); 00082 }

void util::Xml::Write const char *  ,
SDL_Color & 
 

Definition at line 68 of file Xml.cpp.

References m_fil.

00069 { 00070 fprintf(m_fil,"<%s>\n",s); 00071 fprintf(m_fil,"<R>%d</R>\n",color.r); 00072 fprintf(m_fil,"<G>%d</G>\n",color.g); 00073 fprintf(m_fil,"<B>%d</B>\n",color.b); 00074 fprintf(m_fil,"<A>%d</A>\n",color.unused); 00075 fprintf(m_fil,"</%s>\n",s); 00076 }

void util::Xml::Write const char *  ,
long 
 

Definition at line 62 of file Xml.cpp.

References m_fil.

00063 { 00064 fprintf(m_fil,"<%s>%ld</%s>\n",s,l,s); 00065 }

void util::Xml::Write const char *  ,
char 
 

Definition at line 56 of file Xml.cpp.

References m_fil.

00057 { 00058 fprintf(m_fil,"<%s>%c</%s>\n",s,c,s); 00059 }

void util::Xml::Write const char *  ,
bool 
 

Definition at line 50 of file Xml.cpp.

References m_fil.

Referenced by gui::Surface::DumpMembers(), gui::PopupMenuItem::DumpMembers(), gui::MenuItem::DumpMembers(), and gui::Edit::DumpMembers().

00051 { 00052 fprintf(m_fil,"<%s>%s</%s>\n",s,b ? "true" : "false",s); 00053 }


Member Data Documentation

FILE* util::Xml::m_fil [private]
 

Definition at line 44 of file Xml.h.

Referenced by Write().


The documentation for this class was generated from the following files:
Generated for My SDL C++ Gui by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström