PPI: Checkin of first compiling (yet not working) version
[senf.git] / PPI / Route.cti
1 // $Id$
2 //
3 // Copyright (C) 2007 
4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
6 //     Stefan Bund <g0dil@berlios.de>
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
23 /** \file
24     \brief Route inline template implementation */
25
26 #include "Route.ih"
27
28 // Custom includes
29
30 #define prefix_ inline
31 ///////////////////////////////cti.p///////////////////////////////////////
32
33 ///////////////////////////////////////////////////////////////////////////
34 // senf::ppi::Route<Source,Target>
35
36 ////////////////////////////////////////
37 // protected members
38
39 template <class Source, class Target>
40 prefix_ senf::ppi::Route<Source,Target>::Route(module::Module & module, Source & source,
41                                                Target & target)
42     : Implementation(module, source, target)
43 {}
44
45 ///////////////////////////////////////////////////////////////////////////
46 // senf::ppi::detail::RouteImplementation<Source,Target,srcEvent,trgEvent>
47
48 ////////////////////////////////////////
49 // protected members
50
51 template <bool srcEvent, bool trgEvent>
52 prefix_ senf::ppi::detail::RouteImplementation<srcEvent,trgEvent>::
53 RouteImplementation(module::Module & module, connector::InputConnector & source,
54                     connector::OutputConnector & target)
55     : RouteBase(module), source_(&source), target_(&target)
56 {}
57
58 ///////////////////////////////////////////////////////////////////////////
59 // senf::ppi::detail::RouteImplementation<true,false>
60
61 ////////////////////////////////////////
62 // protected members
63
64 prefix_ senf::ppi::detail::RouteImplementation<true,false>::
65 RouteImplementation(module::Module & module, EventDescriptor & source,
66                     connector::OutputConnector & target)
67     : RouteBase(module), source_(&source), target_(&target)
68 {}
69
70 ///////////////////////////////////////////////////////////////////////////
71 // senf::ppi::detail::RouteImplementation<false,true>
72
73 ////////////////////////////////////////
74 // protected members
75
76 prefix_ senf::ppi::detail::RouteImplementation<false,true>::
77 RouteImplementation(module::Module & module, connector::InputConnector & source,
78                     EventDescriptor & target)
79 : RouteBase(module), source_(&source), target_(&target)
80 {}
81
82 ///////////////////////////////cti.e///////////////////////////////////////
83 #undef prefix_
84
85 \f
86 // Local Variables:
87 // mode: c++
88 // fill-column: 100
89 // comment-column: 40
90 // c-file-style: "senf"
91 // indent-tabs-mode: nil
92 // ispell-local-dictionary: "american"
93 // compile-command: "scons -u test"
94 // End: