xml::Optional example added end extended

master
Marc Wäckerlin 15 years ago
parent 2860cdf5ec
commit 5b541b72a8
  1. 2
      doc/examples/optional_serialization.cxx
  2. 5
      src/xml-cxx/xml.hxx

@ -37,7 +37,7 @@ class B: public xml::Serialize {
int main(int, char**) {
{ // Serialization as a member
std::stringstream ss("<B/>");
std::stringstream ss("<B><a><txt>Only this text is given</txt></a></B>");
B b;
b.loadXml(ss);
b.saveXml(std::cout)<<std::endl;

@ -165,7 +165,7 @@ class MethodTrace {
- most standard containers, but in their xml-form,
e.g. xml::List instead of @c std::list
(xml::List inherits @c std::list)
- Optional values through xml::Optional
- Optional values are supported through xml::Optional
- @c std::bitset, @c std::priority_queue, @c std::queue and
@c std::stack are not implemented
- Polymorfic serialisation is not yet implemented
@ -1276,7 +1276,8 @@ namespace xml {
interfaces to another container and don't allow random access
(which is needed to store them).
@example list_serialization.cxx */
@example list_serialization.cxx
@example optional_serialization.cxx */
//@}
//! @cond INTERNAL

Loading…
Cancel
Save