xml::Optional example added end extended

master
Marc Wäckerlin 16 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**) { int main(int, char**) {
{ // Serialization as a member { // 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 b;
b.loadXml(ss); b.loadXml(ss);
b.saveXml(std::cout)<<std::endl; b.saveXml(std::cout)<<std::endl;

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

Loading…
Cancel
Save