2 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
3 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
4 // Stefan Bund <g0dil@berlios.de>
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the
18 // Free Software Foundation, Inc.,
19 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 \brief Route public header */
28 #include <boost/type_traits.hpp>
31 //#include "Route.mpp"
32 ///////////////////////////////hh.p////////////////////////////////////////
40 void autoThrottling(bool state); ///< Change automatic throttle notification forwarding
41 /**< By default, throttle notifications are automatically
42 forwarded from active to passive connectors. This may
43 be disabled by setting the authoThrottling state to \c
46 Routing from/to an event to/from a passive connector
47 will automatically create throttling notifications on
48 the connector whenever the event is disabled. Routing
49 form/to an event to/from an active connector will
50 disable the event whenever a throttling notification
51 comes in. Respective for unthrottle notifications.
53 \param[in] state New throttle forwarding state
55 \implementation This class will be implemented using a
56 baseclass, this template and several
57 specializations. However, this is an implementation
58 detail which does not affect the exposed
62 RouteBase(module::Module & module);
65 module::Module * module_;
75 /** \brief Route descriptor
77 Route instances are created by Module::route statements. The Route class provides an
78 interface to manipulate the flow processing.
80 template <class Source, class Target>
82 : public detail::RouteImplementation< boost::is_base_of<EventDescriptor,Source>::value,
83 boost::is_base_of<EventDescriptor,Target>::value >
86 typedef detail::RouteImplementation<
87 boost::is_base_of<EventDescriptor,Source>::value,
88 boost::is_base_of<EventDescriptor,Target>::value > Implementation;
90 Route(module::Module & module, Source & source, Target & target);
92 friend class module::Module;
97 ///////////////////////////////hh.e////////////////////////////////////////
107 // c-file-style: "senf"
108 // indent-tabs-mode: nil
109 // ispell-local-dictionary: "american"
110 // compile-command: "scons -u test"
111 // comment-column: 40