1// Undo Library
2// Copyright (C) 2015-2016 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef UNDO_COMMAND_H_INCLUDED
8#define UNDO_COMMAND_H_INCLUDED
9#pragma once
10
11namespace undo {
12
13 class UndoCommand {
14 public:
15 virtual ~UndoCommand() { }
16 virtual void undo() = 0;
17 virtual void redo() = 0;
18 virtual void dispose() = 0;
19 };
20
21} // namespace undo
22
23#endif // UNDO_COMMAND_H_INCLUDED
24