From 927b97baaaf69e318ff7a0ce76d096375ec09da2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Mar 2013 08:22:58 +0200 Subject: Add support for returning XML attributes as map --- cutl/xml/value-traits.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cutl/xml/value-traits.hxx') diff --git a/cutl/xml/value-traits.hxx b/cutl/xml/value-traits.hxx index f79f67f..0b95205 100644 --- a/cutl/xml/value-traits.hxx +++ b/cutl/xml/value-traits.hxx @@ -6,6 +6,7 @@ #define CUTL_XML_VALUE_TRAITS_HXX #include +#include // std::size_t #include @@ -19,6 +20,9 @@ namespace cutl template struct default_value_traits { + static T + parse (std::string, const parser&); + static std::string serialize (const T&, const serializer&); }; @@ -26,6 +30,9 @@ namespace cutl template <> struct LIBCUTL_EXPORT default_value_traits { + static bool + parse (std::string, const parser&); + static std::string serialize (bool v, const serializer&) { @@ -35,6 +42,9 @@ namespace cutl template struct value_traits: default_value_traits {}; + + template + struct value_traits: default_value_traits {}; } } -- cgit v1.1