User Manual, Developers Guide and API Documentation

FlowIDBuilder.hpp

Go to the documentation of this file.
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. 16, 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 TCP_FLOWIDBUILDER_HPP
00029 #define TCP_FLOWIDBUILDER_HPP
00030 
00031 #include <TCP/UpperConvergence.hpp>
00032 
00033 #include <WNS/service/nl/Address.hpp>
00034 #include <WNS/service/tl/Service.hpp>
00035 
00036 #include <WNS/ldk/FunctionalUnit.hpp>
00037 #include <WNS/ldk/Compound.hpp>
00038 #include <WNS/ldk/fun/FUN.hpp>
00039 #include <WNS/ldk/Key.hpp>
00040 
00041 
00042 #include <sstream>
00043 
00044 namespace tcp {
00045 
00046     class FlowIDKey :
00047         public wns::ldk::Key
00048     {
00049     public:
00050         FlowIDKey(const wns::service::tl::FlowID&);
00051 
00052         virtual bool
00053         operator<(const Key& other) const;
00054 
00055         virtual std::string
00056         str() const;
00057 
00058         virtual
00059         ~FlowIDKey()
00060         {}
00061 
00062         wns::service::tl::FlowID flowID_;
00063     };
00064 
00065     typedef wns::SmartPtr<FlowIDKey> FlowIDKeyPtr;
00066     typedef wns::SmartPtr<const FlowIDKey> ConstFlowIDKeyPtr;
00067 
00068     class FlowIDBuilder :
00069         public wns::ldk::KeyBuilder
00070     {
00071     public:
00072         FlowIDBuilder(
00073             wns::ldk::fun::FUN* _fun,
00074             const wns::pyconfig::View& _config);
00075 
00076         virtual
00077         ~FlowIDBuilder(){}
00078 
00079         virtual
00080         void onFUNCreated();
00081 
00082         virtual wns::ldk::ConstKeyPtr
00083         operator () (const wns::ldk::CompoundPtr& /*compound*/, int /*direction*/) const;
00084 
00085     private:
00086         wns::pyconfig::View config;
00087 
00088         const wns::ldk::fun::FUN* fun;
00089 
00090         wns::ldk::CommandReaderInterface* tcpHeaderReader;
00091 
00092     };
00093 
00094 } // namespace tcp
00095 
00096 #endif // NOT defined TCP_FLOWID_HPP

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