XmlRegistryElement.cpp

Go to the documentation of this file.
00001 /*
00002 
00003 $Id$
00004 
00005 */
00006 
00007 #include "Error.h"
00008 
00009 #include "XmlRegistryElement.h"
00010 
00011 // Public methods.
00012 
00013 XmlRegistryElement::XmlRegistryElement(XmlAttribute *attr, const String &innerData,
00014                                        XmlElement* nextChild, XmlElement *nextSibling) : XmlElement(XML_TAG_REGISTRY, attr, innerData, nextChild, nextSibling)
00015 {
00016 }
00017 
00018 XmlRegistryElement::~XmlRegistryElement()
00019 {
00020 }
00021 
00022 String XmlRegistryElement::type() const
00023 {
00024   String attr;
00025   int res;
00026 
00027   if (FAILED(res = attribute(XML_ATTR_TYPE, attr)))
00028     WARNING(MSG_XML_ELEMENT_ATTR_NOT_FOUND, XML_ATTR_TYPE);
00029   return attr;
00030 }
00031 
00032 String XmlRegistryElement::value() const
00033 {
00034   String attr;
00035   int res;
00036 
00037   if (FAILED(res = attribute(XML_ATTR_VALUE, attr)))
00038     WARNING(MSG_XML_ELEMENT_ATTR_NOT_FOUND, XML_ATTR_VALUE);
00039   return attr;
00040 }
00041 
00042 String XmlRegistryElement::defaultValue() const
00043 {
00044   String attr;
00045   int res;
00046 
00047   if (FAILED(res = attribute(XML_ATTR_DEFAULT, attr)))
00048     WARNING(MSG_XML_ELEMENT_ATTR_NOT_FOUND, XML_ATTR_DEFAULT);
00049   return attr;
00050 }

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