Remove prototype boost serialiation code.
authorDiane Trout <diane@caltech.edu>
Tue, 24 Nov 2009 17:12:51 +0000 (09:12 -0800)
committerDiane Trout <diane@caltech.edu>
Tue, 24 Nov 2009 17:12:51 +0000 (09:12 -0800)
I was having the hardest time updating it for boost 1.41 and, as its
not actually being used in any way I removed the stubs from the classes
and commented out the test code.

alg/color.hpp
alg/sequence.hpp
alg/test/test_color.cpp
alg/test/test_sequence.cpp

index 0c4f3c76759c0c07f1580dcb868ac7f08925a65c..cc11997556f71fd2aa90517a3734a4b99c838272 100644 (file)
@@ -3,10 +3,6 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include <boost/serialization/export.hpp>
-#include <boost/serialization/nvp.hpp>
-#include <boost/serialization/version.hpp>
-
 #include <ostream>
 
 class Color;
@@ -42,16 +38,6 @@ public:
 protected:
   float colors[4];
 
-private:
-  friend class boost::serialization::access;
-  template<class Archive>
-  void serialize(Archive& ar, const unsigned int /*version*/) {
-    ar & boost::serialization::make_nvp("red",   colors[RedChannel]);
-    ar & boost::serialization::make_nvp("green", colors[GreenChannel]);
-    ar & boost::serialization::make_nvp("blue",  colors[BlueChannel]);
-    ar & boost::serialization::make_nvp("alpha", colors[AlphaChannel]);
-  }
 };
-BOOST_CLASS_EXPORT(Color)
 #endif
 
index f7d3c364c868a003ff7db3ceb3238e0ea2b1a90a..706f499f29a48596a0471245448a61568ff0535f 100644 (file)
 #include <boost/filesystem/path.hpp>
 #include <boost/filesystem/fstream.hpp>
 
-#include <boost/serialization/base_object.hpp>
-#include <boost/serialization/export.hpp>
-#include <boost/serialization/list.hpp>
-#include <boost/serialization/nvp.hpp>
-#include <boost/serialization/string.hpp>
-#include <boost/serialization/shared_ptr.hpp>
-#include <boost/serialization/utility.hpp>
-#include <boost/serialization/version.hpp>
-#include <boost/serialization/vector.hpp>
-
 #include <boost/shared_ptr.hpp>
 #include <boost/enable_shared_from_this.hpp>
 
@@ -69,7 +59,6 @@ private:
     ar & BOOST_SERIALIZATION_NVP(sequence);
   }
 };
-BOOST_CLASS_EXPORT(motif);
 
 class Sequence;
 typedef boost::shared_ptr<Sequence> SequenceRef;
@@ -256,18 +245,6 @@ protected:
   //! look for a string sequence type and and it to an annotation list
   void add_string_annotation(std::string a_seq, std::string name);
   
-  // boost::serialization support
-  friend class boost::serialization::access;
-  template<class Archive>
-  void serialize(Archive& ar, const unsigned int /*version*/) {
-    ar & BOOST_SERIALIZATION_NVP(seq);
-    ar & BOOST_SERIALIZATION_NVP(header);
-    ar & BOOST_SERIALIZATION_NVP(species);
-    ar & BOOST_SERIALIZATION_NVP(annotation_list);
-    ar & BOOST_SERIALIZATION_NVP(motif_list);
-  }
 };
 
-//BOOST_CLASS_EXPORT(Sequence);
-//BOOST_CLASS_EXPORT_GUID(Sequence, "Sequence")
 #endif
index c2687874e1d7ab0744f09418c021972db17ea8e0..351a54a06021e5c324ee21dc5afd185e0747a7d9 100644 (file)
@@ -49,6 +49,7 @@ BOOST_AUTO_TEST_CASE ( color )
   BOOST_CHECK_CLOSE (colors[Color::AlphaChannel ], dotfour, tolerance );
 }
 
+/*
 BOOST_AUTO_TEST_CASE( serialize_color )
 {
   const Color color1(1.0, 1.0, 1.0, 1.0);
@@ -87,3 +88,4 @@ BOOST_AUTO_TEST_CASE( serialize_xml_color )
   }
   BOOST_CHECK_EQUAL(color1, color2);
 }
+*/
index 2ea2fc0c5df2c9a9484548f2169d9a2d8a366212..ae03cdbe8206d206c5843bde03dbdb57d8805f35 100644 (file)
@@ -967,7 +967,7 @@ BOOST_AUTO_TEST_CASE( get_name )
   seq.set_fasta_header("fasta human");
   BOOST_CHECK_EQUAL( seq.get_name(), "fasta human");
 }
-
+/*
 BOOST_AUTO_TEST_CASE( serialize_simple )
 {
   std::string seq_string = "AAGGCCTT";
@@ -1075,3 +1075,4 @@ BOOST_AUTO_TEST_CASE( serialize_xml_two )
   // test if our pointers are the same
   BOOST_CHECK_EQUAL(seq1_loaded.data(), seq2_loaded.data());
 }
+*/