Loading...
Searching...
No Matches
LoadPresetCommandFactory.hpp
1#pragma once
2#include <Process/Preset.hpp>
3
4#include <score/command/Command.hpp>
5#include <score/document/DocumentContext.hpp>
6#include <score/plugins/Interface.hpp>
7#include <score/plugins/InterfaceList.hpp>
8#include <score/tools/Unused.hpp>
9
10#include <score_lib_process_export.h>
11
12namespace Process
13{
14class ProcessModel;
15class SCORE_LIB_PROCESS_EXPORT LoadPresetCommandFactory : public score::InterfaceBase
16{
17 SCORE_INTERFACE(LoadPresetCommandFactory, "4a1a228c-16af-4647-917e-09cdf63fe167")
18public:
20 virtual bool matches(
21 const Process::ProcessModel& obj, unused_t newval,
22 const score::DocumentContext& ctx) const noexcept
23 = 0;
24 virtual score::Command* make(
25 const Process::ProcessModel& obj, Process::Preset newval,
26 const score::DocumentContext& ctx) const
27 = 0;
28};
29
30class SCORE_LIB_PROCESS_EXPORT LoadPresetCommandFactoryList final
31 : public score::MatchingFactory<LoadPresetCommandFactory>
32{
33public:
35};
36}
Definition LoadPresetCommandFactory.hpp:16
Definition LoadPresetCommandFactory.hpp:32
The Process class.
Definition score-lib-process/Process/Process.hpp:61
The Command class.
Definition Command.hpp:34
Base class for plug-in interfaces.
Definition Interface.hpp:52
Utility class for making a factory interface list.
Definition InterfaceList.hpp:153
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition Preset.hpp:32
Definition ObjectMatches.hpp:6
Definition DocumentContext.hpp:18
Definition Unused.hpp:3