2015-08-16 21:01:56 +00:00
|
|
|
#ifndef FLOATDIFF_H
|
|
|
|
#define FLOATDIFF_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
#include "DefinitionDiff.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Diff for a FloatNode.
|
|
|
|
*/
|
|
|
|
class DEFINITIONSHARED_EXPORT FloatDiff: public DefinitionDiff
|
|
|
|
{
|
|
|
|
public:
|
2015-08-16 22:29:54 +00:00
|
|
|
FloatDiff(const DefinitionNode *node, double oldvalue, double newvalue);
|
2015-08-16 21:01:56 +00:00
|
|
|
|
|
|
|
inline double getOldValue() const {return oldvalue;}
|
|
|
|
inline double getNewValue() const {return newvalue;}
|
|
|
|
|
|
|
|
private:
|
|
|
|
double oldvalue;
|
|
|
|
double newvalue;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // FLOATDIFF_H
|