1 // file : xsd/cxx/tree/serialization/unsigned-int.hxx 2 // copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC 3 // license : GNU GPL v2 + exceptions; see accompanying LICENSE file 4 5 #ifndef XSD_CXX_TREE_SERIALIZATION_UNSIGNED_INT_HXX 6 #define XSD_CXX_TREE_SERIALIZATION_UNSIGNED_INT_HXX 7 8 #include <sstream> 9 10 namespace XERCES_CPP_NAMESPACE 11 { 12 inline void operator <<(xercesc::DOMElement & e,unsigned int i)13 operator<< (xercesc::DOMElement& e, unsigned int i) 14 { 15 std::basic_ostringstream<char> os; 16 os << i; 17 e << os.str (); 18 } 19 20 inline void operator <<(xercesc::DOMAttr & a,unsigned int i)21 operator<< (xercesc::DOMAttr& a, unsigned int i) 22 { 23 std::basic_ostringstream<char> os; 24 os << i; 25 a << os.str (); 26 } 27 } 28 29 namespace xsd 30 { 31 namespace cxx 32 { 33 namespace tree 34 { 35 template <typename C> 36 inline void operator <<(list_stream<C> & ls,unsigned int i)37 operator<< (list_stream<C>& ls, unsigned int i) 38 { 39 ls.os_ << i; 40 } 41 } 42 } 43 } 44 45 #endif // XSD_CXX_TREE_SERIALIZATION_UNSIGNED_INT_HXX 46