3#include <Process/Dataflow/CableData.hpp>
4#include <Process/Dataflow/PortType.hpp>
7#include <score/serialization/IsTemplate.hpp>
9#include <ossia/detail/json.hpp>
13#include <score_plugin_scenario_export.h>
27using SerializedCables = std::vector<std::pair<Id<Process::Cable>,
Process::CableData>>;
30SCORE_PLUGIN_SCENARIO_EXPORT
31std::vector<Process::Cable*>
35SCORE_PLUGIN_SCENARIO_EXPORT
40SCORE_PLUGIN_SCENARIO_EXPORT
41SerializedCables serializedCablesFromCableJson(
43 const rapidjson::Document::Array& arr);
44SCORE_PLUGIN_SCENARIO_EXPORT
45SerializedCables serializedCablesFromCableJson(
46 const ObjectPath& old_path,
const rapidjson::Document::Array& arr);
49SCORE_PLUGIN_SCENARIO_EXPORT
54[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
58[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
59restoreCablesWithoutTouchingPorts(
66SCORE_PLUGIN_SCENARIO_EXPORT
void
72SCORE_PLUGIN_SCENARIO_EXPORT
void
77SCORE_PLUGIN_SCENARIO_EXPORT
86SCORE_PLUGIN_SCENARIO_EXPORT
87void unstripCables(
const ObjectPath& new_path, Dataflow::SerializedCables& cables);
92 Process::PortType type;
99[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
100reloadPortsInNewProcess(
101 const std::vector<SavedPort>& m_oldInlets,
102 const std::vector<SavedPort>& m_oldOutlets,
105 std::span<const int> oldInletIds, std::span<const int> oldOutletIds);
110SCORE_PLUGIN_SCENARIO_EXPORT
111QStringList reloadPortsInNewProcess(
112 const std::vector<SavedPort>& m_oldInlets,
117struct is_custom_serialized<Dataflow::SavedPort> : std::true_type
126 s.stream() << tv.name << tv.type << tv.data;
131 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:80
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition CableHelpers.hpp:90
Definition CableData.hpp:18
Definition VisitorInterface.hpp:13
Definition DocumentContext.hpp:18