protocollayer.h

Go to the documentation of this file.
00001 #ifndef TPPROTO_PROTOCOLLAYER_H
00002 #define TPPROTO_PROTOCOLLAYER_H
00003 /*  ProtocolLayer, the central object of the lower layer of libtpproto-cpp
00004  *
00005  *  Copyright (C) 2005  Lee Begg and the Thousand Parsec Project
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  */
00022 
00029 namespace TPProto{
00030 
00031     class FrameCodec;
00032     class FrameBuilder;
00033     class FrameFactory;
00034 
00040     class ProtocolLayer{
00041     public:
00042         ProtocolLayer();
00043         ~ProtocolLayer();
00044 
00045         void setFrameCodec(FrameCodec* fc);
00046         void setFrameFactory(FrameFactory* ff);
00047         void setFrameBuilder(FrameBuilder* fb);
00048 
00049         FrameCodec* getFrameCodec() const;
00050         FrameFactory* getFrameFactory() const;
00051         FrameBuilder* getFrameBuilder() const;
00052 
00053     private:
00054         FrameCodec* codec;
00055         FrameFactory* factory;
00056         FrameBuilder* builder;
00057 
00058     };
00059 
00060 }
00061 
00062 #endif

Generated on Tue Jan 6 04:30:47 2009 for libtpproto-cpp by  doxygen 1.5.1