diff options
Diffstat (limited to 'xml/serializer.hxx')
-rw-r--r-- | xml/serializer.hxx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/xml/serializer.hxx b/xml/serializer.hxx index e0041f9..d07221d 100644 --- a/xml/serializer.hxx +++ b/xml/serializer.hxx @@ -94,6 +94,42 @@ namespace xml void end_element (); + // Helpers for serializing elements with simple content. The first two + // functions assume that start_element() has already been called. The + // other two serialize the complete element, from start to end. + // + void + element (const std::string& value); + + template <typename T> + void + element (const T& value); + + void + element (const std::string& name, const std::string& value); + + template <typename T> + void + element (const std::string& name, const T& value); + + void + element (const qname_type& qname, const std::string& value); + + template <typename T> + void + element (const qname_type& qname, const T& value); + + void + element (const std::string& namespace_, + const std::string& name, + const std::string& value); + + template <typename T> + void + element (const std::string& namespace_, + const std::string& name, + const T& value); + // Attributes. // void |