X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FRoute.ih;h=31a4e5b31f8e7785126ace7fc9106633c7b965e2;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=7637d3eff5b05ef482986e1ab33bcaf41ad579f3;hpb=0327b3f303ea2a61d44a30bfaac022874dcf2a0d;p=senf.git diff --git a/PPI/Route.ih b/PPI/Route.ih index 7637d3e..31a4e5b 100644 --- a/PPI/Route.ih +++ b/PPI/Route.ih @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// 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 @@ -23,8 +23,8 @@ /** \file \brief Route internal header */ -#ifndef IH_Route_ -#define IH_Route_ 1 +#ifndef IH_SENF_PPI_Route_ +#define IH_SENF_PPI_Route_ 1 // Custom includes #include @@ -35,6 +35,8 @@ ///////////////////////////////ih.p//////////////////////////////////////// +#ifndef DOXYGEN + namespace senf { namespace ppi { namespace detail { @@ -45,6 +47,8 @@ namespace detail { struct RoutingTraitsImplementation { BOOST_STATIC_ASSERT((boost::is_base_of::value)); + + static bool const event = false; static bool const notifySource = boost::is_base_of< connector::ActiveConnector, Connector>::value; @@ -59,13 +63,13 @@ namespace detail { typedef Connector type; }; -#ifndef DOXYGEN - // RoutingTraits specialization for Event types. Events may be both dataSource or dataTarget but // cannot be notifySource. template struct RoutingTraitsImplementation { + static bool const event = true; + static bool const notifySource = false; static bool const notifyTarget = true; @@ -75,8 +79,6 @@ namespace detail { typedef EventDescriptor type; }; -#endif - // The RoutingTraits give routing related information about the argument type: // - Wether the type is a notifySource or notifyTarget // - Wether the type is dataSource or dataTarget @@ -203,6 +205,8 @@ namespace detail { }}} +#endif + ///////////////////////////////ih.e//////////////////////////////////////// #endif