S11nUint.cpp

Go to the documentation of this file.
00001 /*
00002 
00003 $Header$
00004 
00005 */
00006 
00007 #include "S11nUint.h"
00008 
00009 template<>
00010 int S11n<unsigned int>::toString(const unsigned int &value, String &str)
00011 {
00012   str.setNum(value);
00013   return OK;
00014 }
00015 
00016 template<>
00017 int S11n<unsigned int>::fromString(const String &str, unsigned int &value)
00018 {
00019   int res;
00020 
00021   if (FAILED(res = str.toUint(value)))
00022     return ERROR_BACKTRACE(res);
00023 
00024   return OK;
00025 }
00026 
00027 template<>
00028 int S11n<unsigned int>::toXml(const unsigned int &value, XmlElement *element)
00029 {
00030   int res;
00031 
00032   if (FAILED(res = toXmlAttrValue(value, element)))
00033     return ERROR_BACKTRACE(res);
00034   return OK;
00035 }
00036 
00037 template<>
00038 int S11n<unsigned int>::fromXml(const XmlElement *element, unsigned int &value)
00039 {
00040   int res;
00041 
00042   if (FAILED(res = fromXmlAttrValue(element, value)))
00043     return ERROR_BACKTRACE(res);
00044   return OK;
00045 }

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