MinMaxCommands.hpp
1 #pragma once
2 #include <Mapping/Commands/MappingCommandFactory.hpp>
3 
4 #include <score/command/PropertyCommand.hpp>
5 
6 namespace Mapping
7 {
8 class ProcessModel;
10 {
11  SCORE_COMMAND_DECL(
12  MappingCommandFactoryName(), SetMappingSourceMin, "Set mapping source minimum")
13 public:
14  SetMappingSourceMin(const ProcessModel& path, double newval)
15  : score::PropertyCommand{path, "sourceMin", newval}
16  {
17  }
18 };
19 
21 {
22  SCORE_COMMAND_DECL(
23  MappingCommandFactoryName(), SetMappingSourceMax, "Set mapping source Maximum")
24 public:
25  SetMappingSourceMax(const ProcessModel& path, double newval)
26  : score::PropertyCommand{path, "sourceMax", newval}
27  {
28  }
29 };
30 
32 {
33  SCORE_COMMAND_DECL(
34  MappingCommandFactoryName(), SetMappingTargetMin, "Set mapping Target minimum")
35 public:
36  SetMappingTargetMin(const ProcessModel& path, double newval)
37  : score::PropertyCommand{path, "targetMin", newval}
38  {
39  }
40 };
41 
43 {
44  SCORE_COMMAND_DECL(
45  MappingCommandFactoryName(), SetMappingTargetMax, "Set mapping Target Maximum")
46 public:
47  SetMappingTargetMax(const ProcessModel& path, double newval)
48  : score::PropertyCommand{path, "targetMax", newval}
49  {
50  }
51 };
52 }
Definition: MappingModel.hpp:27
Definition: MinMaxCommands.hpp:21
Definition: MinMaxCommands.hpp:10
Definition: MinMaxCommands.hpp:43
Definition: MinMaxCommands.hpp:32
The PropertyCommand class.
Definition: PropertyCommand.hpp:21