S11nString.cpp

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

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