score
Home
Classes
Namespaces
Files
SetTrigger.hpp
1
#pragma once
2
#include <State/Expression.hpp>
3
4
#include <Scenario/Commands/ScenarioCommandFactory.hpp>
5
6
#include <score/command/Command.hpp>
7
#include <score/model/path/Path.hpp>
8
9
struct
DataStreamInput
;
10
struct
DataStreamOutput
;
11
12
namespace
Scenario
13
{
14
class
TimeSyncModel;
15
namespace
Command
16
{
17
class
SCORE_PLUGIN_SCENARIO_EXPORT
SetTrigger
final :
public
score::Command
18
{
19
SCORE_COMMAND_DECL(CommandFactoryName(),
SetTrigger
,
"Change a trigger"
)
20
public
:
21
SetTrigger
(
const
TimeSyncModel
& tn,
State::Expression
trigger);
22
23
void
undo(
const
score::DocumentContext
& ctx)
const override
;
24
void
redo(
const
score::DocumentContext
& ctx)
const override
;
25
26
protected
:
27
void
serializeImpl(
DataStreamInput
&)
const override
;
28
void
deserializeImpl(
DataStreamOutput
&)
override
;
29
30
private
:
31
Path<TimeSyncModel>
m_path;
32
State::Expression
m_trigger;
33
State::Expression
m_previousTrigger;
34
};
35
}
36
}
Path
The Path class is a typesafe wrapper around ObjectPath.
Definition:
Path.hpp:52
Scenario::Command::SetTrigger
Definition:
SetTrigger.hpp:18
Scenario::TimeSyncModel
Definition:
TimeSyncModel.hpp:34
TreeNode< ExprData >
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