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(
63SCORE_PLUGIN_SCENARIO_EXPORT
void
68SCORE_PLUGIN_SCENARIO_EXPORT
77SCORE_PLUGIN_SCENARIO_EXPORT
78void unstripCables(
const ObjectPath& new_path, Dataflow::SerializedCables& cables);
83 Process::PortType type;
90[[nodiscard]] SCORE_PLUGIN_SCENARIO_EXPORT ossia::small_vector<Process::Cable*, 4>
91reloadPortsInNewProcess(
92 const std::vector<SavedPort>& m_oldInlets,
93 const std::vector<SavedPort>& m_oldOutlets,
98SCORE_PLUGIN_SCENARIO_EXPORT
99void reloadPortsInNewProcess(
100 const std::vector<SavedPort>& m_oldInlets,
105struct is_custom_serialized<Dataflow::SavedPort> : std::true_type
114 s.stream() << tv.name << tv.type << tv.data;
119 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:62
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition CableHelpers.hpp:81
Definition CableData.hpp:18
Definition VisitorInterface.hpp:13
Definition DocumentContext.hpp:18