#include <transaction.h>

Public Member Functions | |
| ScopedRomTransaction (Rom &rom) | |
| ScopedRomTransaction (const ScopedRomTransaction &)=delete | |
| ScopedRomTransaction & | operator= (const ScopedRomTransaction &)=delete |
| ~ScopedRomTransaction () | |
| void | Commit () |
| void | Rollback () |
Private Attributes | |
| Rom & | rom_ |
| std::vector< uint8_t > | data_ |
| std::string | filename_ |
| bool | dirty_ = false |
| bool | committed_ = false |
Definition at line 170 of file transaction.h.
|
inlineexplicit |
Definition at line 172 of file transaction.h.
|
delete |
|
inline |
Definition at line 181 of file transaction.h.
References committed_, and Rollback().

|
delete |
|
inline |
Definition at line 187 of file transaction.h.
References committed_.
Referenced by yaze::editor::MessageEditor::ApplySavePlan(), yaze::cli::handlers::DungeonSetRoomPropertyCommandHandler::Execute(), yaze::cli::handlers::MessageImportBundleCommandHandler::Execute(), yaze::cli::handlers::MessageWriteCommandHandler::Execute(), yaze::cli::handlers::anonymous_namespace{dungeon_edit_commands.cc}::MutateAndSaveRomWithBackup(), yaze::editor::DungeonEditorV2::RunWithSaveTransaction(), yaze::editor::EditorManager::SaveRomInternal(), yaze::cli::handlers::anonymous_namespace{dungeon_collision_commands.cc}::SerializeAndPersistImport(), and yaze::editor::WriteAllTextData().
|
inline |
Definition at line 189 of file transaction.h.
References committed_, data_, dirty_, yaze::Rom::Expand(), filename_, yaze::Rom::mutable_vector(), rom_, yaze::Rom::set_dirty(), and yaze::Rom::set_filename().
Referenced by ~ScopedRomTransaction().

|
private |
Definition at line 202 of file transaction.h.
Referenced by Rollback().
|
private |
Definition at line 203 of file transaction.h.
Referenced by Rollback().
|
private |
Definition at line 204 of file transaction.h.
Referenced by Rollback().
|
private |
Definition at line 205 of file transaction.h.
Referenced by Rollback().
|
private |
Definition at line 206 of file transaction.h.
Referenced by Commit(), Rollback(), and ~ScopedRomTransaction().