11 Value* parse(std::string textValue, DataType* dataBoard)
16 DataType* parse(std::string textValue)
21 bool equals(DataType* a, DataType* b)
26 bool equals(DataType* type, Value* a, Value* b)
31 std::string toString(DataType* type)
36 std::string toString(Value* value)
42 * Compares its two data values for order. Returns a negative integer,
43 * zero, or a positive integer as the first argument is less than, equal
44 * to, or greater than the second.<p>
46 * The implementor must also ensure that the relation is transitive:
47 * <tt>((compare(x, y)>0) && (compare(y, z)>0))</tt> implies
48 * <tt>compare(x, z)>0</tt>.<p>
50 * Finally, the implementor must ensure that <tt>compare(x, y)==0</tt>
51 * implies that <tt>sgn(compare(x, z))==sgn(compare(y, z))</tt> for all
54 * The comparison function is defined at
55 * https://www.simantics.org/wiki/index.php/Org.simantics.databoard_Manual#CompareTo_and_Equals <p>
57 * Note, comparing 2 different number types will not result a value comparison.
58 * Instead values have the following type precedence ByteType, IntegerType, LongType,
59 * FloatType, and the highest DoubleType. <p>
61 * @param o1 the first object to be compared.
62 * @param o2 the second object to be compared.
63 * @return a negative integer, zero, or a positive integer as the
64 * first argument is less than, equal to, or greater than the
66 * @throws BindingException if object cannot be handled by a binding
69 int compare(Value* a, Value* b)