command.hxx
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef __LIBT2N_COMMAND
00023 #define __LIBT2N_COMMAND
00024 
00025 #include <iostream>
00026 
00027 #include <boost/serialization/serialization.hpp>
00028 #include <boost/serialization/tracking.hpp>
00029 
00030 namespace libt2n
00031 {
00032 
00035 class result
00036 {
00037     private:
00038         friend class boost::serialization::access;
00039         template<class Archive>
00040         void serialize(Archive & , const unsigned int )
00041         { }
00042 
00043     public:
00044         result() {}
00045         virtual ~result() {}
00046 };
00047 }
00048 
00049 BOOST_CLASS_TRACKING(libt2n::result, boost::serialization::track_never)
00050 
00051 namespace libt2n
00052 {
00055 class command
00056 {
00057     private:
00058         friend class boost::serialization::access;
00059         template<class Archive>
00060         void serialize(Archive & , const unsigned int )
00061         { }
00062 
00063     public:
00065         virtual result* operator()()=0;
00066         virtual ~command() {}
00067 };
00068 } 
00069 
00070 BOOST_CLASS_TRACKING(libt2n::command, boost::serialization::track_never)
00071 
00072 
00073 #endif
00074