paysages3d/src/definition/IntDiff.h

31 lines
499 B
C
Raw Normal View History

#ifndef INTDIFF_H
#define INTDIFF_H
#include "definition_global.h"
#include "DefinitionDiff.h"
namespace paysages {
namespace definition {
/**
* Diff for an IntNode.
*/
class DEFINITIONSHARED_EXPORT IntDiff: public DefinitionDiff
{
public:
IntDiff(const DefinitionNode *node, int oldvalue, int newvalue);
inline int getOldValue() const {return oldvalue;}
inline int getNewValue() const {return newvalue;}
private:
int oldvalue;
int newvalue;
};
}
}
#endif // INTDIFF_H