yaze
0.2.0
Link to the Past ROM Editor
Loading...
Searching...
No Matches
history_manager.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
2
#define YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
3
4
#include <cstddef>
5
#include <stack>
6
#include <vector>
7
8
namespace
yaze
{
9
namespace
app {
10
namespace
editor {
11
12
// System history manager, undo and redo.
13
class
HistoryManager
{
14
public
:
15
HistoryManager
() =
default
;
16
~HistoryManager
() =
default
;
17
18
void
Add
(
const
char
* data);
19
void
Undo
();
20
void
Redo
();
21
22
private
:
23
std::vector<const char*>
history_
;
24
std::stack<const char*>
undo_
;
25
std::stack<const char*>
redo_
;
26
};
27
28
}
// namespace editor
29
}
// namespace app
30
}
// namespace yaze
31
32
#endif
// YAZE_APP_EDITOR_SYSTEM_HISTORY_MANAGER_H
yaze::app::editor::HistoryManager
Definition
history_manager.h:13
yaze::app::editor::HistoryManager::redo_
std::stack< const char * > redo_
Definition
history_manager.h:25
yaze::app::editor::HistoryManager::~HistoryManager
~HistoryManager()=default
yaze::app::editor::HistoryManager::HistoryManager
HistoryManager()=default
yaze::app::editor::HistoryManager::undo_
std::stack< const char * > undo_
Definition
history_manager.h:24
yaze::app::editor::HistoryManager::Undo
void Undo()
yaze::app::editor::HistoryManager::Redo
void Redo()
yaze::app::editor::HistoryManager::history_
std::vector< const char * > history_
Definition
history_manager.h:23
yaze::app::editor::HistoryManager::Add
void Add(const char *data)
yaze
Definition
common.cc:22
src
app
editor
system
history_manager.h
Generated by
1.12.0