libt2n: (gerd) command handling, unit-test still bailing out
[libt2n] / src / command.hxx
index 98f5004..ce67ebe 100644 (file)
 #ifndef __LIBT2N_COMMAND
 #define __LIBT2N_COMMAND
 
+#include <iostream>
+
 #include <boost/serialization/serialization.hpp>
-#include <boost/serialization/export.hpp>
+#include <boost/serialization/tracking.hpp>
 
 namespace libt2n
 {
@@ -41,6 +43,7 @@ class result
 };
 }
 //BOOST_IS_ABSTRACT(libt2n::result)
+BOOST_CLASS_TRACKING(libt2n::result, boost::serialization::track_never)
 
 namespace libt2n
 {
@@ -52,16 +55,18 @@ class command
         friend class boost::serialization::access;
         template<class Archive>
         void serialize(Archive & ar, const unsigned int version)
-        { }
+        { 
+            std::cerr << "ser: command" << std::endl;
+        }
 
     public:
         /// this calls the wanted target function on the server
-        virtual result* operator()() = 0;
+        virtual result* operator()()=0;
         virtual ~command() {}
 };
 } // namespace libt2n
 //BOOST_IS_ABSTRACT(libt2n::command)
-
+BOOST_CLASS_TRACKING(libt2n::command, boost::serialization::track_never)
 
 
 #endif