2 #include <State/Value.hpp>
3 #include <State/ValueSerialization.hpp>
5 #include <Process/Commands/ProcessCommandFactory.hpp>
6 #include <Process/Dataflow/Port.hpp>
7 #include <Process/Process.hpp>
9 #include <score/model/path/PathSerialization.hpp>
15 SCORE_COMMAND_DECL(Process::CommandFactoryName(),
LoadPreset,
"Set a control")
20 , m_old{obj.savePreset()}
21 , m_new{std::move(newval)}
30 m_path.find(ctx).loadPreset(m_old);
35 m_path.find(ctx).loadPreset(m_new);
40 stream << m_path << m_old << m_new;
44 stream >> m_path >> m_old >> m_new;
Definition: LoadPreset.hpp:14
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
The Command class.
Definition: Command.hpp:34
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: DataStreamHelpers.hpp:103
Definition: Preset.hpp:32
Definition: DocumentContext.hpp:18