User Manual, Developers Guide and API Documentation

TargetKeys.hpp

Go to the documentation of this file.
00001 /******************************************************************************
00002  * WiMeMac                                                                    *
00003  * This file is part of openWNS (open Wireless Network Simulator)
00004  * _____________________________________________________________________________
00005  *
00006  * Copyright (C) 2004-2011
00007  * Chair of Communication Networks (ComNets)
00008  * Kopernikusstr. 5, 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 WIMEMAC_HELPER_TARGETKEYS_H
00030 #define WIMEMAC_HELPER_TARGETKEYS_H
00031 
00032 
00033 #include <WNS/ldk/Compound.hpp>
00034 #include <WNS/ldk/fun/FUN.hpp>
00035 #include <WNS/ldk/Key.hpp>
00036 
00037 #include <WNS/service/dll/Address.hpp>
00038 #include <WIMEMAC/convergence/Upper.hpp>
00039 
00040 namespace wimemac {namespace helper {
00041 
00042 
00043 
00044 class MACIDKeyBuilder;
00045 
00046 class TargetMACKey:
00047     public wns::ldk::Key
00048 {
00049     public:
00050         TargetMACKey(const MACIDKeyBuilder* factory, const wns::ldk::CompoundPtr& compound, int);
00051         
00052         bool operator<(const wns::ldk::Key& other) const;
00053         std::string str() const;
00054 
00055         wns::service::dll::UnicastAddress rx;
00056         wns::service::dll::UnicastAddress tx;
00057 };
00058 
00059 class MACIDKeyBuilder:
00060     public wns::ldk::KeyBuilder
00061 {
00062     public:
00063         MACIDKeyBuilder(const wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config);
00064         virtual void onFUNCreated();
00065         virtual wns::ldk::ConstKeyPtr operator() (const wns::ldk::CompoundPtr& compound, int direction) const;
00066 
00067         const wns::ldk::fun::FUN* fun;
00068         struct Friends {
00069             wns::ldk::CommandReaderInterface* keyReader;
00070         } friends;
00071 };
00072 }
00073 }
00074 
00075 
00076 #endif

Generated on Sat May 26 03:32:12 2012 for openWNS by  doxygen 1.5.5