Loading...
Searching...
No Matches
SnapshotProcess.hpp
1#pragma once
2#include <Scenario/Commands/ScenarioCommandFactory.hpp>
3
4#include <State/Message.hpp>
5
6#include <score/command/AggregateCommand.hpp>
7
8#include <score_plugin_scenario_export.h>
9
10#include <vector>
11
12namespace Process
13{
14class ProcessModel;
15class ControlInlet;
16}
17namespace score
18{
19struct DocumentContext;
20}
21namespace Scenario
22{
23class StateModel;
24namespace Command
25{
27{
28 SCORE_COMMAND_DECL(CommandFactoryName(), SnapshotInState, "Snapshot in state")
29};
30
33SCORE_PLUGIN_SCENARIO_EXPORT void snapshotProcessInState(
34 const StateModel& state, const Process::ProcessModel& process,
35 const score::DocumentContext& ctx);
36
37class Macro;
38
40SCORE_PLUGIN_SCENARIO_EXPORT State::MessageList snapshotMessages(
41 const std::vector<const Process::ProcessModel*>& processes, Macro& m,
42 bool withState = true);
43
44SCORE_PLUGIN_SCENARIO_EXPORT void snapshotProcessesInState(
45 const StateModel& state, const std::vector<const Process::ProcessModel*>& processes,
46 const score::DocumentContext& ctx, bool withState = true);
47
48SCORE_PLUGIN_SCENARIO_EXPORT void snapshotControlInState(
49 const StateModel& state, const Process::ControlInlet& control,
50 const score::DocumentContext& ctx);
51}
52}
Definition Port.hpp:242
The Process class.
Definition score-lib-process/Process/Process.hpp:80
Definition CommandAPI.hpp:28
Definition SnapshotProcess.hpp:27
Definition StateModel.hpp:62
Allows for grouping of multiple commands in a single one.
Definition AggregateCommand.hpp:15
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:83
Definition DocumentContext.hpp:18