| 23 | |
| 24 | |
| 25 | === API Changes === |
| 26 | |
| 27 | Direct conversion from a source to a destination type will be supported by adding Create functions to each destination type, which take a value of the source type as a parameter. |
| 28 | |
| 29 | ==== Main Functions ==== |
| 30 | |
| 31 | The following functions will be added: |
| 32 | |
| 33 | |
| 34 | {{{ |
| 35 | FDO_API static FdoDataValue* FdoDataValue::Create( |
| 36 | FdoDataType dataType, |
| 37 | FdoDataValue* src, |
| 38 | FdoBoolean shift = true, |
| 39 | FdoBoolean truncate = false, |
| 40 | FdoBoolean nullIfIncompatible = false |
| 41 | ); |
| 42 | |
| 43 | FDO_API static FdoBooleanValue* FdoBooleanValue::Create( |
| 44 | FdoDataValue* src, |
| 45 | FdoBoolean shift = true, |
| 46 | FdoBoolean truncate = false, |
| 47 | FdoBoolean nullIfIncompatible = false |
| 48 | ); |
| 49 | |
| 50 | FDO_API static FdoByteValue* FdoByteValue::Create( |
| 51 | FdoDataValue* src, |
| 52 | FdoBoolean shift = true, |
| 53 | FdoBoolean truncate = false, |
| 54 | FdoBoolean nullIfIncompatible = false |
| 55 | ); |
| 56 | |
| 57 | FDO_API static FdoDecimalValue* FdoDecimalValue::Create( |
| 58 | FdoDataValue* src, |
| 59 | FdoBoolean shift = true, |
| 60 | FdoBoolean truncate = false, |
| 61 | FdoBoolean nullIfIncompatible = false |
| 62 | ); |
| 63 | |
| 64 | FDO_API static FdoDoubleValue* FdoDoubleValue::Create( |
| 65 | FdoDataValue* src, |
| 66 | FdoBoolean shift = true, |
| 67 | FdoBoolean truncate = false, |
| 68 | FdoBoolean nullIfIncompatible = false |
| 69 | ); |
| 70 | |
| 71 | FDO_API static FdoInt16Value* FdoInt16Value::Create( |
| 72 | FdoDataValue* src, |
| 73 | FdoBoolean shift = true, |
| 74 | FdoBoolean truncate = false, |
| 75 | FdoBoolean nullIfIncompatible = false |
| 76 | ); |
| 77 | |
| 78 | FDO_API static FdoInt32Value* FdoInt32Value::Create( |
| 79 | FdoDataValue* src, |
| 80 | FdoBoolean shift = true, |
| 81 | FdoBoolean truncate = false, |
| 82 | FdoBoolean nullIfIncompatible = false |
| 83 | ); |
| 84 | |
| 85 | FDO_API static FdoInt64Value* FdoInt64Value::Create( |
| 86 | FdoDataValue* src, |
| 87 | FdoBoolean shift = true, |
| 88 | FdoBoolean truncate = false, |
| 89 | FdoBoolean nullIfIncompatible = false |
| 90 | ); |
| 91 | |
| 92 | FDO_API static FdoSingleValue* FdoSingleValue::Create( |
| 93 | FdoDataValue* src, |
| 94 | FdoBoolean shift = true, |
| 95 | FdoBoolean truncate = false, |
| 96 | FdoBoolean nullIfIncompatible = false |
| 97 | ); |
| 98 | |
| 99 | FDO_API static FdoSingleValue* FdoCLOBValue::Create( |
| 100 | FdoDataValue* src, |
| 101 | FdoBoolean shift = true, |
| 102 | FdoBoolean truncate = false, |
| 103 | FdoBoolean nullIfIncompatible = false |
| 104 | ); |
| 105 | }}} |