PortSerialization.hpp
1 #pragma once
2 #include <Process/Dataflow/Port.hpp>
3 
4 namespace Process
5 {
6 
7 // Unchecked, low-level functions (directly load from the factory)
8 
9 SCORE_LIB_PROCESS_EXPORT
10 std::unique_ptr<Inlet> load_inlet(DataStreamWriter& wr, QObject* parent);
11 
12 SCORE_LIB_PROCESS_EXPORT
13 std::unique_ptr<Inlet> load_inlet(JSONWriter& wr, QObject* parent);
14 
15 SCORE_LIB_PROCESS_EXPORT
16 std::unique_ptr<Outlet> load_outlet(DataStreamWriter& wr, QObject* parent);
17 
18 SCORE_LIB_PROCESS_EXPORT
19 std::unique_ptr<Outlet> load_outlet(JSONWriter& wr, QObject* parent);
20 
21 // Checked functions: will return a port of the correct type if it the
22 // actual save data differs
23 // (This is to allow upgrading from the old v2.5 save files
24 // which did not have distinct port types)
25 
26 SCORE_LIB_PROCESS_EXPORT
27 std::unique_ptr<ValueInlet> load_value_inlet(DataStreamWriter& wr, QObject* parent);
28 
29 SCORE_LIB_PROCESS_EXPORT
30 std::unique_ptr<ValueInlet> load_value_inlet(JSONWriter& wr, QObject* parent);
31 
32 SCORE_LIB_PROCESS_EXPORT
33 std::unique_ptr<ValueOutlet> load_value_outlet(DataStreamWriter& wr, QObject* parent);
34 
35 SCORE_LIB_PROCESS_EXPORT
36 std::unique_ptr<ValueOutlet> load_value_outlet(JSONWriter& wr, QObject* parent);
37 
38 SCORE_LIB_PROCESS_EXPORT
39 std::unique_ptr<ControlInlet> load_control_inlet(DataStreamWriter& wr, QObject* parent);
40 
41 SCORE_LIB_PROCESS_EXPORT
42 std::unique_ptr<ControlInlet> load_control_inlet(JSONWriter& wr, QObject* parent);
43 
44 SCORE_LIB_PROCESS_EXPORT
45 std::unique_ptr<ControlOutlet>
46 load_control_outlet(DataStreamWriter& wr, QObject* parent);
47 
48 SCORE_LIB_PROCESS_EXPORT
49 std::unique_ptr<ControlOutlet> load_control_outlet(JSONWriter& wr, QObject* parent);
50 
51 SCORE_LIB_PROCESS_EXPORT
52 std::unique_ptr<AudioInlet> load_audio_inlet(DataStreamWriter& wr, QObject* parent);
53 
54 SCORE_LIB_PROCESS_EXPORT
55 std::unique_ptr<AudioInlet> load_audio_inlet(JSONWriter& wr, QObject* parent);
56 
57 SCORE_LIB_PROCESS_EXPORT
58 std::unique_ptr<AudioOutlet> load_audio_outlet(DataStreamWriter& wr, QObject* parent);
59 
60 SCORE_LIB_PROCESS_EXPORT
61 std::unique_ptr<AudioOutlet> load_audio_outlet(JSONWriter& wr, QObject* parent);
62 
63 SCORE_LIB_PROCESS_EXPORT
64 std::unique_ptr<MidiInlet> load_midi_inlet(DataStreamWriter& wr, QObject* parent);
65 
66 SCORE_LIB_PROCESS_EXPORT
67 std::unique_ptr<MidiInlet> load_midi_inlet(JSONWriter& wr, QObject* parent);
68 
69 SCORE_LIB_PROCESS_EXPORT
70 std::unique_ptr<MidiOutlet> load_midi_outlet(DataStreamWriter& wr, QObject* parent);
71 
72 SCORE_LIB_PROCESS_EXPORT
73 std::unique_ptr<MidiOutlet> load_midi_outlet(JSONWriter& wr, QObject* parent);
74 }
Definition: DataStreamVisitor.hpp:202
Definition: JSONVisitor.hpp:423
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324