XmlAttributeElement.cpp

Go to the documentation of this file.
00001 /*
00002 
00003 $id$
00004 
00005 */
00006 
00007 #include "Error.h"
00008 
00009 #include "XmlAttributeElement.h"
00010 
00011 // Public methods.
00012 
00013 XmlAttributeElement::XmlAttributeElement(const String &tag,
00014                                          XmlAttribute *attr, const String &innerData,
00015                                          XmlElement* nextChild, XmlElement *nextSibling) : XmlElement(tag, attr, innerData, nextChild, nextSibling)
00016 {
00017 }
00018 
00019 XmlAttributeElement::~XmlAttributeElement()
00020 {
00021 }
00022 
00023 // Protected methods.
00024 
00025 int XmlAttributeElement::close()
00026 {
00027   XmlElement *p = parent();
00028   int res;
00029 
00030   if (p)
00031     if (FAILED(res = p->setAttribute(tag(), innerData())))
00032       return ERROR_BACKTRACE(res);
00033   return OK;
00034 }

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1