#9 TI-1: Make undo work with interval actions

- Add creator method to create interval from JSON string
- Add getters for UndoAction fields
- Make Database::modifyInterval work with empty intervals (i.e. ignore them at the respective command)
This commit is contained in:
Thomas Lauf 2018-07-21 22:35:17 +02:00
parent 86258cdb93
commit 29e305033b
6 changed files with 82 additions and 2 deletions

View file

@ -34,6 +34,10 @@ class UndoAction
public:
UndoAction(const std::string&, const std::string&, const std::string&);
std::string getType();
std::string getBefore();
std::string getAfter();
std::string toString ();
private: