EncodeableType should have generic Copy and Compare functions availables
The SOPC_EncodeableType
already have Encode/Decode functions implementations based on generic SOPC_EncodeableObject
functions.
But some function are missing such as Copy and Compare functions.
This leads to copy/compare such objects embedded into an SOPC_ExtensionObject by encoding/decoding the object, or to implement custom copy functions in the services layer code when needed in services.
We should at least implement the following functions:
SOPC_ReturnStatus SOPC_EncodeableObject_Copy(SOPC_EncodeableType* type,
void* destValue,
const void* srcValue);
SOPC_ReturnStatus SOPC_EncodeableObject_Compare(SOPC_EncodeableType* type,
const void* leftValue,
const void* rightValue,
int32_t* comparison);
It should not be necessary to add functions to SOPC_EncodeableType
and even the existing Encode/Decode functions should be removed from it and the custom Encode/Decode functions based on generic SOPC_EncodeableObject
functions should be removed too (see #1080 (closed)).
It should also be possible to remove the Init/Clear custom functions but those ones are already used in the code and might be used by customers.