User Manual, Developers Guide and API Documentation

ITransmissionCounter.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WiFiMac                                                                    *
00003  * This file is part of openWNS (open Wireless Network Simulator)
00004  * _____________________________________________________________________________
00005  *
00006  * Copyright (C) 2004-2007
00007  * Chair of Communication Networks (ComNets)
00008  * Kopernikusstr. 16, D-52074 Aachen, Germany
00009  * phone: ++49-241-80-27910,
00010  * fax: ++49-241-80-22242
00011  * email: info@openwns.org
00012  * www: http://www.openwns.org
00013  * _____________________________________________________________________________
00014  *
00015  * openWNS is free software; you can redistribute it and/or modify it under the
00016  * terms of the GNU Lesser General Public License version 2 as published by the
00017  * Free Software Foundation;
00018  *
00019  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00020  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00021  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00022  * details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00026  *
00027  ******************************************************************************/
00028 
00029 #ifndef WIFIMAC_LOWERMAC_ITRANSMISSIONCOUNTER_HPP
00030 #define WIFIMAC_LOWERMAC_ITRANSMISSIONCOUNTER_HPP
00031 
00032 namespace wifimac { namespace lowerMAC {
00033 
00037     class ITransmissionCounter
00038     {
00039     public:
00040         virtual ~ITransmissionCounter()
00041             {}
00042 
00043         virtual unsigned int
00044         getTransmissionCounter(const wns::ldk::CompoundPtr& compound) const = 0;
00045 
00046         virtual void
00047         copyTransmissionCounter(const wns::ldk::CompoundPtr& src, const wns::ldk::CompoundPtr& dst) = 0;
00048 
00049         // indication from outside that the transmission has failed
00050         virtual void
00051         onTransmissionHasFailed(const wns::ldk::CompoundPtr& compound) = 0;
00052 
00053     };
00054 }
00055 }
00056 
00057 #endif // WIFIMAC_LOWERMAC_ITRANSMISSIONCOUNTER_HPP

Generated on Thu May 24 03:32:09 2012 for openWNS by  doxygen 1.5.5