![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 5, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #ifndef WNS_LDK_TOOLS_OVERHEAD_HPP 00029 #define WNS_LDK_TOOLS_OVERHEAD_HPP 00030 00031 #include <WNS/ldk/Forwarding.hpp> 00032 #include <WNS/ldk/fu/Plain.hpp> 00033 #include <WNS/ldk/Command.hpp> 00034 00035 namespace wns { namespace ldk { namespace tools { 00036 00037 class OverheadCommand : 00038 public Command 00039 { 00040 public: 00041 OverheadCommand(); 00042 00043 virtual Bit 00044 getSize() const; 00045 00046 struct { 00047 } peer; 00048 00049 struct { 00050 } local; 00051 00052 struct { 00053 // Overhead in Bit 00054 Bit overhead; 00055 } magic; 00056 00057 }; 00058 00063 class Overhead : 00064 public fu::Plain<Overhead, OverheadCommand>, 00065 public Forwarding<Overhead> 00066 { 00067 public: 00071 Overhead(fun::FUN* fuNet, const wns::pyconfig::View& config); 00072 00073 // Forwarding Interface 00074 virtual void 00075 processOutgoing(const CompoundPtr& componud); 00076 00077 virtual void 00078 processIncoming(const CompoundPtr& componud); 00079 00080 private: 00081 00082 Bit overhead; 00083 }; 00084 00085 } // tools 00086 } // ldk 00087 } // wns 00088 00089 #endif // NOT defined WNS_LDK_TOOLS_OVERHEAD_HPP 00090 00091
1.5.5