Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

RCF - Interprocess Communication for C++

, 25 Oct 2011
A server/client IPC framework, using the C++ preprocessor as an IDL compiler.
rcf-04.zip
RCF-0.4
demo
vs2003
RCF
Client
Server
doc
html
class_r_c_f_1_1_exception.png
class_r_c_f_1_1_filter.png
class_r_c_f_1_1_filter_factory.png
class_r_c_f_1_1_filter_service.png
class_r_c_f_1_1_identity_filter.png
class_r_c_f_1_1_identity_filter_factory.png
class_r_c_f_1_1_i___client_transport.png
class_r_c_f_1_1_i___endpoint.png
class_r_c_f_1_1_i___service.png
class_r_c_f_1_1_i___session_manager.png
class_r_c_f_1_1_multicast_client_transport.png
class_r_c_f_1_1_object_factory_service.png
class_r_c_f_1_1_open_ssl_encryption_filter.png
class_r_c_f_1_1_open_ssl_encryption_filter_factory.png
class_r_c_f_1_1_publishing_service.png
class_r_c_f_1_1_rcf_server.png
class_r_c_f_1_1_remote_exception.png
class_r_c_f_1_1_subscription_service.png
class_r_c_f_1_1_tcp_endpoint.png
class_r_c_f_1_1_udp_endpoint.png
class_r_c_f_1_1_zlib_stateful_compression_filter_factory.png
class_r_c_f_1_1_zlib_stateless_compression_filter_factory.png
doxygen.png
ftv2blank.png
ftv2doc.png
ftv2folderclosed.png
ftv2folderopen.png
ftv2lastnode.png
ftv2link.png
ftv2mlastnode.png
ftv2mnode.png
ftv2node.png
ftv2plastnode.png
ftv2pnode.png
ftv2vertline.png
tab_b.gif
tab_l.gif
tab_r.gif
latex
annotated.tex
class_r_c_f_1_1_client_stub.tex
class_r_c_f_1_1_exception.eps
class_r_c_f_1_1_exception.tex
class_r_c_f_1_1_filter.eps
class_r_c_f_1_1_filter.tex
class_r_c_f_1_1_filter_description.tex
class_r_c_f_1_1_filter_factory.eps
class_r_c_f_1_1_filter_factory.tex
class_r_c_f_1_1_filter_service.eps
class_r_c_f_1_1_filter_service.tex
class_r_c_f_1_1_identity_filter.eps
class_r_c_f_1_1_identity_filter.tex
class_r_c_f_1_1_identity_filter_factory.eps
class_r_c_f_1_1_identity_filter_factory.tex
class_r_c_f_1_1_i___client_transport.eps
class_r_c_f_1_1_i___client_transport.tex
class_r_c_f_1_1_i___endpoint.eps
class_r_c_f_1_1_i___endpoint.tex
class_r_c_f_1_1_i___proactor.tex
class_r_c_f_1_1_i___rcf_client.tex
class_r_c_f_1_1_i___server_transport.tex
class_r_c_f_1_1_i___server_transport_ex.tex
class_r_c_f_1_1_i___service.eps
class_r_c_f_1_1_i___service.tex
class_r_c_f_1_1_i___session.tex
class_r_c_f_1_1_i___session_manager.eps
class_r_c_f_1_1_i___session_manager.tex
class_r_c_f_1_1_multicast_client_transport.eps
class_r_c_f_1_1_multicast_client_transport.tex
class_r_c_f_1_1_object_factory_service.eps
class_r_c_f_1_1_object_factory_service.tex
class_r_c_f_1_1_open_ssl_encryption_filter.eps
class_r_c_f_1_1_open_ssl_encryption_filter.tex
class_r_c_f_1_1_open_ssl_encryption_filter_factory.eps
class_r_c_f_1_1_open_ssl_encryption_filter_factory.tex
class_r_c_f_1_1_publishing_service.eps
class_r_c_f_1_1_publishing_service.tex
class_r_c_f_1_1_rcf_server.eps
class_r_c_f_1_1_rcf_server.tex
class_r_c_f_1_1_remote_exception.eps
class_r_c_f_1_1_remote_exception.tex
class_r_c_f_1_1_subscription_service.eps
class_r_c_f_1_1_subscription_service.tex
class_r_c_f_1_1_tcp_endpoint.eps
class_r_c_f_1_1_tcp_endpoint.tex
class_r_c_f_1_1_udp_endpoint.eps
class_r_c_f_1_1_udp_endpoint.tex
class_r_c_f_1_1_zlib_stateful_compression_filter.tex
class_r_c_f_1_1_zlib_stateful_compression_filter_factory.eps
class_r_c_f_1_1_zlib_stateful_compression_filter_factory.tex
class_r_c_f_1_1_zlib_stateless_compression_filter.tex
class_r_c_f_1_1_zlib_stateless_compression_filter_factory.eps
class_r_c_f_1_1_zlib_stateless_compression_filter_factory.tex
dirs.tex
dir_G_3A_2FDevelopment_2Fbuild_2Fscripts_2Fwin_2FBuildRcf2_5FOutput_2FRCF_2D0_2E4_2Finclude_2F.tex
dir_G_3A_2FDevelopment_2Fbuild_2Fscripts_2Fwin_2FBuildRcf2_5FOutput_2FRCF_2D0_2E4_2Finclude_2FRCF_2F.tex
dir_G_3A_2FDevelopment_2Fbuild_2Fscripts_2Fwin_2FBuildRcf2_5FOutput_2FRCF_2D0_2E4_2Finclude_2FRCF_2FProtocol_2F.tex
doxygen.sty
Helvetica.ttf
hierarchy.tex
Makefile
refman.tex
struct_r_c_f_1_1_filter_id_comparison.tex
include
RCF
Marshal.inl
Protocol
RcfServer.inl
ServerStub.inl
test
util
Platform
Machine
SPARC
x86
OS
Unix
Windows
Threads
SF
src
RCF
Protocol
SF
test
borland
Jamfile
Jamrules
Jamfile
Jamrules
vs2003
RCF
RCF
RCFTest
client.pem
server.pem
rcf-09c.zip
RCF-0.9c
demo
vs2003
RCF
Client
Server
include
RCF
Marshal.inl
Protocol
RcfServer.inl
ServerStub.inl
test
util
Platform
Machine
SPARC
x86
OS
Unix
Windows
Threads
SF
src
RCF
Protocol
util
SF
test
bcc
Jamfile
Jamrules
data
caCertA.pem
caCertB.pem
certA.pem
certB.pem
ssCert1.pem
ssCert2.pem
Jamfile
Jamrules
vc6
Jamfile
Jamrules
//*****************************************************************************
// RCF - Remote Call Framework
// Copyright (c) 2005. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************

#ifndef INCLUDE_RCF_IDL_HPP
#define INCLUDE_RCF_IDL_HPP

#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>

#include <RCF/ClientStub.hpp>
#include <RCF/ClientTransport.hpp>
#include <RCF/Endpoint.hpp>
#include <RCF/Exception.hpp>
#include <RCF/GetInterfaceName.hpp>
#include <RCF/Marshal.hpp>
#include <RCF/RcfClient.hpp>
#include <RCF/ServerStub.hpp>
#include <RCF/util/Meta.hpp>

// RCF_BEGIN
/// Alias for RCF_BEGIN_INHERITED_0
#define RCF_BEGIN(InterfaceT, Name) RCF_BEGIN_INHERITED_0(InterfaceT, Name)

// RCF_BEGIN_INHERITED
/// Alias for RCF_BEGIN_INHERITED_1
#define RCF_BEGIN_INHERITED(InterfaceT, Name, InheritT) RCF_BEGIN_INHERITED_1(InterfaceT, Name, InheritT)

// RCF_BEGIN_INHERITED_0
/// Marks the beginning of the definition of a RCF interface.
/// \param InterfaceT Interface name (symbolic).
/// \param Name Interface name (string). If "", then the name will be auto generated from the symbolic name.
#define RCF_BEGIN_INHERITED_0(InterfaceT, Name)                                                         \
    RCF_BEGIN_IMPL_PRELUDE(InterfaceT, Name)                                                            \
    RCF_BEGIN_IMPL_INHERITED_0(InterfaceT, Name)                                                        \
    RCF_BEGIN_IMPL_POSTLUDE(InterfaceT, Name)

// RCF_BEGIN_INHERITED_1
/// Marks the beginning of the definition of a inherited RCF interface.
/// \param InterfaceT Interface name (symbolic).
/// \param Name Interface name (string). If "", then the name will be auto generated from the symbolic name.
/// \param InheritT Interface to derive from. May be a generic C++ class, for instance an abstract base class, or a RCF interface.
#define RCF_BEGIN_INHERITED_1(InterfaceT, Name, InheritT1)                                              \
    RCF_BEGIN_IMPL_PRELUDE(InterfaceT, Name)                                                            \
    RCF_BEGIN_IMPL_INHERITED_1(InterfaceT, Name, InheritT1)                                             \
    RCF_BEGIN_IMPL_POSTLUDE(InterfaceT, Name)

// RCF_BEGIN_INHERITED_2
/// Marks the beginning of the definition of a inherited RCF interface.
/// \param InterfaceT Interface name (symbolic).
/// \param Name Interface name (string). If "", then the name will be auto generated from the symbolic name.
/// \param InheritT1 First interface to derive from. May be a generic C++ class, for instance an abstract base class, or a RCF interface.
/// \param InheritT2 Second interface to derive from. May be a generic C++ class, for instance an abstract base class, or a RCF interface.
#define RCF_BEGIN_INHERITED_2(InterfaceT, Name, InheritT1, InheritT2)                                   \
    RCF_BEGIN_IMPL_PRELUDE(InterfaceT, Name)                                                            \
    RCF_BEGIN_IMPL_INHERITED_2(InterfaceT, Name, InheritT1, InheritT2)                                  \
    RCF_BEGIN_IMPL_POSTLUDE(InterfaceT, Name)

// RCF_BEGIN_IMPL_PRELUDE
#define RCF_BEGIN_IMPL_PRELUDE(InterfaceT, Name)                                                        \
                                                                                                        \
    template<typename T>                                                                                \
    class RcfClient;                                                                                    \
                                                                                                        \
    class InterfaceT                                                                                    \
    {                                                                                                   \
    public:                                                                                             \
        typedef RcfClient<InterfaceT> RcfClient;                                                        \
    };                                                                                                  \
                                                                                                        \
    inline std::string RCF_getInterfaceName(InterfaceT *)                                               \
    {                                                                                                   \
        return std::string(Name) == "" ? #InterfaceT : Name;                                            \
    }

// RCF_BEGIN_IMPL_INHERITED_0
#define RCF_BEGIN_IMPL_INHERITED_0(InterfaceT, Name)                                                    \
    template<>                                                                                          \
    class RcfClient< InterfaceT > :                                                                     \
        public virtual ::RCF::I_RcfClient                                                               \
    {                                                                                                   \
    private:                                                                                            \
        template<typename DerefPtrT>                                                                    \
        void registerInvokeFunctors(::RCF::InvokeFunctorMap &invokeFunctorMap, DerefPtrT derefPtr)      \
        {                                                                                               \
            ::RCF::registerInvokeFunctors(*this, invokeFunctorMap, derefPtr);                           \
        }

// RCF_BEGIN_IMPL_INHERITED_1
#define RCF_BEGIN_IMPL_INHERITED_1(InterfaceT, Name, InheritT1)                                         \
    template<>                                                                                          \
    class RcfClient< InterfaceT > :                                                                     \
        public virtual ::RCF::I_RcfClient,                                                                      \
        public virtual ::RCF::ToDeriveFrom<InheritT1>::type                                                     \
    {                                                                                                   \
    private:                                                                                            \
        template<typename DerefPtrT>                                                                    \
        void registerInvokeFunctors(::RCF::InvokeFunctorMap &invokeFunctorMap, DerefPtrT derefPtr)      \
        {                                                                                               \
            ::RCF::registerInvokeFunctors(*this, invokeFunctorMap, derefPtr);                           \
            ::RCF::RegisterInvokeFunctors< typename ::RCF::HasRcfClient<InheritT1>::type, InheritT1 >()(*this, invokeFunctorMap, derefPtr); \
        }

// RCF_BEGIN_IMPL_INHERITED_2
#define RCF_BEGIN_IMPL_INHERITED_2(InterfaceT, Name, InheritT1, InheritT2)                              \
    template<>                                                                                          \
    class RcfClient< InterfaceT > :                                                                     \
        public virtual ::RCF::I_RcfClient,                                                                      \
        public virtual ::RCF::ToDeriveFrom<InheritT1>::type,                                                    \
        public virtual ::RCF::ToDeriveFrom<InheritT2>::type                                                     \
    {                                                                                                   \
    private:                                                                                            \
        template<typename DerefPtrT>                                                                    \
        void registerInvokeFunctors(::RCF::InvokeFunctorMap &invokeFunctorMap, DerefPtrT derefPtr)      \
        {                                                                                               \
            ::RCF::registerInvokeFunctors(*this, invokeFunctorMap, derefPtr);                           \
            ::RCF::RegisterInvokeFunctors< typename ::RCF::HasRcfClient<InheritT1>::type, InheritT1 >()(*this, invokeFunctorMap, derefPtr); \
            ::RCF::RegisterInvokeFunctors< typename ::RCF::HasRcfClient<InheritT2>::type, InheritT2 >()(*this, invokeFunctorMap, derefPtr); \
        }

// RCF_BEGIN_IMPL_POSTLUDE
#define RCF_BEGIN_IMPL_POSTLUDE(InterfaceT, Name)                                                       \
    public:                                                                                             \
                                                                                                        \
        RcfClient()                                                                                     \
        {                                                                                               \
            mClientStubPtr.reset( new ::RCF::ClientStub(::RCF::getInterfaceName<InterfaceT>()) );       \
        }                                                                                               \
                                                                                                        \
        template<typename DerefPtrT>                                                                    \
        RcfClient(::RCF::ServerStubPtr serverStubPtr, DerefPtrT derefPtr)                               \
        {                                                                                               \
            serverStubPtr->registerInvokeFunctors(*this, derefPtr);                                     \
            mServerStubPtr = serverStubPtr;                                                             \
        }                                                                                               \
                                                                                                        \
        RcfClient(const ::RCF::I_Endpoint &endpoint)                                                    \
        {                                                                                               \
            mClientStubPtr.reset( new ::RCF::ClientStub(::RCF::getInterfaceName<InterfaceT>()) );       \
            mClientStubPtr->setEndpoint(endpoint);                                                      \
        }                                                                                               \
                                                                                                        \
        RcfClient( ::RCF::ClientTransportAutoPtr clientTransportAutoPtr )                               \
        {                                                                                               \
            mClientStubPtr.reset( new ::RCF::ClientStub(::RCF::getInterfaceName<InterfaceT>()) );       \
            mClientStubPtr->setTransport(clientTransportAutoPtr);                                       \
        }                                                                                               \
                                                                                                        \
        RcfClient( const ::RCF::ClientStub &clientStub )                                                \
        {                                                                                               \
            mClientStubPtr.reset( new ::RCF::ClientStub(clientStub) );                                  \
            mClientStubPtr->setServerBindingName(::RCF::getInterfaceName<InterfaceT>());                \
        }                                                                                               \
                                                                                                        \
    public:                                                                                             \
        ::RCF::ClientStub &getClientStub()                                                              \
        {                                                                                               \
            return *mClientStubPtr;                                                                     \
        }                                                                                               \
                                                                                                        \
    private:                                                                                            \
        ::RCF::ServerStub &getServerStub()                                                              \
        {                                                                                               \
            return *mServerStubPtr;                                                                     \
        }                                                                                               \
                                                                                                        \
    public:                                                                                             \
        template<typename Archive>                                                                      \
        void serialize(Archive &ar, const unsigned int)                                                 \
        {                                                                                               \
            ar & getClientStub();                                                                \
        }                                                                                               \
                                                                                                        \
    private:                                                                                            \
                                                                                                        \
        template<typename T, typename U>                                                                \
        void invoke(const T &, ::RCF::SerializationProtocolIn &, ::RCF::SerializationProtocolOut &, const U &)  \
        {                                                                                               \
            throw ::RCF::ServerStubException("dispatch id does not exist");                             \
        }                                                                                               \
                                                                                                        \
        ::RCF::ClientStubPtr mClientStubPtr;                                                            \
        ::RCF::ServerStubPtr mServerStubPtr;                                                            \
        friend class ::RCF::StubAccess;                                                                 \
        typedef RcfClient< InterfaceT > ThisT;                                                          \
        typedef ::RCF::Dummy<ThisT> DummyThisT;                                                         \
        friend Meta::False RCF_make_next_dispatch_id_func(DummyThisT *, ThisT *,...);                   \
    public:                                                                                             \
        typedef InterfaceT Interface;


// RCF_END
/// Marks the end of the definition of a RCF interface.
/// \param InterfaceT Symbolic name of the interface
#define RCF_END( InterfaceT )                                                                           \
    };                                                                                                  \
                                                                                                        \
    template<typename ImplementationT, typename ImplementationPtrT>                                     \
    inline boost::shared_ptr< ::RCF::I_RcfClient>                                                       \
    RCF_createServerStub(InterfaceT *, ImplementationT *, ImplementationPtrT px)                        \
    {                                                                                                   \
        return boost::shared_ptr< RcfClient<InterfaceT> >(                                              \
            new RcfClient<InterfaceT>(                                                                  \
                ::RCF::ServerStubPtr(new ::RCF::ServerStub()),                                          \
                px));                                                                                   \
    }

                                                    
// RCF_METHOD_R0
/// Defines a member function of an interface, having non-void return type and no arguments.
/// \param R Return type.
/// \param func Function name.
#define RCF_METHOD_R0(R,func)                        RCF_METHOD_R0_(R,func, RCF_MAKE_UNIQUE_ID(func, R0))
#define RCF_METHOD_R0_(R, func, id)                                                                     \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func()                                                                                    \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics());                              \
            }                                                                                           \
            R func(RCF::RemoteCallSemantics rcs)                                                        \
            {                                                                                           \
                return ::RCF::ClientMarshal< R >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val);    \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::OutReturnValue< R >(out, t.func());                                         \
            }



// RCF_METHOD_R1
/// Defines a member function of an interface, having non-void return type and one argument.
/// \param R Return type.
/// \param func Function name.
/// \param A1 Type of first argument.
#define RCF_METHOD_R1(R,func,A1)                        RCF_METHOD_R1_(R,func,A1, RCF_MAKE_UNIQUE_ID(func, R1))
#define RCF_METHOD_R1_(R,func,A1,id)                                                                    \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func(A1 a1)                                                                               \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics(), a1);                          \
            }                                                                                           \
            R func(::RCF::RemoteCallSemantics rcs, A1 a1)                                               \
            {                                                                                           \
                return ::RCF::ClientMarshal< R,A1 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1);     \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::OutReturnValue< R >(out, t.func(arg1.get()));                               \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
            }

// RCF_METHOD_R2
/// Defines a member function of an interface, having non-void return type and two arguments.
/// \param R Return type.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
#define RCF_METHOD_R2(R,func,A1,A2)                        RCF_METHOD_R2_(R,func,A1,A2, RCF_MAKE_UNIQUE_ID(func, R2))
#define RCF_METHOD_R2_(R,func,A1,A2,id)                                                                 \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func(A1 a1, A2 a2)                                                                        \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics(), a1, a2);                      \
            }                                                                                           \
            R func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2)                                        \
            {                                                                                           \
                return ::RCF::ClientMarshal< R,A1,A2 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2);  \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::OutReturnValue< R >(out, t.func(arg1.get(), arg2.get()));                   \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
            }


// RCF_METHOD_R3
/// Defines a member function of an interface, having non-void return type and three arguments.
/// \param R Return type.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
#define RCF_METHOD_R3(R,func,A1,A2,A3)                        RCF_METHOD_R3_(R,func,A1,A2,A3, RCF_MAKE_UNIQUE_ID(func, R3))
#define RCF_METHOD_R3_(R,func,A1,A2,A3,id)                                                              \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func(A1 a1, A2 a2, A3 a3)                                                                 \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3);                  \
            }                                                                                           \
            R func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3)                                 \
            {                                                                                           \
                return ::RCF::ClientMarshal< R,A1,A2,A3 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3);   \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::OutReturnValue< R >(out, t.func(arg1.get(), arg2.get(), arg3.get()));       \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
            }

// RCF_METHOD_R4
/// Defines a member function of an interface, having non-void return type and four arguments.
/// \param R Return type.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
/// \param A4 Type of fourth argument.
#define RCF_METHOD_R4(R,func,A1,A2,A3,A4)                        RCF_METHOD_R4_(R,func,A1,A2,A3,A4, RCF_MAKE_UNIQUE_ID(func, R4))
#define RCF_METHOD_R4_(R,func,A1,A2,A3,A4,id)                                                           \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func(A1 a1, A2 a2, A3 a3, A4 a4)                                                          \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3, a4);              \
            }                                                                                           \
            R func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3, A4 a4 )                         \
            {                                                                                           \
                return ::RCF::ClientMarshal< R,A1,A2,A3,A4 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3, a4);    \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::InParameter< A4 > arg4(in);                                                 \
                ::RCF::IDL::OutReturnValue< R >(out, t.func(arg1.get(), arg2.get(), arg3.get(), arg4.get()));    \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
                ::RCF::IDL::OutParameter< A4 >(arg4, out);                                              \
            }

// RCF_METHOD_R5
/// Defines a member function of an interface, having non-void return type and five arguments.
/// \param R Return type.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
/// \param A4 Type of fourth argument.
/// \param A5 Type of fifth argument.
#define RCF_METHOD_R5(R,func,A1,A2,A3,A4,A5)                        RCF_METHOD_R5_(R,func,A1,A2,A3,A4,A5, RCF_MAKE_UNIQUE_ID(func, R5))
#define RCF_METHOD_R5_(R,func,A1,A2,A3,A4,A5, id)                                                       \
        public:                                                                                         \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            R func(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)                                                   \
            {                                                                                           \
                return func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3, a4, a5);          \
            }                                                                                           \
            R func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)                   \
            {                                                                                           \
                return ::RCF::ClientMarshal< R,A1,A2,A3,A4,A5 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3, a4, a5);  \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::InParameter< A4 > arg4(in);                                                 \
                ::RCF::IDL::InParameter< A5 > arg5(in);                                                 \
                ::RCF::IDL::OutReturnValue< R >(out, t.func(arg1.get(), arg2.get(), arg3.get(), arg4.get(), arg5.get()));   \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
                ::RCF::IDL::OutParameter< A4 >(arg4, out);                                              \
                ::RCF::IDL::OutParameter< A5 >(arg5, out);                                              \
            }


// RCF_METHOD_V0
/// Defines a member function of an interface, having void return type and no arguments.
/// \param R Return type - must be void.
/// \param func Function name.
#define RCF_METHOD_V0(R,func)                        RCF_METHOD_V0_(R,func, RCF_MAKE_UNIQUE_ID(func, V0))
#define RCF_METHOD_V0_(R,func, id)                                                                      \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func()                                                                                 \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics());                                     \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs)                                                   \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void>()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val);    \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(), 0));                                       \
            }

// RCF_METHOD_V1
/// Defines a member function of an interface, having void return type and one argument.
/// \param R Return type - must be void
/// \param func Function name.
/// \param A1 Type of first argument.
#define RCF_METHOD_V1(R,func,A1)                        RCF_METHOD_V1_(R,func,A1, RCF_MAKE_UNIQUE_ID(func, V1))
#define RCF_METHOD_V1_(R,func,A1, id)                                                                   \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func(A1 a1)                                                                            \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics(), a1);                                 \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs, A1 a1)                                            \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void, A1 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1);   \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(arg1.get()), 0));                             \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
            }


// RCF_METHOD_V2
/// Defines a member function of an interface, having void return type and two arguments.
/// \param R Return type - must be void.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
#define RCF_METHOD_V2(R,func,A1,A2)                        RCF_METHOD_V2_(R,func,A1,A2, RCF_MAKE_UNIQUE_ID(func, V2))
#define RCF_METHOD_V2_(R,func,A1,A2, id)                                                                \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func(A1 a1, A2 a2)                                                                     \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics(), a1, a2);                             \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2)                                     \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void, A1, A2 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2);   \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(arg1.get(), arg2.get()), 0));                 \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
            }


// RCF_METHOD_V3
/// Defines a member function of an interface, having void return type and three arguments.
/// \param R Return type - must be void.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
#define RCF_METHOD_V3(R,func,A1,A2,A3)                        RCF_METHOD_V3_(R,func,A1,A2,A3, RCF_MAKE_UNIQUE_ID(func, V3))
#define RCF_METHOD_V3_(R,func,A1,A2,A3, id)                                                             \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func(A1 a1, A2 a2, A3 a3)                                                              \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3);                         \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3)                              \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void, A1, A2, A3 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3);   \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(arg1.get(), arg2.get(), arg3.get()), 0));     \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
            }
        
// RCF_METHOD_V4
/// Defines a member function of an interface, having void return type and four arguments.
/// \param R Return type - must be void.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
/// \param A4 Type of fourth argument.
#define RCF_METHOD_V4(R,func,A1,A2,A3,A4)                        RCF_METHOD_V4_(R,func,A1,A2,A3,A4, RCF_MAKE_UNIQUE_ID(func, V4))
#define RCF_METHOD_V4_(R,func,A1,A2,A3,A4, id)                                                          \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func(A1 a1, A2 a2, A3 a3, A4 a4)                                                       \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3, a4);                     \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3, A4 a4)                       \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void, A1, A2, A3, A4 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3, a4);   \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::InParameter< A4 > arg4(in);                                                 \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(arg1.get(), arg2.get(), arg3.get(), arg4.get()), 0)); \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
                ::RCF::IDL::OutParameter< A4 >(arg4, out);                                              \
            }

// RCF_METHOD_V5
/// Defines a member function of an interface, having void return type and five arguments.
/// \param R Return type - must be void.
/// \param func Function name.
/// \param A1 Type of first argument.
/// \param A2 Type of second argument.
/// \param A3 Type of third argument.
/// \param A4 Type of fourth argument.
/// \param A5 Type of fifth argument.
#define RCF_METHOD_V5(R,func,A1,A2,A3,A4,A5)                        RCF_METHOD_V5_(R,func,A1,A2,A3,A4,A5, RCF_MAKE_UNIQUE_ID(func, V5))
#define RCF_METHOD_V5_(R,func,A1,A2,A3,A4,A5, id)                                                       \
        public:                                                                                         \
            BOOST_STATIC_ASSERT(( boost::is_same<R, void>::value ));                                    \
            RCF_MAKE_NEXT_DISPATCH_ID(id);                                                              \
            void func(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)                                                \
            {                                                                                           \
                func(getClientStub().getDefaultCallingSemantics(), a1, a2, a3, a4, a5);                 \
            }                                                                                           \
            void func(::RCF::RemoteCallSemantics rcs, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)                \
            {                                                                                           \
                ::RCF::ClientMarshal< RCF::Void, A1, A2, A3, A4, A5 >()(getClientStub(), rcs, ::RCF::getInterfaceName<Interface>(), id::Val, a1, a2, a3, a4, a5);    \
            }                                                                                           \
                                                                                                        \
        private:                                                                                        \
            template<typename T>                                                                        \
            void invoke(                                                                                \
                const id &,                                                                             \
                ::RCF::SerializationProtocolIn &in,                                                     \
                ::RCF::SerializationProtocolOut &out,                                                   \
                T &t)                                                                                   \
            {                                                                                           \
                ::RCF::IDL::InParameter< A1 > arg1(in);                                                 \
                ::RCF::IDL::InParameter< A2 > arg2(in);                                                 \
                ::RCF::IDL::InParameter< A3 > arg3(in);                                                 \
                ::RCF::IDL::InParameter< A4 > arg4(in);                                                 \
                ::RCF::IDL::InParameter< A5 > arg5(in);                                                 \
                ::RCF::IDL::OutReturnValue<>(out, (t.func(arg1.get(), arg2.get(), arg3.get(), arg4.get(), arg5.get()), 0)); \
                ::RCF::IDL::OutParameter< A1 >(arg1, out);                                              \
                ::RCF::IDL::OutParameter< A2 >(arg2, out);                                              \
                ::RCF::IDL::OutParameter< A3 >(arg3, out);                                              \
                ::RCF::IDL::OutParameter< A4 >(arg4, out);                                              \
                ::RCF::IDL::OutParameter< A5 >(arg5, out);                                              \
            }


// RCF_MAKE_UNIQUE_ID
#define RCF_MAKE_UNIQUE_ID(func, sig)                       RCF_MAKE_UNIQUE_ID_(func, sig, __LINE__)
#define RCF_MAKE_UNIQUE_ID_(func, sig, __LINE__)            RCF_MAKE_UNIQUE_ID__(func, sig, __LINE__)
#define RCF_MAKE_UNIQUE_ID__(func, sig, Line)               rcf_unique_id_##func##_##sig##_##Line

// RCF_MAKE_NEXT_DISPATCH_ID
#define RCF_MAKE_NEXT_DISPATCH_ID(next_dispatch_id)                                                                                                 \
    typedef Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 0> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 1> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 2> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 3> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 4> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 5> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 6> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 7> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 8> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int< 9> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<10> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<11> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<12> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<13> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<14> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<15> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<16> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<17> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<18> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<19> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<20> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<21> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<22> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<23> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Select< Meta::Bool< sizeof(RCF_make_next_dispatch_id_func((DummyThisT *) 0, (ThisT *) 0, (Meta::Int<24> *) 0)) == sizeof(Meta::True) >::Val,    \
            Meta::Int<25>,                          \
            Meta::Int<24> >::Val,                   \
            Meta::Int<23> >::Val,                   \
            Meta::Int<22> >::Val,                   \
            Meta::Int<21> >::Val,                   \
            Meta::Int<20> >::Val,                   \
            Meta::Int<19> >::Val,                   \
            Meta::Int<18> >::Val,                   \
            Meta::Int<17> >::Val,                   \
            Meta::Int<16> >::Val,                   \
            Meta::Int<15> >::Val,                   \
            Meta::Int<14> >::Val,                   \
            Meta::Int<13> >::Val,                   \
            Meta::Int<12> >::Val,                   \
            Meta::Int<11> >::Val,                   \
            Meta::Int<10> >::Val,                   \
            Meta::Int< 9> >::Val,                   \
            Meta::Int< 8> >::Val,                   \
            Meta::Int< 7> >::Val,                   \
            Meta::Int< 6> >::Val,                   \
            Meta::Int< 5> >::Val,                   \
            Meta::Int< 4> >::Val,                   \
            Meta::Int< 3> >::Val,                   \
            Meta::Int< 2> >::Val,                   \
            Meta::Int< 1> >::Val,                   \
            Meta::Int< 0> >::Val next_dispatch_id;  \
    friend Meta::True RCF_make_next_dispatch_id_func(DummyThisT *, ThisT *, next_dispatch_id *)

#endif // ! INCLUDE_RCF_IDL_HPP

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jarl Lindrud

Australia Australia
Software developer, ex-resident of Sweden and now living in Canberra, Australia, working on distributed C++ applications. Jarl enjoys programming, but prefers skiing and playing table tennis. He derives immense satisfaction from referring to himself in third person.

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 25 Oct 2011
Article Copyright 2005 by Jarl Lindrud
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid