Loading...
Searching...
No Matches
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
9struct DataStreamInput;
10struct DataStreamOutput;
11
12namespace Scenario
13{
14class IntervalModel;
15namespace Command
16{
23class HideRack final : public score::Command
24{
25 SCORE_COMMAND_DECL(CommandFactoryName(), HideRack, "Hide rack")
26public:
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
32protected:
33 void serializeImpl(DataStreamInput&) const override;
34 void deserializeImpl(DataStreamOutput&) override;
35
36private:
38};
39}
40}
The Path class is a typesafe wrapper around ObjectPath.
Definition Path.hpp:52
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:13
Definition DataStreamHelpers.hpp:99
Definition DataStreamHelpers.hpp:103
Definition DocumentContext.hpp:18