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 #ifndef __LIBT2N_COMMAND
00020 #define __LIBT2N_COMMAND
00021
00022 #include <iostream>
00023
00024 #include <boost/serialization/serialization.hpp>
00025 #include <boost/serialization/tracking.hpp>
00026
00027 namespace libt2n
00028 {
00029
00032 class result
00033 {
00034 private:
00035 friend class boost::serialization::access;
00036 template<class Archive>
00037 void serialize(Archive & , const unsigned int )
00038 { }
00039
00040 public:
00041 result() {}
00042 virtual ~result() {}
00043 };
00044 }
00045
00046 BOOST_CLASS_TRACKING(libt2n::result, boost::serialization::track_never)
00047
00048 namespace libt2n
00049 {
00052 class command
00053 {
00054 private:
00055 friend class boost::serialization::access;
00056 template<class Archive>
00057 void serialize(Archive & , const unsigned int )
00058 { }
00059
00060 public:
00062 virtual result* operator()()=0;
00063 virtual ~command() {}
00064 };
00065 }
00066
00067 BOOST_CLASS_TRACKING(libt2n::command, boost::serialization::track_never)
00068
00069
00070 #endif
00071