2015-08-16 21:01:56 +00:00
|
|
|
#ifndef DEFINITIONDIFF_H
|
|
|
|
#define DEFINITIONDIFF_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for diffs produced by the definition tree.
|
|
|
|
*
|
|
|
|
* Diffs are used to undo/redo changes.
|
|
|
|
*/
|
2015-11-09 21:30:46 +00:00
|
|
|
class DEFINITIONSHARED_EXPORT DefinitionDiff {
|
|
|
|
public:
|
2015-08-16 22:29:54 +00:00
|
|
|
DefinitionDiff(const DefinitionNode *node);
|
2015-11-20 00:07:31 +00:00
|
|
|
virtual ~DefinitionDiff();
|
2015-08-16 21:01:56 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
inline const std::string &getTypeName() const {
|
|
|
|
return type_name;
|
|
|
|
}
|
|
|
|
inline const std::string &getPath() const {
|
|
|
|
return path;
|
|
|
|
}
|
2015-08-16 21:01:56 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
private:
|
2015-08-16 21:01:56 +00:00
|
|
|
std::string type_name;
|
2015-08-16 22:29:54 +00:00
|
|
|
std::string path;
|
2015-08-16 21:01:56 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // DEFINITIONDIFF_H
|