moved statistics classes from NetEmu to SENF
[senf.git] / PPI / Jack.cci
1 // $Id$
2 //
3 // Copyright (C) 2009 
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
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 Jack inline non-template implementation */
25
26 //#include "Jack.ih"
27
28 // Custom includes
29 #include "Setup.hh"
30
31 #define prefix_ inline
32 ///////////////////////////////cci.p///////////////////////////////////////
33
34 prefix_ senf::ppi::connector::GenericActiveInputJack::
35 GenericActiveInputJack(GenericActiveInput & input)
36     : input_ (input)
37 {}
38
39 prefix_ senf::ppi::connector::GenericActiveInput &
40 senf::ppi::connector::GenericActiveInputJack::connector()
41 {
42     return input_;
43 }
44
45 prefix_ senf::ppi::connector::GenericActiveOutputJack::
46 GenericActiveOutputJack(GenericActiveOutput & output)
47     : output_ (output)
48 {}
49
50 prefix_ senf::ppi::connector::GenericActiveOutput &
51 senf::ppi::connector::GenericActiveOutputJack::connector()
52 {
53     return output_;
54 }
55
56 prefix_ senf::ppi::connector::GenericPassiveInputJack::
57 GenericPassiveInputJack(GenericPassiveInput & input)
58     : input_ (input)
59 {}
60
61 prefix_ senf::ppi::connector::GenericPassiveInput &
62 senf::ppi::connector::GenericPassiveInputJack::connector()
63 {
64     return input_;
65 }
66
67 prefix_ senf::ppi::connector::GenericPassiveOutputJack::
68 GenericPassiveOutputJack(GenericPassiveOutput & output)
69     : output_ (output)
70 {}
71
72 prefix_ senf::ppi::connector::GenericPassiveOutput &
73 senf::ppi::connector::GenericPassiveOutputJack::connector()
74 {
75     return output_;
76 }
77
78 prefix_ void senf::ppi::connect(connector::GenericActiveOutputJack & source,
79                                 connector::GenericPassiveInputJack & target)
80 {
81     connect(source.connector(), target.connector());
82 }
83
84 prefix_ void senf::ppi::connect(connector::GenericPassiveOutputJack & source,
85                                 connector::GenericActiveInputJack & target)
86 {
87     connect(source.connector(), target.connector());
88 }
89
90 prefix_ void senf::ppi::connect(connector::GenericActiveOutputJack & source,
91                                 connector::GenericPassiveInput & target)
92 {
93     connect(source.connector(), target);
94 }
95
96 prefix_ void senf::ppi::connect(connector::GenericPassiveOutputJack & source,
97                                 connector::GenericActiveInput & target)
98 {
99     connect(source.connector(), target);
100 }
101
102 prefix_ void senf::ppi::connect(connector::GenericActiveOutput & source,
103                                 connector::GenericPassiveInputJack & target)
104 {
105     connect(source, target.connector());
106 }
107
108 prefix_ void senf::ppi::connect(connector::GenericPassiveOutput & source,
109                                 connector::GenericActiveInputJack & target)
110 {
111     connect(source, target.connector());
112 }
113
114 ///////////////////////////////cci.e///////////////////////////////////////
115 #undef prefix_
116
117 \f
118 // Local Variables:
119 // mode: c++
120 // fill-column: 100
121 // comment-column: 40
122 // c-file-style: "senf"
123 // indent-tabs-mode: nil
124 // ispell-local-dictionary: "american"
125 // compile-command: "scons -u test"
126 // End: