score
Home
Classes
Namespaces
Files
ScenarioRollbackStrategy.hpp
1
#pragma once
2
#include <score_plugin_scenario_export.h>
3
4
#include <vector>
5
6
namespace
score
7
{
8
struct
DocumentContext;
9
class
Command;
10
}
11
12
// This rollback only undoes creational commands as an optimization
13
struct
ScenarioRollbackStrategy
14
{
15
static
void
16
rollback(
const
score::DocumentContext
& ctx,
const
std::vector<score::Command*>& cmds);
17
};
18
19
struct
SCORE_PLUGIN_SCENARIO_EXPORT
DefaultRollbackStrategy
20
{
21
static
void
22
rollback(
const
score::DocumentContext
& ctx,
const
std::vector<score::Command*>& cmds);
23
};
score
Base toolkit upon which the software is built.
Definition:
Application.cpp:90
DefaultRollbackStrategy
Definition:
ScenarioRollbackStrategy.hpp:20
ScenarioRollbackStrategy
Definition:
ScenarioRollbackStrategy.hpp:14
score::DocumentContext
Definition:
DocumentContext.hpp:18