command.hxx

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Gerd v. Egidy                                   *
00003  *   gve@intra2net.com                                                     *
00004  *                                                                         *
00005  *   This library is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Lesser General Public License version   *
00007  *   2.1 as published by the Free Software Foundation.                     *
00008  *                                                                         *
00009  *   This library is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU Lesser General Public License for more details.                   *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU Lesser General Public      *
00015  *   License along with this program; if not, write to the                 *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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 & /* ar */, const unsigned int /* version */)
00038         { }
00039 
00040     public:
00041         result() {}
00042         virtual ~result() {}
00043 };
00044 }
00045 //BOOST_IS_ABSTRACT(libt2n::result)
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 & /* ar */, const unsigned int /* version */)
00058         { }
00059 
00060     public:
00062         virtual result* operator()()=0;
00063         virtual ~command() {}
00064 };
00065 } // namespace libt2n
00066 //BOOST_IS_ABSTRACT(libt2n::command)
00067 BOOST_CLASS_TRACKING(libt2n::command, boost::serialization::track_never)
00068 
00069 
00070 #endif
00071 

Generated on Fri Sep 26 15:36:59 2008 for libt2n by  doxygen 1.5.6