Go to the documentation of this file.
44 #ifndef SOPC_ENCODEABLETYPE_H_
45 #define SOPC_ENCODEABLETYPE_H_
76 uint32_t nestedStructLevel);
91 uint32_t nestedStructLevel);
293 uint32_t nestedStructLevel);
314 uint32_t nestedStructLevel);
369 const void* leftValue,
370 const void* rightValue,
Definition: sopc_encodeabletype.h:149
SOPC_EncodeableType * SOPC_EncodeableType_GetUserType(uint16_t nsIndex, uint32_t typeId)
Retrieve a user-defined encodeable type with the given type Id.
uint32_t XmlEncodingTypeId
Definition: sopc_encodeabletype.h:168
int32_t NoOfFields
Definition: sopc_encodeabletype.h:175
void() SOPC_EncodeableObject_PfnClear(void *value)
Clear function generic signature for an encodeable object.
Definition: sopc_encodeabletype.h:61
SOPC_EncodeableObject_PfnInitialize * Initialize
Definition: sopc_encodeabletype.h:173
const SOPC_EncodeableType_FieldDescriptor * Fields
Definition: sopc_encodeabletype.h:176
void SOPC_EncodeableObject_Clear(SOPC_EncodeableType *type, void *pValue)
Clear an encodeable object of the given encodeable type.
size_t AllocationSize
Definition: sopc_encodeabletype.h:172
bool isToEncode
Definition: sopc_encodeabletype.h:152
SOPC_ReturnStatus SOPC_EncodeableObject_Decode(SOPC_EncodeableType *type, void *pValue, SOPC_Buffer *buf, uint32_t nestedStructLevel)
Decode an encodeable object of the given encodeable type from a bytes buffer.
SOPC_ReturnStatus() SOPC_EncodeableObject_PfnDecode(void *value, SOPC_Buffer *msgBuffer, uint32_t nestedStructLevel)
Decoding function generic signature for an encodeable object.
Definition: sopc_encodeabletype.h:89
Bytes buffer structure.
Definition: sopc_buffer.h:38
SOPC_EncodeableType * SOPC_EncodeableType_GetEncodeableType(uint16_t nsIndex, uint32_t typeId)
Retrieve a defined encodeable type with the given type Id. It can be a internal defined type or user-...
SOPC_ReturnStatus SOPC_EncodeableType_RemoveUserType(SOPC_EncodeableType *encoder)
Removes a user-defined encodeable type previously created by SOPC_EncodeableType_AddUserType.
SOPC_ReturnStatus SOPC_EncodeableObject_Create(SOPC_EncodeableType *encTyp, void **encObject)
Instantiate and initialize an encodeable object of the given encodeable type.
SOPC_ReturnStatus SOPC_EncodeableObject_Encode(SOPC_EncodeableType *type, const void *pValue, SOPC_Buffer *buf, uint32_t nestedStructLevel)
Encode an encodeable object of the given encodeable type into a bytes buffer.
bool isBuiltIn
Definition: sopc_encodeabletype.h:150
uint32_t TypeId
Definition: sopc_encodeabletype.h:166
uint16_t NamespaceIndex
Definition: sopc_encodeabletype.h:171
SOPC_ReturnStatus SOPC_EncodeableObject_Compare(SOPC_EncodeableType *type, const void *leftValue, const void *rightValue, int32_t *comp)
Compare 2 encodeable objects of the given encodeable type.
char * TypeName
Definition: sopc_encodeabletype.h:165
SOPC_ReturnStatus SOPC_EncodeableObject_Copy(SOPC_EncodeableType *type, void *destValue, const void *srcValue)
Copy an encodeable object of the given encodeable type.
SOPC_EncodeableObject_PfnClear * Clear
Definition: sopc_encodeabletype.h:174
uint32_t offset
Definition: sopc_encodeabletype.h:154
SOPC_ReturnStatus() SOPC_EncodeableObject_PfnComp(const void *left, const void *right, int32_t *comp)
Compare function generic signature for an encodeable object.
Definition: sopc_encodeabletype.h:122
const char * SOPC_EncodeableType_GetName(SOPC_EncodeableType *encType)
Get the name of the given encodeable type.
SOPC_ReturnStatus SOPC_EncodeableObject_Delete(SOPC_EncodeableType *encTyp, void **encObject)
Clear and deallocate an encodeable object of the given encodeable type.
SOPC_ReturnStatus SOPC_EncodeableType_AddUserType(SOPC_EncodeableType *encoder)
Registers a user-defined encodeable type. further calls to SOPC_EncodeableType_GetEncodeableType will...
uint32_t BinaryEncodingTypeId
Definition: sopc_encodeabletype.h:167
uint32_t typeIndex
Definition: sopc_encodeabletype.h:153
char * NamespaceUri
Definition: sopc_encodeabletype.h:169
const struct SOPC_EncodeableType_Struct SOPC_EncodeableType
Encodeable object type structure definition. It provides all the services functions associated with t...
void() SOPC_EncodeableObject_PfnInitialize(void *value)
Initialization function generic signature for an encodeable object.
Definition: sopc_encodeabletype.h:56
SOPC_ReturnStatus() SOPC_EncodeableObject_PfnCopy(void *dest, const void *src)
Copy function generic signature for an encodeable object.
Definition: sopc_encodeabletype.h:104
void SOPC_EncodeableObject_Initialize(SOPC_EncodeableType *type, void *pValue)
Initialize an encodeable object of the given encodeable type.
struct SOPC_EncodeableType_FieldDescriptor SOPC_EncodeableType_FieldDescriptor
const struct SOPC_EncodeableType_Struct ** namespaceTypesArray
Definition: sopc_encodeabletype.h:178
SOPC_ReturnStatus() SOPC_EncodeableObject_PfnEncode(const void *value, SOPC_Buffer *buffer, uint32_t nestedStructLevel)
Encoding function generic signature for an encodeable object *.
Definition: sopc_encodeabletype.h:74
bool isArrayLength
Definition: sopc_encodeabletype.h:151
Encodeable object type structure definition. It provides all the services functions associated with t...
Definition: sopc_encodeabletype.h:164
A buffer of bytes with a maximum size, length and position.
SOPC_ReturnStatus SOPC_EncodeableObject_Move(void *destObj, void *srcObj)
Moves content of srcObj to destObj, i.e. copy srcObj structure content to destObj and reset srcObj....
SOPC_ReturnStatus
Definition: libs2opc_client.h:64