LeviLamina
Loading...
Searching...
No Matches
TransactionContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Editor { class ServiceProviderCollection; }
11namespace Editor::Transactions { class IOperation; }
12// clang-format on
13
14namespace Editor::Transactions {
15
17public:
18 // TransactionContext inner types define
19 enum class OperationErrorHandling : int {
20 ContinueOnError = 0,
21 StopOnError = 1,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 TransactionContext& operator=(TransactionContext const&);
39
40public:
41 // member functions
42 // NOLINTBEGIN
44 ::std::string name,
45 ::Editor::Transactions::TransactionContext::OperationErrorHandling errorHandling
46 );
47
48 MCAPI ::Scripting::Result<void> _redo(::Editor::ServiceProviderCollection& serviceProviders) const;
49
50 MCAPI ::Scripting::Result<void> _undo(::Editor::ServiceProviderCollection& serviceProviders) const;
51
52 MCFOLD void addOperation(::std::unique_ptr<::Editor::Transactions::IOperation> operation);
53
54 MCAPI ~TransactionContext();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void*
61 $ctor(::std::string name, ::Editor::Transactions::TransactionContext::OperationErrorHandling errorHandling);
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69};
70
71} // namespace Editor::Transactions
Definition ServiceProviderCollection.h:7
Definition TransactionContext.h:16
Definition Alias.h:14