#9 TI-1: Add TransactionFactory

- CmdUndo pops last transaction from array (and applies undo actions - tbd)
- TransactionFactory reads contents of undo.data into transaction array
- Transaction array is written back to undo.data
This commit is contained in:
Thomas Lauf 2018-07-19 19:56:10 +02:00
parent d8a4b8ff43
commit 76ee22e7e5
8 changed files with 175 additions and 0 deletions

View file

@ -35,6 +35,11 @@ void Transaction::addUndoAction (
_actions.emplace_back (type, before, after);
}
std::vector<UndoAction> Transaction::getActions ()
{
return _actions;
}
std::string Transaction::toString ()
{
std::string output = "txn:\n";