// $Id$ // // Copyright (C) 2006 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // 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. /** \file \brief ProtocolClientSocketHandle Boost.Preprocessor external iteration include */ #if !BOOST_PP_IS_ITERATING && !defined(MPP_ProtocolClientSocketHandle_) #define MPP_ProtocolClientSocketHandle_ 1 // Custom includes #include #include #include //-///////////////////////////mpp.p//////////////////////////////////////// #elif BOOST_PP_IS_ITERATING //-//////////////////////////////////////////// //-//////////////////////////////////////////////////////////////////////// // Local Macros #define mpp_Arg(z,n,data) BOOST_PP_CAT(A,n) const & BOOST_PP_CAT(a,n) #define mpp_TemplateParameters() BOOST_PP_ENUM_PARAMS(BOOST_PP_ITERATION(), class A ) #define mpp_MethodParameters() BOOST_PP_ENUM(BOOST_PP_ITERATION(), mpp_Arg, ) #define mpp_CallParameters() BOOST_PP_ENUM_PARAMS(BOOST_PP_ITERATION(), a ) //-//////////////////////////////////////////////////////////////////////// #if BOOST_PP_ITERATION_FLAGS()==1 //-////////////////////////////////////// //-//////////////////////////////////////////////////////////////////////// // senf::ProtocolClientSocketHandle:: // ProtocolClientSocketHandle (constructor) declaration template < mpp_TemplateParameters() > explicit ProtocolClientSocketHandle( mpp_MethodParameters() ); //-//////////////////////////////////////////////////////////////////////// #elif BOOST_PP_ITERATION_FLAGS()==2 //-//////////////////////////////////// //-//////////////////////////////////////////////////////////////////////// // senf::ProtocolClientSocketHandle:: // ProtocolClientSocketHandle (constructor) implementation template template < mpp_TemplateParameters() > prefix_ senf::ProtocolClientSocketHandle:: ProtocolClientSocketHandle( mpp_MethodParameters() ) : ClientSocketHandle( std::auto_ptr(new ProtocolSocketBody(false))) { this->protocol().init_client( mpp_CallParameters() ); } //-//////////////////////////////////////////////////////////////////////// #endif //-///////////////////////////////////////////////////////////////// //-//////////////////////////////////////////////////////////////////////// // Undefine local Macros #undef mpp_Arg #undef mpp_TemplateParameters #undef mpp_MethodParameters #undef mpp_CallParameters //-//////////////////////////////////////////////////////////////////////// #endif //-///////////////////////////////////////////////////////////////// //-///////////////////////////mpp.e//////////////////////////////////////// // Local Variables: // mode: c++ // fill-column: 100 // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" // comment-column: 40 // End: