]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix serialization of TableHandler
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 16 Sep 2012 20:16:35 +0000 (20:16 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 16 Sep 2012 20:16:35 +0000 (20:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@26422 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/table_handler.h

index 7fd206e811eee7210d80b21abc9cfe2f9f5a4925..0c6366717e335171cd51ed0528d91b712a711c46 100644 (file)
@@ -583,7 +583,10 @@ class TableHandler
                                           * the purpose of serialization.
                                           */
         template <class Archive>
-        void serialize(Archive & ar, const unsigned int version);
+        void save(Archive & ar, const unsigned int version) const;
+        template<class Archive>
+        void load(Archive & ar, const unsigned int version);
+        BOOST_SERIALIZATION_SPLIT_MEMBER()
 
 
         /**
@@ -905,18 +908,28 @@ void TableHandler::add_value (const std::string &key,
 }
 
 
-
 template <class Archive>
 void
-TableHandler::Column::serialize(Archive & ar,
-                                const unsigned int)
+TableHandler::Column::save(Archive & ar, const unsigned int version) const
 {
-  ar & entries & tex_caption
-    & tex_format & precision
-    & scientific
-    & flag;
+    ar & entries & tex_caption
+      & tex_format & precision
+      & scientific
+      & flag
+      & max_length;
 }
 
+template<class Archive>
+void
+TableHandler::Column::load(Archive & ar, const unsigned int version)
+{
+    ar & entries & tex_caption
+      & tex_format & precision
+      & scientific
+      & flag
+      & max_length;
+    invalidate_cache();
+}
 
 
 template <class Archive>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.