|
TDataFunc
|
Accueil Précédent Suivant |
DataFuncs are function designed to pre-process the data while they are loaded in the model. They are sticked to the model through the SetDataFunc procedure.
C/C++ declaration
typedef long __stdcall (*TTranslateDataFunc)(char *Source:, char Sep, int Len, void *Target);
typedef long __stdcall (*TModifyDataFunc)(Data: Pointer);
Pascal declaration
TTranslateDataFunc = function(Source: PChar; Sep: Char; Len: Integer; Target: Pointer): LongInt; stdcall;
TModifyDataFunc = function(Data: Pointer): LongInt; stdCall;
Those two procedural types can be used by SetDataFunc, depending of its style. Once affected, they process the data while they are stored in internal memory.
The type TTranslateDataFunc allows a pre processing of the line read in a csv like text file. This function must perform the data translation towards the "Target" vector.
The type TModifyDataFunc allows a pre processing of the real values vector just before its storing in the memory.
these functions must return 0 if succeded.
If they exist, these functions are applied onr after the other.