score
Home
Classes
Namespaces
Files
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
:
37
Path<Scenario::IntervalModel>
m_path;
38
};
39
}
40
}
Path< Scenario::IntervalModel >
Scenario::Command::HideRack
The HideRackInViewModel class.
Definition:
HideRackInViewModel.hpp:24
Scenario::IntervalModel
Definition:
IntervalModel.hpp:50
score::Command
The Command class.
Definition:
Command.hpp:34
Scenario
Main plug-in of score.
Definition:
score-plugin-dataflow/Dataflow/PortItem.hpp:14
DataStreamInput
Definition:
DataStreamHelpers.hpp:99
DataStreamOutput
Definition:
DataStreamHelpers.hpp:103
score::DocumentContext
Definition:
DocumentContext.hpp:18