Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

xml::CXMLAttribute Class Reference

#include <XMLNode.h>


Public Member Functions

 CXMLAttribute (void)
 CXMLAttribute (xmlAttr *attribute)
virtual ~CXMLAttribute (void)
void print (void)

Data Fields

std::string m_name
std::string m_value


Constructor & Destructor Documentation

xml::CXMLAttribute::CXMLAttribute void   ) 
 

Definition at line 13 of file XMLNode.cpp.

References m_name, and m_value.

00013                                          {
00014                 m_name = std::string();
00015                 m_value = std::string();
00016         }

xml::CXMLAttribute::CXMLAttribute xmlAttr *  attribute  ) 
 

Definition at line 22 of file XMLNode.cpp.

References m_name, and m_value.

00022                                                        {
00023                 if(attribute->name != NULL) {
00024                         m_name = std::string((char*)attribute->name);
00025                 }
00026                 if(attribute->children != NULL && attribute->children->content != NULL) {
00027                         m_value = std::string((char*)attribute->children->content);
00028                 }
00029         }

xml::CXMLAttribute::~CXMLAttribute void   )  [virtual]
 

Definition at line 35 of file XMLNode.cpp.

00035                                           {
00036         }


Member Function Documentation

void xml::CXMLAttribute::print void   ) 
 

Definition at line 42 of file XMLNode.cpp.

References m_name, and m_value.

00042                                       {
00043                 printf("XMLAttribut: %s: %s\n", m_name.c_str(), m_value.c_str());
00044         }


Field Documentation

std::string xml::CXMLAttribute::m_name
 

Definition at line 43 of file XMLNode.h.

Referenced by CXMLAttribute(), xml::CXMLNode::getAttributeByName(), and print().

std::string xml::CXMLAttribute::m_value
 

Definition at line 44 of file XMLNode.h.

Referenced by CXMLAttribute(), pge::SGFFile::parseLight(), pge::SGFFile::parseMesh(), pge::TextureResourceFile::parseTexture(), and print().


The documentation for this class was generated from the following files:
Generated on Mon Oct 16 12:10:02 2006 for Phobosengine by doxygen 1.3.4