3#include <Process/Dataflow/CableData.hpp>
4#include <Process/Dataflow/PortType.hpp>
7#include <score/serialization/IsTemplate.hpp>
9#include <ossia/detail/json.hpp>
11#include <score_plugin_scenario_export.h>
25using SerializedCables = std::vector<std::pair<Id<Process::Cable>,
Process::CableData>>;
28SCORE_PLUGIN_SCENARIO_EXPORT
29std::vector<Process::Cable*>
33SCORE_PLUGIN_SCENARIO_EXPORT
38SCORE_PLUGIN_SCENARIO_EXPORT
39SerializedCables serializedCablesFromCableJson(
41 const rapidjson::Document::Array& arr);
42SCORE_PLUGIN_SCENARIO_EXPORT
43SerializedCables serializedCablesFromCableJson(
44 const ObjectPath& old_path,
const rapidjson::Document::Array& arr);
47SCORE_PLUGIN_SCENARIO_EXPORT
52[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
56[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
57restoreCablesWithoutTouchingPorts(
64SCORE_PLUGIN_SCENARIO_EXPORT
void
70SCORE_PLUGIN_SCENARIO_EXPORT
void
75SCORE_PLUGIN_SCENARIO_EXPORT
84SCORE_PLUGIN_SCENARIO_EXPORT
85void unstripCables(
const ObjectPath& new_path, Dataflow::SerializedCables& cables);
90 Process::PortType type;
97[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
98reloadPortsInNewProcess(
99 const std::vector<SavedPort>& m_oldInlets,
100 const std::vector<SavedPort>& m_oldOutlets,
103 std::span<const int> oldInletIds, std::span<const int> oldOutletIds);
106SCORE_PLUGIN_SCENARIO_EXPORT
107void reloadPortsInNewProcess(
108 const std::vector<SavedPort>& m_oldInlets,
113struct is_custom_serialized<Dataflow::SavedPort> : std::true_type
122 s.stream() << tv.name << tv.type << tv.data;
127 s.stream() >> tv.name >> tv.type >> tv.data;
Definition VisitorInterface.hpp:53
Definition DataStreamVisitor.hpp:27
Definition DataStreamVisitor.hpp:202
The ObjectPath class.
Definition ObjectPath.hpp:37
The Process class.
Definition score-lib-process/Process/Process.hpp:75
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition CableHelpers.hpp:88
Definition CableData.hpp:18
Definition VisitorInterface.hpp:13
Definition DocumentContext.hpp:18