HideRackInViewModel.hpp
1 #pragma once
2 #include <Scenario/Commands/ScenarioCommandFactory.hpp>
3 
4 #include <score/command/Command.hpp>
5 #include <score/model/Identifier.hpp>
6 #include <score/model/path/Path.hpp>
7 #include <score/tools/std/Optional.hpp>
8 
9 struct DataStreamInput;
10 struct DataStreamOutput;
11 
12 namespace Scenario
13 {
14 class IntervalModel;
15 namespace Command
16 {
23 class HideRack final : public score::Command
24 {
25  SCORE_COMMAND_DECL(CommandFactoryName(), HideRack, "Hide rack")
26 public:
27  HideRack(const Scenario::IntervalModel& interval);
28 
29  void undo(const score::DocumentContext& ctx) const override;
30  void redo(const score::DocumentContext& ctx) const override;
31 
32 protected:
33  void serializeImpl(DataStreamInput&) const override;
34  void deserializeImpl(DataStreamOutput&) override;
35 
36 private:
38 };
39 }
40 }
The HideRackInViewModel class.
Definition: HideRackInViewModel.hpp:24
Definition: IntervalModel.hpp:50
The Command class.
Definition: Command.hpp:34
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: DataStreamHelpers.hpp:99
Definition: DataStreamHelpers.hpp:103
Definition: DocumentContext.hpp:18