ITsDataConverter Interface |
An ITsDataConverter can be registered at an ITsBridge. It converts the Data either to another type (ex. float to double), or it can convert the actual numbers (ex. user unit to SI unit).
The Converter should be applied to all data loaded by the bridge.
The Reverter should be applied to all data stored by the bridge.
ConvertItem(TsItem) should be called for an item before any of the Convert(TsItem, Array) or Revert(TsItem, Array) calls, in order to let the converter do any required initialization.
Namespace: DHI.Mike1D.Generic.TimeSeries
public interface ITsDataConverter
The ITsDataConverter type exposes the following members.
Name | Description | |
---|---|---|
Convert | Takes as input an array/ilist of values of some type and returns another array/ilist of some type. If the input object does not match the converter, it should return the array again. The input array may be modified in-place | |
ConvertItem | Takes in one item and returns an item that matches the data conversion. | |
Revert | Takes as input an array/ilist of values of some type and returns another array/ilist of some type. Should produce the inverse of the Convert(TsItem, Array) call If the input object does not match the converter, it should return the array again. The input array may be modified in-place |