// $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 <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
/** \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 <boost/type_traits/is_convertible.hpp>
///////////////////////////////ih.p////////////////////////////////////////
+#ifndef DOXYGEN
+
namespace senf {
namespace ppi {
namespace detail {
struct RoutingTraitsImplementation
{
BOOST_STATIC_ASSERT((boost::is_base_of<connector::Connector, Connector>::value));
+
+ static bool const event = false;
static bool const notifySource = boost::is_base_of<
connector::ActiveConnector, Connector>::value;
typedef Connector type;
};
-#ifndef DOXYGEN
-
// RoutingTraits specialization for Event types. Events may be both dataSource or dataTarget but
// cannot be notifySource.
template <class Event>
struct RoutingTraitsImplementation<Event,true>
{
+ static bool const event = true;
+
static bool const notifySource = false;
static bool const notifyTarget = true;
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
}}}
+#endif
+
///////////////////////////////ih.e////////////////////////////////////////
#endif