From a07cb16f28bfa318db2c779d264b92a1599c92b4 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Thu, 11 Mar 2010 16:43:40 +0000 Subject: [PATCH] Merge trunk to release [SVN r60484] --- doc/archive_reference.html | 153 ++++++++++---------- doc/archives.html | 4 +- doc/class_diagram.html | 72 +++++----- doc/contents.html | 4 +- doc/derivation.html | 116 ++++++++-------- doc/headers.html | 60 ++++++-- doc/release.html | 19 +++ doc/simple_log.html | 95 +++++++++++++ doc/singleton.html | 33 +++-- doc/special.html | 42 ++++++ example/Jamfile.v2 | 6 +- example/demo_gps.hpp | 3 +- example/demo_log.cpp | 76 ++++++++++ example/demo_portable_archive.cpp | 6 +- example/demo_simple_log.cpp | 75 ++++++++++ example/demo_trivial_archive.cpp | 94 +++++++++++++ example/log_archive.cpp | 32 +++++ example/log_archive.hpp | 76 ++++++++++ example/portable_binary_iarchive.cpp | 1 - example/simple_log_archive.hpp | 166 ++++++++++++++++++++++ src/basic_iarchive.cpp | 10 +- src/basic_oarchive.cpp | 1 + src/basic_serializer_map.cpp | 28 ++-- src/shared_ptr_helper.cpp | 24 +++- test/Jamfile.v2 | 3 +- test/polymorphic_derived2.cpp | 9 +- test/polymorphic_derived2.hpp | 9 +- test/test_check.cpp | 2 +- test/test_dll_exported.cpp | 13 ++ test/test_dll_plugin.cpp | 8 +- test/test_exported.cpp | 21 ++- test/test_no_rtti.cpp | 8 ++ vc7ide/BoostSerializationLibrary.sln | 104 +++++++++++--- vc7ide/Library.vcproj | 8 +- vc7ide/LibraryW.vcproj | 4 +- vc7ide/demo_dll.vcproj | 2 +- vc7ide/demo_log.vcproj | 201 +++++++++++++++++++++++++++ vc7ide/demo_portable_archive.vcproj | 1 - vc7ide/demo_simple_log.vcproj | 199 ++++++++++++++++++++++++++ vc7ide/demo_trivial_archive.vcproj | 196 ++++++++++++++++++++++++++ vc7ide/demo_xml_save.vcproj | 3 - vc7ide/test_exported.vcproj | 3 + 42 files changed, 1730 insertions(+), 260 deletions(-) create mode 100644 doc/simple_log.html create mode 100644 example/demo_log.cpp create mode 100644 example/demo_simple_log.cpp create mode 100644 example/demo_trivial_archive.cpp create mode 100644 example/log_archive.cpp create mode 100644 example/log_archive.hpp create mode 100644 example/simple_log_archive.hpp create mode 100644 vc7ide/demo_log.vcproj create mode 100644 vc7ide/demo_simple_log.vcproj create mode 100644 vc7ide/demo_trivial_archive.vcproj diff --git a/doc/archive_reference.html b/doc/archive_reference.html index 98f87ff8..b8314ddd 100644 --- a/doc/archive_reference.html +++ b/doc/archive_reference.html @@ -1,7 +1,7 @@ + + + + +Serialization - Derivation from an Existing Archive + + + + + + + +
+

C++ Boost

+
+

Serialization

+

A Simple Logging Archive Class

+
+
+The purpose of this example help clarify the usage of the +Archive Concept +so that one can implement his own archive classes. + +simple_log_archive.hpp implements a simple but useful +archive class. This class can be used to send any serializable types +on an output text stream in a readable format. Usage of this facility +is trivially easy: + +

+#include "simple_log_archive.hpp"
+...
+// display the complete schedule
+simple_log_archive log(std::cout);
+log << schedule;
+
+ +and it produces the following output + +

+schedule 
+ count 6
+ item 
+  first 
+   driver bob
+   hour 6
+   minute 24
+  second -> 
+   stops 
+    count 3
+    item -> 
+     latitude 
+      degrees 34
+      minutes 135
+      seconds 52.56
+     longitude 
+      degrees 134
+      minutes 22
+      seconds 78.3
+...
+
+ +The complete example is +demo_simple_log.cpp. Look at +Trivial Archive to get a +better understanding of how this works. + +Also, note the following: + + +
+

© Copyright Robert Ramey 2002-2010. +Distributed under the Boost Software License, Version 1.0. (See +accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +

+ + diff --git a/doc/singleton.html b/doc/singleton.html index 737ccdde..80f71c88 100644 --- a/doc/singleton.html +++ b/doc/singleton.html @@ -1,4 +1,4 @@ - +