00001 /*************************************************************************** 00002 * The contents of this file are subject to the Mozilla Public * 00003 * License Version 1.1 (the "License"); you may not use this file * 00004 * except in compliance with the License. You may obtain a copy of * 00005 * the License at http://www.mozilla.org/MPL/ * 00006 * * 00007 * Software distributed under the License is distributed on an "AS * 00008 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * 00009 * implied. See the License for the specific language governing * 00010 * rights and limitations under the License. * 00011 * * 00012 * The Original Code is Game Network Framework (GaNeF). * 00013 * * 00014 * The Initial Developers of the Original Code are * 00015 * Lars Langer and Emanuel Greisen * 00016 * Copyright (C) 2005. Lars Langer & Emanuel Greisen * 00017 * All Rights Reserved. * 00018 * * 00019 * Contributor(s): * 00020 * none yet.... * 00021 * * 00022 ***************************************************************************/ 00023 #ifndef FRAMEWORKDATA_H 00024 #define FRAMEWORKDATA_H 00025 00026 00027 template<class PacketType, class SocketType> 00028 class Framework; 00029 class FrameworkPacket; 00030 00031 /** 00032 * @ingroup Common 00033 * @brief The common interface for data on both sender and reciever side. 00034 * @author Lars Langer and Emanuel Greisen 00035 */ 00036 class FrameworkData 00037 { 00038 private: 00039 unsigned int __framework_id; 00040 00041 public: 00042 FrameworkData(unsigned int i) : __framework_id(i) {}; 00043 virtual ~FrameworkData(); 00044 00045 public: 00046 unsigned int getFrameworkId() const { return __framework_id; }; 00047 }; 00048 00049 #endif