// $Id$ // // Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #if !BOOST_PP_IS_ITERATING #ifndef MPP_ProtocolClientSocketHandle_ // Custom includes #include #include #include //////////////////////////////mpp.p//////////////////////////////////////// // Local Macros #define mpp_PCSH_Arg(z,n,data) BOOST_PP_CAT(A,n) const & BOOST_PP_CAT(a,n) #define mpp_PCSH_TemplateParameters() BOOST_PP_ENUM_PARAMS(BOOST_PP_ITERATION(), class A ) #define mpp_PCSH_MethodParameters() BOOST_PP_ENUM(BOOST_PP_ITERATION(), mpp_PCSH_Arg, ) #define mpp_PCSH_CallParameters() BOOST_PP_ENUM_PARAMS(BOOST_PP_ITERATION(), a ) ////// #endif #else /////////////////////////////////////////////////////////////////////////// ////// #if BOOST_PP_ITERATION_FLAGS()==1 /////////////////////////////////////////////////////////////////////////// // senf::ProtocolClientSocketHandle:: // ProtocolClientSocketHandle (constructor) declaration template < mpp_PCSH_TemplateParameters() > ProtocolClientSocketHandle( mpp_PCSH_MethodParameters() ); ////// #elif BOOST_PP_ITERATION_FLAGS()==2 /////////////////////////////////////////////////////////////////////////// // senf::ProtocolClientSocketHandle:: // ProtocolClientSocketHandle (constructor) implementation template template < mpp_PCSH_TemplateParameters() > prefix_ senf::ProtocolClientSocketHandle:: ProtocolClientSocketHandle( mpp_PCSH_MethodParameters() ) : ClientSocketHandle( std::auto_ptr(new SocketProtocol())) { this->protocol().init_client( mpp_PCSH_CallParameters() ); } ////// #endif #endif #if !BOOST_PP_IS_ITERATING #ifdef MPP_PCSH__ProtocolClientSocketHandle_ /////////////////////////////////////////////////////////////////////////// // Undefine local Macros #undef mpp_PCSH_Arg #undef mpp_PCSH_TemplateParameters #undef mpp_PCSH_MethodParameters #undef mpp_PCSH_CallParameters //////////////////////////////mpp_PCSH_.e//////////////////////////////////////// #else #define MPP_PCSH__ProtocolClientSocketHandle_ 1 #endif #endif // Local Variables: // mode: c++ // c-file-style: "senf" // End: