6#include <QtCore/QString>
20template <
class ValueType>
27 virtual ValueType
GetRounded(
const ValueType& value)
const = 0;
33 virtual bool AreValuesEqual(
const ValueType& value1,
const ValueType& value2)
const = 0;
39 virtual bool IsSmaller(
const ValueType& value1,
const ValueType& value2)
const = 0;
45 virtual bool IsSmallerEqual(
const ValueType& value1,
const ValueType& value2)
const = 0;
50 virtual QString
GetString(
const ValueType& value)
const = 0;
57 virtual bool GetParsed(
const QString& text, ValueType& result)
const = 0;
Interface for all classes providing simply arithmetic functions on predefined data type.
virtual ValueType GetBiggerValue(const ValueType &value) const =0
Return smallest value bigger that specified one.
virtual bool IsSmaller(const ValueType &value1, const ValueType &value2) const =0
Compare two values and check, if first one is smaller as the second.
virtual bool AreValuesEqual(const ValueType &value1, const ValueType &value2) const =0
Compare two values and check, if there are equal.
virtual QString GetString(const ValueType &value) const =0
Get this value as string.
virtual bool IsSmallerEqual(const ValueType &value1, const ValueType &value2) const =0
Compare two values and check, if first one is smaller or equal as the second.
virtual ValueType GetSmallerValue(const ValueType &value) const =0
Return biggest value smaller that specified one.
virtual ValueType GetRounded(const ValueType &value) const =0
Get the nearest value rounded used this arithmetik.
virtual bool GetParsed(const QString &text, ValueType &result) const =0
Get value converted from string.
Base interface for all used interfaces and implementations.
Package with mathematical functions and algebraical primitives.