DSPatch  v.6.01
Wire.h
1 /************************************************************************
2 DSPatch - The Refreshingly Simple C++ Dataflow Framework
3 Copyright (c) 2012-2019 Marcus Tomlinson
4 
5 This file is part of DSPatch.
6 
7 GNU Lesser General Public License Usage
8 This file may be used under the terms of the GNU Lesser General Public
9 License version 3.0 as published by the Free Software Foundation and
10 appearing in the file LICENSE included in the packaging of this file.
11 Please review the following information to ensure the GNU Lesser
12 General Public License version 3.0 requirements will be met:
13 http://www.gnu.org/copyleft/lgpl.html.
14 
15 Other Usage
16 Alternatively, this file may be used in accordance with the terms and
17 conditions contained in a signed written agreement between you and
18 Marcus Tomlinson.
19 
20 DSPatch is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 ************************************************************************/
24 
25 #pragma once
26 
27 #include <dspatch/Component.h>
28 
29 namespace DSPatch
30 {
31 
32 class Component;
33 
34 namespace internal
35 {
36 
38 
46 struct Wire final
47 {
48  Wire( DSPatch::Component::SPtr const& newFromComponent, int newFromOutput, int newToInput )
49  : fromComponent( newFromComponent )
50  , fromOutput( newFromOutput )
51  , toInput( newToInput )
52  {
53  }
54 
55  DSPatch::Component::SPtr fromComponent;
56  int fromOutput;
57  int toInput;
58 };
59 
60 } // namespace internal
61 } // namespace DSPatch
Connection between two components.
Definition: Wire.h:46