S2OPC OPCUA Toolkit
|
#include <stdbool.h>
#include <stdint.h>
#include "sopc_dict.h"
#include "sopc_encodeabletype.h"
#include "sopc_enums.h"
#include "sopc_numeric_range.h"
#include "sopc_singly_linked_list.h"
#include "s2opc_common_export.h"
Go to the source code of this file.
Data Structures | |
struct | SOPC_String |
This structure provides string encapsulation. More... | |
struct | SOPC_Guid |
struct | SOPC_NodeId |
This structure describes a basic NodeID in OPC UA. More... | |
struct | SOPC_ExpandedNodeId |
ExpandedNodeId allows the namespace to be specified explicitly as a string or with an index in the Server’s namespace table. More... | |
struct | SOPC_DiagnosticInfo |
This structure provides vendor specific diagnostic information. More... | |
struct | SOPC_QualifiedName |
struct | SOPC_LocalizedText |
struct | SOPC_ExtensionObject |
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the other built-in data types. it contains fields that describes which data is transported and how it is described. More... | |
union | SOPC_VariantArrayValue |
This union provides all possible contents for Variant arrays, depending on their SOPC_BuiltinId. More... | |
union | SOPC_VariantValue |
This union provides all possible contents for Variant, depending on their SOPC_BuiltinId. More... | |
struct | SOPC_Variant |
This structure provides variant encapsulation. More... | |
struct | SOPC_DataValue |
Each attribute in OPC UA has a DataValue caracterized by the following structure. More... | |
struct | SOPC_BuiltInType_Handling |
Built-in type handling. Provides all the generic service functions associated with a built-in type (except encoders and decoders which are declared in struct SOPC_BuiltInType_Encoders ). Also define the allocation size of objects of a built-in type. More... | |
Macros | |
#define | SOPC_GoodGenericStatus 0x00000000 |
A generic Good status code. More... | |
#define | SOPC_GoodStatusOppositeMask 0xC0000000 |
An opposite mask for Good status code: Good status <=> (status & SOPC_GoodStatusOppositeMask) == 0. More... | |
#define | SOPC_UncertainStatusMask 0x40000000 |
Masks to check status for Uncertain/Bad/Reserved status code: X status <=> (status & SOPC_<X>StatusMask) != 0. More... | |
#define | SOPC_BadStatusMask 0x80000000 |
#define | SOPC_DataValueOverflowStatusMask 0x00000480 |
Mask to check status contains the DataValue overflow bit set (InfoType DataValue bit + Overflow bit) More... | |
#define | SOPC_BUILTINID_MAX 25 |
#define | SOPC_VARIANT_GET_ARRAY_VALUES_PTR(pVar, eltTypeName) |
#define | SECURITY_POLICY_NONE "http://opcfoundation.org/UA/SecurityPolicy#None" |
#define | SECURITY_POLICY_BASIC128RSA15 "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" |
#define | SECURITY_POLICY_BASIC256 "http://opcfoundation.org/UA/SecurityPolicy#Basic256" |
#define | SECURITY_POLICY_BASIC256SHA256 "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256" |
#define | SOPC_NS0_NUMERIC_NODEID(opcUaId) |
Typedefs | |
typedef uint32_t | SOPC_StatusCode |
typedef enum SOPC_BuiltinId | SOPC_BuiltinId |
typedef uint8_t | SOPC_Byte |
typedef SOPC_Byte | SOPC_Boolean |
typedef int8_t | SOPC_SByte |
typedef struct SOPC_String | SOPC_String |
This structure provides string encapsulation. More... | |
typedef SOPC_String | SOPC_XmlElement |
typedef SOPC_String | SOPC_ByteString |
typedef int64_t | SOPC_DateTime |
OPC UA timestamp format which is 100 nanoseconds from 1601/01/01 00:00:00 UTC. More... | |
typedef struct SOPC_Guid | SOPC_Guid |
typedef enum SOPC_IdentifierType | SOPC_IdentifierType |
This enum provides fundamental identifier type. More... | |
typedef struct SOPC_NodeId | SOPC_NodeId |
This structure describes a basic NodeID in OPC UA. More... | |
typedef struct SOPC_ExpandedNodeId | SOPC_ExpandedNodeId |
ExpandedNodeId allows the namespace to be specified explicitly as a string or with an index in the Server’s namespace table. More... | |
typedef struct SOPC_DiagnosticInfo | SOPC_DiagnosticInfo |
This structure provides vendor specific diagnostic information. More... | |
typedef struct SOPC_QualifiedName | SOPC_QualifiedName |
typedef struct SOPC_LocalizedText | SOPC_LocalizedText |
typedef enum SOPC_ExtObjectBodyEncoding | SOPC_ExtObjectBodyEncoding |
This enum provides additional information on which data type format transported. More... | |
typedef struct SOPC_ExtensionObject | SOPC_ExtensionObject |
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the other built-in data types. it contains fields that describes which data is transported and how it is described. More... | |
typedef enum SOPC_VariantArrayTypeFlag | SOPC_VariantArrayTypeFlag |
typedef enum SOPC_VariantArrayType | SOPC_VariantArrayType |
typedef union SOPC_VariantArrayValue | SOPC_VariantArrayValue |
This union provides all possible contents for Variant arrays, depending on their SOPC_BuiltinId. More... | |
typedef union SOPC_VariantValue | SOPC_VariantValue |
This union provides all possible contents for Variant, depending on their SOPC_BuiltinId. More... | |
typedef struct SOPC_Variant | SOPC_Variant |
This structure provides variant encapsulation. More... | |
typedef struct SOPC_DataValue | SOPC_DataValue |
Each attribute in OPC UA has a DataValue caracterized by the following structure. More... | |
typedef SOPC_ReturnStatus() | SOPC_VariantValue_PfnCompCustom(const void *customContext, SOPC_BuiltinId builtInTypeId, const void *left, const void *right, int32_t *compResult) |
Generic comparison function type for values contained in a variant. More... | |
typedef struct SOPC_BuiltInType_Handling | SOPC_BuiltInType_Handling |
Built-in type handling. Provides all the generic service functions associated with a built-in type (except encoders and decoders which are declared in struct SOPC_BuiltInType_Encoders ). Also define the allocation size of objects of a built-in type. More... | |
Functions | |
bool | SOPC_IsGoodStatus (SOPC_StatusCode status) |
Evaluates if the provided status is Good. More... | |
SOPC_StatusCode | SOPC_StatusCode_ToTcpErrorCode (SOPC_StatusCode status) |
Restricts and converts the status code to the only status code authorized for TCP error code. More... | |
void | SOPC_Boolean_Initialize (SOPC_Boolean *b) |
Initialize a pointer for a specific builtintype (Boolean, String, Int16...) More... | |
void | SOPC_Boolean_InitializeAux (void *value) |
Initialize a generic pointer using cast method. More... | |
SOPC_ReturnStatus | SOPC_Boolean_CopyAux (void *dest, const void *src) |
Copy the content of a generic pointer to another one. More... | |
SOPC_ReturnStatus | SOPC_Boolean_CompareAux (const void *left, const void *right, int32_t *comparison) |
Compare the content of a generic pointer to another one and set the result in the comparison parameter. More... | |
void | SOPC_Boolean_Clear (SOPC_Boolean *b) |
Clear the content of a specific builtintype pointer. More... | |
void | SOPC_Boolean_ClearAux (void *value) |
Clear the content of a generic pointer. More... | |
void | SOPC_SByte_Initialize (SOPC_SByte *sbyte) |
void | SOPC_SByte_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_SByte_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_SByte_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_SByte_Clear (SOPC_SByte *sbyte) |
void | SOPC_SByte_ClearAux (void *value) |
void | SOPC_Byte_Initialize (SOPC_Byte *byte) |
void | SOPC_Byte_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Byte_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Byte_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Byte_Clear (SOPC_Byte *byte) |
void | SOPC_Byte_ClearAux (void *value) |
void | SOPC_Int16_Initialize (int16_t *intv) |
void | SOPC_Int16_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Int16_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Int16_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Int16_Clear (int16_t *intv) |
void | SOPC_Int16_ClearAux (void *value) |
void | SOPC_UInt16_Initialize (uint16_t *uint) |
void | SOPC_UInt16_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_UInt16_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_UInt16_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_UInt16_Clear (uint16_t *uint) |
void | SOPC_UInt16_ClearAux (void *value) |
void | SOPC_Int32_Initialize (int32_t *intv) |
void | SOPC_Int32_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Int32_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Int32_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Int32_Clear (int32_t *intv) |
void | SOPC_Int32_ClearAux (void *value) |
void | SOPC_UInt32_Initialize (uint32_t *uint) |
void | SOPC_UInt32_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_UInt32_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_UInt32_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_UInt32_Clear (uint32_t *uint) |
void | SOPC_UInt32_ClearAux (void *value) |
void | SOPC_Int64_Initialize (int64_t *intv) |
void | SOPC_Int64_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Int64_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Int64_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Int64_Clear (int64_t *intv) |
void | SOPC_Int64_ClearAux (void *value) |
void | SOPC_UInt64_Initialize (uint64_t *uint) |
void | SOPC_UInt64_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_UInt64_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_UInt64_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_UInt64_Clear (uint64_t *uint) |
void | SOPC_UInt64_ClearAux (void *value) |
void | SOPC_Float_Initialize (float *f) |
void | SOPC_Float_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Float_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Float_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Float_Clear (float *f) |
void | SOPC_Float_ClearAux (void *value) |
void | SOPC_Double_Initialize (double *d) |
void | SOPC_Double_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Double_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Double_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_Double_Clear (double *d) |
void | SOPC_Double_ClearAux (void *value) |
void | SOPC_ByteString_Initialize (SOPC_ByteString *bstring) |
void | SOPC_ByteString_InitializeAux (void *value) |
SOPC_ByteString * | SOPC_ByteString_Create (void) |
Create a valid specific builtintype pointer. More... | |
SOPC_ReturnStatus | SOPC_ByteString_InitializeFixedSize (SOPC_ByteString *bstring, uint32_t size) |
Allocate a number of size bytes and initialize its content to "0", this allocation looks like calloc function. More... | |
SOPC_ReturnStatus | SOPC_ByteString_CopyFromBytes (SOPC_ByteString *dest, const SOPC_Byte *bytes, int32_t length) |
Return a deep copy of a Byte array. More... | |
SOPC_ReturnStatus | SOPC_ByteString_Copy (SOPC_ByteString *dest, const SOPC_ByteString *src) |
Return a deep copy of another ByteString. See SOPC_ByteString_CopyFromBytes. More... | |
SOPC_ReturnStatus | SOPC_ByteString_CopyAux (void *dest, const void *src) |
void | SOPC_ByteString_Clear (SOPC_ByteString *bstring) |
void | SOPC_ByteString_ClearAux (void *value) |
void | SOPC_ByteString_Delete (SOPC_ByteString *bstring) |
Free a specific builtintype pointer thus it will transform it into an invalid pointer. More... | |
SOPC_ReturnStatus | SOPC_ByteString_Compare (const SOPC_ByteString *left, const SOPC_ByteString *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_ByteString_CompareAux (const void *left, const void *right, int32_t *comparison) |
bool | SOPC_ByteString_Equal (const SOPC_ByteString *left, const SOPC_ByteString *right) |
Compare the content of two specific builtintype pointer and return true or false according to the result. More... | |
void | SOPC_String_Initialize (SOPC_String *string) |
void | SOPC_String_InitializeAux (void *value) |
SOPC_String * | SOPC_String_Create (void) |
SOPC_ReturnStatus | SOPC_String_CopyFromCString (SOPC_String *string, const char *cString) |
Copy a C-String to the Data field of the SOPC_String object. More... | |
SOPC_ReturnStatus | SOPC_String_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_String_InitializeFromCString (SOPC_String *string, const char *cString) |
Initialize the content of a specific builtintype pointer with a C-String. More... | |
char * | SOPC_String_GetCString (const SOPC_String *string) |
Retrieve the C-String of a SOPC_String pointer or '\0' for a SOPC_String with length <= 0. More... | |
const char * | SOPC_String_GetRawCString (const SOPC_String *string) |
Retrieve the raw C-String of a SOPC_String pointer or '\0' for a SOPC_String with length <= 0. More... | |
SOPC_ReturnStatus | SOPC_String_AttachFrom (SOPC_String *dest, SOPC_String *src) |
Create a shallow copy of src into dest. The src string must not be cleared before dest is cleared. More... | |
SOPC_ReturnStatus | SOPC_String_AttachFromCstring (SOPC_String *dest, const char *src) |
Create a shallow copy of src (C-String) into dest. The src string must not be freed/modified before dest is cleared. More... | |
SOPC_ReturnStatus | SOPC_String_Copy (SOPC_String *dest, const SOPC_String *src) |
Create a copy of src into dest. More... | |
void | SOPC_String_Clear (SOPC_String *bstring) |
void | SOPC_String_ClearAux (void *value) |
void | SOPC_String_Delete (SOPC_String *bstring) |
SOPC_ReturnStatus | SOPC_String_Compare (const SOPC_String *left, const SOPC_String *right, bool ignoreCase, int32_t *comparison) |
Compare the content of a String pointer to another one and set the result in the comparison parameter. More... | |
SOPC_ReturnStatus | SOPC_String_CompareAux (const void *left, const void *right, int32_t *comparison) |
bool | SOPC_String_Equal (const SOPC_String *left, const SOPC_String *right) |
const char ** | SOPC_String_GetRawCStringArray (int32_t nbOfStrings, SOPC_String *stringArray) |
Returns a NULL terminated C-string array without copying the strings. The caller is responsible to NOT modify the content of the returned array and to call SOPC_Free on the array (and NOT the array content) after use. More... | |
char ** | SOPC_String_GetCStringArray (int32_t nbOfStrings, SOPC_String *stringArray) |
Returns a NULL terminated C-string array copying the strings. More... | |
void | SOPC_XmlElement_Initialize (SOPC_XmlElement *xmlElt) |
void | SOPC_XmlElement_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_XmlElement_Copy (SOPC_XmlElement *dest, const SOPC_XmlElement *src) |
SOPC_ReturnStatus | SOPC_XmlElement_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_XmlElement_Compare (const SOPC_XmlElement *left, const SOPC_XmlElement *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_XmlElement_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_XmlElement_Clear (SOPC_XmlElement *xmlElt) |
void | SOPC_XmlElement_ClearAux (void *value) |
void | SOPC_DateTime_Initialize (SOPC_DateTime *dateTime) |
void | SOPC_DateTime_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_DateTime_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_DateTime_Compare (const SOPC_DateTime *left, const SOPC_DateTime *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_DateTime_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_DateTime_Clear (SOPC_DateTime *dateTime) |
void | SOPC_DateTime_ClearAux (void *value) |
void | SOPC_Guid_Initialize (SOPC_Guid *guid) |
void | SOPC_Guid_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Guid_FromCString (SOPC_Guid *guid, const char *str, size_t len) |
char * | SOPC_Guid_ToCString (const SOPC_Guid *guid) |
SOPC_ReturnStatus | SOPC_Guid_Copy (SOPC_Guid *dest, const SOPC_Guid *src) |
SOPC_ReturnStatus | SOPC_Guid_CompareAux (const void *left, const void *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Guid_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Guid_Compare (const SOPC_Guid *left, const SOPC_Guid *right, int32_t *comparison) |
void | SOPC_Guid_Clear (SOPC_Guid *guid) |
void | SOPC_Guid_ClearAux (void *value) |
void | SOPC_NodeId_Initialize (SOPC_NodeId *nodeId) |
void | SOPC_NodeId_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_NodeId_Copy (SOPC_NodeId *dest, const SOPC_NodeId *src) |
SOPC_ReturnStatus | SOPC_NodeId_CopyAux (void *dest, const void *src) |
void | SOPC_NodeId_Clear (SOPC_NodeId *nodeId) |
void | SOPC_NodeId_ClearAux (void *value) |
SOPC_ReturnStatus | SOPC_NodeId_Compare (const SOPC_NodeId *left, const SOPC_NodeId *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_NodeId_CompareAux (const void *left, const void *right, int32_t *comparison) |
bool | SOPC_NodeId_Equal (const SOPC_NodeId *left, const SOPC_NodeId *right) |
bool | SOPC_NodeId_IsNull (const SOPC_NodeId *nodeId) |
void | SOPC_NodeId_Hash (const SOPC_NodeId *nodeId, uint64_t *hash) |
char * | SOPC_NodeId_ToCString (const SOPC_NodeId *nodeId) |
Allocates a C string containing the normalized representation of a NodeId. Must be freed by caller after use. More... | |
SOPC_ReturnStatus | SOPC_NodeId_InitializeFromCString (SOPC_NodeId *pNid, const char *cString, int32_t len) |
Initializes a NodeId from a normalized C string. See SOPC_String_InitializeFromCString. More... | |
SOPC_NodeId * | SOPC_NodeId_FromCString (const char *cString, int32_t len) |
Alloacates and initializes a NodeId from a normalized C string. See SOPC_String_InitializeFromCString. More... | |
SOPC_Dict * | SOPC_NodeId_Dict_Create (bool free_keys, SOPC_Dict_Free_Fct value_free) |
Creates a dictionary which keys are NodeId. More... | |
void | SOPC_ExpandedNodeId_Initialize (SOPC_ExpandedNodeId *expNodeId) |
void | SOPC_ExpandedNodeId_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_ExpandedNodeId_Copy (SOPC_ExpandedNodeId *dest, const SOPC_ExpandedNodeId *src) |
SOPC_ReturnStatus | SOPC_ExpandedNodeId_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_ExpandedNodeId_Compare (const SOPC_ExpandedNodeId *left, const SOPC_ExpandedNodeId *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_ExpandedNodeId_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_ExpandedNodeId_Clear (SOPC_ExpandedNodeId *expNodeId) |
void | SOPC_ExpandedNodeId_ClearAux (void *value) |
void | SOPC_StatusCode_Initialize (SOPC_StatusCode *status) |
void | SOPC_StatusCode_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_StatusCode_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_StatusCode_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_StatusCode_Clear (SOPC_StatusCode *status) |
void | SOPC_StatusCode_ClearAux (void *value) |
void | SOPC_DiagnosticInfo_Initialize (SOPC_DiagnosticInfo *diagInfo) |
void | SOPC_DiagnosticInfo_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_DiagnosticInfo_Copy (SOPC_DiagnosticInfo *dest, const SOPC_DiagnosticInfo *src) |
SOPC_ReturnStatus | SOPC_DiagnosticInfo_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_DiagnosticInfo_Compare (const SOPC_DiagnosticInfo *left, const SOPC_DiagnosticInfo *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_DiagnosticInfo_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_DiagnosticInfo_Clear (SOPC_DiagnosticInfo *diagInfo) |
void | SOPC_DiagnosticInfo_ClearAux (void *value) |
void | SOPC_QualifiedName_Initialize (SOPC_QualifiedName *qname) |
void | SOPC_QualifiedName_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_QualifiedName_Copy (SOPC_QualifiedName *dest, const SOPC_QualifiedName *src) |
SOPC_ReturnStatus | SOPC_QualifiedName_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_QualifiedName_Compare (const SOPC_QualifiedName *left, const SOPC_QualifiedName *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_QualifiedName_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_QualifiedName_Clear (SOPC_QualifiedName *qname) |
void | SOPC_QualifiedName_ClearAux (void *value) |
SOPC_ReturnStatus | SOPC_QualifiedName_ParseCString (SOPC_QualifiedName *qname, const char *str) |
char * | SOPC_QualifiedName_ToCString (const SOPC_QualifiedName *qname) |
void | SOPC_LocalizedText_Initialize (SOPC_LocalizedText *localizedText) |
void | SOPC_LocalizedText_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_LocalizedText_Copy (SOPC_LocalizedText *dest, const SOPC_LocalizedText *src) |
SOPC_ReturnStatus | SOPC_LocalizedText_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_LocalizedText_Compare (const SOPC_LocalizedText *left, const SOPC_LocalizedText *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_LocalizedText_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_LocalizedText_Clear (SOPC_LocalizedText *localizedText) |
void | SOPC_LocalizedText_ClearAux (void *value) |
SOPC_ReturnStatus | SOPC_LocalizedText_CopyFromArray (SOPC_LocalizedText *destSetOfLt, int32_t nbElts, const SOPC_LocalizedText *srcArrayOfLt) |
Copy into the given empty localized text an array of localized text to create a LocalizedText set. Note: array is considered to contain only LocalizedText single values (other values than default fields are ignored) More... | |
SOPC_ReturnStatus | SOPC_LocalizedText_CopyToArray (SOPC_LocalizedText **dstArray, int32_t *nbElts, const SOPC_LocalizedText *srcSetOfLt) |
Copy into a new LocalizedText array the content of a LocalizedText set (or single value). More... | |
SOPC_ReturnStatus | SOPC_LocalizedText_AddOrSetLocale (SOPC_LocalizedText *destSetOfLt, char **supportedLocaleIds, const SOPC_LocalizedText *src) |
Add a src LocalizedText to the LocalizedText list of dest. If locale already exists overwrite it, if it is a NULL LocalizedText clear all localized text stored Note: src shall not contain a list of localized text, only default localized text fields. More... | |
SOPC_ReturnStatus | SOPC_LocalizedText_GetPreferredLocale (SOPC_LocalizedText *dest, char **preferredLocaleIds, const SOPC_LocalizedText *srcSetOfLt) |
Set the single localized text dest with preferred locale from the multiple localized texts contained in src . The preferred locale is selected using the preferred locale Ids array localeIds (ordered by preference priority). More... | |
SOPC_ReturnStatus | SOPC_LocalizedTextArray_GetPreferredLocale (SOPC_LocalizedText *dest, char **preferredLocaleIds, int32_t nbLocalizedText, const SOPC_LocalizedText *srcArray) |
void | SOPC_ExtensionObject_Initialize (SOPC_ExtensionObject *extObj) |
void | SOPC_ExtensionObject_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_ExtensionObject_Copy (SOPC_ExtensionObject *dest, const SOPC_ExtensionObject *src) |
SOPC_ReturnStatus | SOPC_ExtensionObject_Move (SOPC_ExtensionObject *dest, SOPC_ExtensionObject *src) |
SOPC_ReturnStatus | SOPC_ExtensionObject_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_ExtensionObject_Compare (const SOPC_ExtensionObject *left, const SOPC_ExtensionObject *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_ExtensionObject_CompareAux (const void *left, const void *right, int32_t *comparison) |
void | SOPC_ExtensionObject_Clear (SOPC_ExtensionObject *extObj) |
void | SOPC_ExtensionObject_ClearAux (void *value) |
SOPC_ReturnStatus | SOPC_ExtensionObject_CreateObject (SOPC_ExtensionObject *extObject, SOPC_EncodeableType *encTyp, void **encObject) |
Create an encodeable object of the given encodeable type and set it in the given extension object. More... | |
SOPC_Variant * | SOPC_Variant_Create (void) |
allocates and return a SOPC_Variant More... | |
void | SOPC_Variant_Initialize (SOPC_Variant *variant) |
Initialize a Variant. Do not initialize existing variants without clearing them first. More... | |
bool | SOPC_Variant_Initialize_Array (SOPC_Variant *var, SOPC_BuiltinId builtInId, int32_t length) |
Initialize a Variant as an array of given length. Do not initialize existing variants without clearing them first. More... | |
void | SOPC_Null_ClearAux (void *value) |
SOPC_ReturnStatus | SOPC_Null_CompareAux (const void *dest, const void *src, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Null_CopyAux (void *dest, const void *src) |
void | SOPC_Variant_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_Variant_Copy (SOPC_Variant *dest, const SOPC_Variant *src) |
SOPC_ReturnStatus | SOPC_Variant_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_Variant_HasRange (const SOPC_Variant *variant, const SOPC_NumericRange *range, bool fullRange, bool *hasRange) |
Checks if the given range is valid for the given variant: More... | |
SOPC_ReturnStatus | SOPC_Variant_GetRange (SOPC_Variant *dst, const SOPC_Variant *src, const SOPC_NumericRange *range) |
SOPC_ReturnStatus | SOPC_Variant_SetRange (SOPC_Variant *dst, const SOPC_Variant *src, const SOPC_NumericRange *range) |
SOPC_ReturnStatus | SOPC_Variant_ShallowCopy (SOPC_Variant *dst, const SOPC_Variant *src) |
void | SOPC_Variant_Move (SOPC_Variant *dest, SOPC_Variant *src) |
SOPC_ReturnStatus | SOPC_Variant_Compare (const SOPC_Variant *left, const SOPC_Variant *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Variant_CompareAux (const void *left, const void *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Variant_CompareCustom (SOPC_VariantValue_PfnCompCustom *compCustom, const void *compCustomContext, const SOPC_Variant *left, const SOPC_Variant *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Variant_CompareRange (const SOPC_Variant *left, const SOPC_Variant *right, const SOPC_NumericRange *range, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_Variant_CompareCustomRange (SOPC_VariantValue_PfnCompCustom *compCustom, const void *compCustomContext, const SOPC_Variant *left, const SOPC_Variant *right, const SOPC_NumericRange *range, int32_t *comparison) |
void | SOPC_Variant_Clear (SOPC_Variant *variant) |
void | SOPC_Variant_ClearAux (void *value) |
void | SOPC_Variant_Delete (SOPC_Variant *variant) |
void | SOPC_Variant_Print (SOPC_Variant *variant) |
int32_t | SOPC_Variant_GetArrayOrMatrixLength (const SOPC_Variant *var) |
Returns the number of values contained in a Variant with Array or Matrix value type. It might be used in combination with SOPC_VARIANT_GET_ARRAY_VALUES_PTR macro to iterate over all values in a generic way for array and matrix variants of a known variant type. More... | |
const void * | SOPC_Variant_Get_SingleValue (const SOPC_Variant *var, SOPC_BuiltinId builtInTypeId) |
const void * | SOPC_Variant_Get_ArrayValue (const SOPC_Variant *var, SOPC_BuiltinId builtInTypeId, int32_t index) |
bool | SOPC_Variant_CopyInto_ArrayValueAt (SOPC_Variant *dest, SOPC_BuiltinId builtInTypeId, int32_t index, const void *value) |
SOPC_NodeId * | SOPC_Variant_Get_DataType (const SOPC_Variant *var) |
Returns the DataType identifier of the given variant as a newly allocated NodeId For built-in types except for ExtensionObject variant: built-in type NodeId is returned (single value / array) For ExtensionObject built-in type: More... | |
int32_t | SOPC_Variant_Get_ValueRank (const SOPC_Variant *var) |
bool | SOPC_ValueRank_IsAssignableInto (int32_t dest_ValueRank, int32_t src_valueRank) |
void | SOPC_DataValue_Initialize (SOPC_DataValue *dataValue) |
void | SOPC_DataValue_InitializeAux (void *value) |
SOPC_ReturnStatus | SOPC_DataValue_Copy (SOPC_DataValue *dest, const SOPC_DataValue *src) |
SOPC_ReturnStatus | SOPC_DataValue_CopyAux (void *dest, const void *src) |
SOPC_ReturnStatus | SOPC_DataValue_Compare (const SOPC_DataValue *left, const SOPC_DataValue *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_DataValue_CompareAux (const void *left, const void *right, int32_t *comparison) |
SOPC_ReturnStatus | SOPC_DataValue_CompareRange (const SOPC_DataValue *left, const SOPC_DataValue *right, const SOPC_NumericRange *range, int32_t *comparison) |
void | SOPC_DataValue_Clear (SOPC_DataValue *dataValue) |
void | SOPC_DataValue_ClearAux (void *value) |
void | SOPC_Initialize_Array (int32_t noOfElts, void *eltsArray, size_t sizeOfElt, SOPC_EncodeableObject_PfnInitialize *initFct) |
SOPC_ReturnStatus | SOPC_Copy_Array (int32_t noOfElts, void *eltsArrayDest, const void *eltsArraySrc, size_t sizeOfElt, SOPC_EncodeableObject_PfnCopy *opFct) |
SOPC_ReturnStatus | SOPC_Comp_Array (int32_t noOfElts, const void *eltsArrayLeft, const void *eltsArrayRight, size_t sizeOfElt, SOPC_EncodeableObject_PfnComp *compFct, int32_t *comparisonResult) |
SOPC_ReturnStatus | SOPC_CompCustom_Array (int32_t noOfElts, const void *eltsArrayLeft, const void *eltsArrayRight, size_t sizeOfElt, SOPC_VariantValue_PfnCompCustom *compCustomFct, const void *customCompContext, SOPC_BuiltinId builtInId, int32_t *comparisonResult) |
void | SOPC_Clear_Array (int32_t *noOfElts, void **eltsArray, size_t sizeOfElt, SOPC_EncodeableObject_PfnClear *clearFct) |
Variables | |
S2OPC_COMMON_EXPORT const SOPC_NodeId * | SOPC_BuiltInTypeId_To_DataTypeNodeId [26] |
S2OPC_COMMON_EXPORT const SOPC_BuiltInType_Handling | SOPC_BuiltInType_HandlingTable [SOPC_BUILTINID_MAX+1] |
Table of all built-in type handlers. To be indexed with a SOPC_BuiltinId . Provides all the generic service functions associated with each built-in type. More... | |
#define SOPC_GoodGenericStatus 0x00000000 |
A generic Good status code.
#define SOPC_GoodStatusOppositeMask 0xC0000000 |
An opposite mask for Good status code: Good status <=> (status & SOPC_GoodStatusOppositeMask) == 0.
#define SOPC_UncertainStatusMask 0x40000000 |
Masks to check status for Uncertain/Bad/Reserved status code: X status <=> (status & SOPC_<X>StatusMask) != 0.
#define SOPC_BadStatusMask 0x80000000 |
#define SOPC_DataValueOverflowStatusMask 0x00000480 |
Mask to check status contains the DataValue overflow bit set (InfoType DataValue bit + Overflow bit)
#define SOPC_BUILTINID_MAX 25 |
#define SOPC_VARIANT_GET_ARRAY_VALUES_PTR | ( | pVar, | |
eltTypeName | |||
) |
#define SECURITY_POLICY_NONE "http://opcfoundation.org/UA/SecurityPolicy#None" |
#define SECURITY_POLICY_BASIC128RSA15 "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" |
#define SECURITY_POLICY_BASIC256 "http://opcfoundation.org/UA/SecurityPolicy#Basic256" |
#define SECURITY_POLICY_BASIC256SHA256 "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256" |
#define SOPC_NS0_NUMERIC_NODEID | ( | opcUaId | ) |
typedef uint32_t SOPC_StatusCode |
typedef enum SOPC_BuiltinId SOPC_BuiltinId |
typedef uint8_t SOPC_Byte |
typedef SOPC_Byte SOPC_Boolean |
typedef int8_t SOPC_SByte |
typedef struct SOPC_String SOPC_String |
This structure provides string encapsulation.
typedef SOPC_String SOPC_XmlElement |
typedef SOPC_String SOPC_ByteString |
typedef int64_t SOPC_DateTime |
OPC UA timestamp format which is 100 nanoseconds from 1601/01/01 00:00:00 UTC.
typedef enum SOPC_IdentifierType SOPC_IdentifierType |
This enum provides fundamental identifier type.
typedef struct SOPC_NodeId SOPC_NodeId |
This structure describes a basic NodeID in OPC UA.
typedef struct SOPC_ExpandedNodeId SOPC_ExpandedNodeId |
ExpandedNodeId allows the namespace to be specified explicitly as a string or with an index in the Server’s namespace table.
typedef struct SOPC_DiagnosticInfo SOPC_DiagnosticInfo |
This structure provides vendor specific diagnostic information.
typedef struct SOPC_QualifiedName SOPC_QualifiedName |
typedef struct SOPC_LocalizedText SOPC_LocalizedText |
typedef enum SOPC_ExtObjectBodyEncoding SOPC_ExtObjectBodyEncoding |
This enum provides additional information on which data type format transported.
typedef struct SOPC_ExtensionObject SOPC_ExtensionObject |
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the other built-in data types. it contains fields that describes which data is transported and how it is described.
typedef enum SOPC_VariantArrayTypeFlag SOPC_VariantArrayTypeFlag |
typedef enum SOPC_VariantArrayType SOPC_VariantArrayType |
typedef union SOPC_VariantArrayValue SOPC_VariantArrayValue |
This union provides all possible contents for Variant arrays, depending on their SOPC_BuiltinId.
typedef union SOPC_VariantValue SOPC_VariantValue |
This union provides all possible contents for Variant, depending on their SOPC_BuiltinId.
typedef struct SOPC_Variant SOPC_Variant |
This structure provides variant encapsulation.
typedef struct SOPC_DataValue SOPC_DataValue |
Each attribute in OPC UA has a DataValue caracterized by the following structure.
typedef SOPC_ReturnStatus() SOPC_VariantValue_PfnCompCustom(const void *customContext, SOPC_BuiltinId builtInTypeId, const void *left, const void *right, int32_t *compResult) |
Generic comparison function type for values contained in a variant.
customContext | The custom context provided to the custom comparison function | |
builtInTypeId | The value type of left and right comparison operands | |
left | The left operand for which type is defined by builtInTypeId | |
right | The right operand for which type is defined by builtInTypeId | |
[out] | The | comparison result set when status returned is SOPC_STATUS_OK. When result is set it is expected to be:
|
typedef struct SOPC_BuiltInType_Handling SOPC_BuiltInType_Handling |
Built-in type handling. Provides all the generic service functions associated with a built-in type (except encoders and decoders which are declared in struct SOPC_BuiltInType_Encoders
). Also define the allocation size of objects of a built-in type.
enum SOPC_AttributeId |
Enumerated for all possible OPC UA attribute ids.
enum SOPC_BuiltinId |
enum SOPC_IdentifierType |
bool SOPC_IsGoodStatus | ( | SOPC_StatusCode | status | ) |
Evaluates if the provided status is Good.
status | The status to evaluate |
SOPC_StatusCode SOPC_StatusCode_ToTcpErrorCode | ( | SOPC_StatusCode | status | ) |
Restricts and converts the status code to the only status code authorized for TCP error code.
void SOPC_Boolean_Initialize | ( | SOPC_Boolean * | b | ) |
Initialize a pointer for a specific builtintype (Boolean, String, Int16...)
SOPC_BUILTINTYPE_Initialize()
will get the same description.b | The pointer related to the specific builtintype will be initialized to "0". |
void SOPC_Boolean_InitializeAux | ( | void * | value | ) |
Initialize a generic pointer using cast method.
SOPC_BUILTINTYPE_InitializeAux()
will get the same description. value | The pointer will be initialized to "0". |
SOPC_ReturnStatus SOPC_Boolean_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
Copy the content of a generic pointer to another one.
SOPC_BUILTINTYPE_CopyAux()
will get the same description.dest | a generic pointer that will be casted in specific builtintype pointer to receive src content. |
src | a generic pointer that will be casted in specific builtintype pointer and its content will be copied in dest . |
SOPC_ReturnStatus SOPC_Boolean_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
Compare the content of a generic pointer to another one and set the result in the comparison parameter.
SOPC_BUILTINTYPE_CompareAux()
will get the same description. left | a generic pointer that will be casted in specific builtintype pointer |
right | a generic pointer that will be casted in specific builtintype pointer |
comparison | these possible values are:
|
void SOPC_Boolean_Clear | ( | SOPC_Boolean * | b | ) |
Clear the content of a specific builtintype pointer.
SOPC_BUILTINTYPE_Clear()
will get the same description.b | The specific builtintype pointer content will be cleared to "0,false,Free": depending on if it is a String, Boolean, integer, etc. |
void SOPC_Boolean_ClearAux | ( | void * | value | ) |
Clear the content of a generic pointer.
SOPC_BUILTINTYPE_ClearAux()
will get the same description.value | The generic pointer content will be casted in specific builtintype pointer and its content will be cleared to "0,false,Free" depending on if it is a String, Boolean, integer, etc. |
void SOPC_SByte_Initialize | ( | SOPC_SByte * | sbyte | ) |
void SOPC_SByte_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_SByte_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_SByte_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_SByte_Clear | ( | SOPC_SByte * | sbyte | ) |
void SOPC_SByte_ClearAux | ( | void * | value | ) |
void SOPC_Byte_Initialize | ( | SOPC_Byte * | byte | ) |
void SOPC_Byte_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Byte_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Byte_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Byte_Clear | ( | SOPC_Byte * | byte | ) |
void SOPC_Byte_ClearAux | ( | void * | value | ) |
void SOPC_Int16_Initialize | ( | int16_t * | intv | ) |
void SOPC_Int16_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Int16_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Int16_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Int16_Clear | ( | int16_t * | intv | ) |
void SOPC_Int16_ClearAux | ( | void * | value | ) |
void SOPC_UInt16_Initialize | ( | uint16_t * | uint | ) |
void SOPC_UInt16_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_UInt16_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_UInt16_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_UInt16_Clear | ( | uint16_t * | uint | ) |
void SOPC_UInt16_ClearAux | ( | void * | value | ) |
void SOPC_Int32_Initialize | ( | int32_t * | intv | ) |
void SOPC_Int32_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Int32_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Int32_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Int32_Clear | ( | int32_t * | intv | ) |
void SOPC_Int32_ClearAux | ( | void * | value | ) |
void SOPC_UInt32_Initialize | ( | uint32_t * | uint | ) |
void SOPC_UInt32_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_UInt32_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_UInt32_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_UInt32_Clear | ( | uint32_t * | uint | ) |
void SOPC_UInt32_ClearAux | ( | void * | value | ) |
void SOPC_Int64_Initialize | ( | int64_t * | intv | ) |
void SOPC_Int64_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Int64_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Int64_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Int64_Clear | ( | int64_t * | intv | ) |
void SOPC_Int64_ClearAux | ( | void * | value | ) |
void SOPC_UInt64_Initialize | ( | uint64_t * | uint | ) |
void SOPC_UInt64_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_UInt64_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_UInt64_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_UInt64_Clear | ( | uint64_t * | uint | ) |
void SOPC_UInt64_ClearAux | ( | void * | value | ) |
void SOPC_Float_Initialize | ( | float * | f | ) |
void SOPC_Float_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Float_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Float_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Float_Clear | ( | float * | f | ) |
void SOPC_Float_ClearAux | ( | void * | value | ) |
void SOPC_Double_Initialize | ( | double * | d | ) |
void SOPC_Double_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Double_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Double_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Double_Clear | ( | double * | d | ) |
void SOPC_Double_ClearAux | ( | void * | value | ) |
void SOPC_ByteString_Initialize | ( | SOPC_ByteString * | bstring | ) |
void SOPC_ByteString_InitializeAux | ( | void * | value | ) |
SOPC_ByteString* SOPC_ByteString_Create | ( | void | ) |
Create a valid specific builtintype pointer.
SOPC_BUILTINTYPE_Create()
will get the same description.SOPC_BUILTINTYPE_Delete()
function.SOPC_ReturnStatus SOPC_ByteString_InitializeFixedSize | ( | SOPC_ByteString * | bstring, |
uint32_t | size | ||
) |
Allocate a number of size
bytes and initialize its content to "0", this allocation looks like calloc function.
SOPC_ByteString_Delete()
function.bstring | The ByteString pointer which will be initialized. |
size | number of bytes to be allocate. |
SOPC_ReturnStatus SOPC_ByteString_CopyFromBytes | ( | SOPC_ByteString * | dest, |
const SOPC_Byte * | bytes, | ||
int32_t | length | ||
) |
Return a deep copy of a Byte array.
[out] | dest | Must be a non-NULL pointer to an uninitialized ByteString. Do not use an already allocated string or operation will fail. |
bytes | A pointer to at least length bytes. (Can contain zeros) | |
length | The number of bytes to copy. |
SOPC_ReturnStatus SOPC_ByteString_Copy | ( | SOPC_ByteString * | dest, |
const SOPC_ByteString * | src | ||
) |
Return a deep copy of another ByteString. See SOPC_ByteString_CopyFromBytes.
SOPC_ReturnStatus SOPC_ByteString_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
void SOPC_ByteString_Clear | ( | SOPC_ByteString * | bstring | ) |
void SOPC_ByteString_ClearAux | ( | void * | value | ) |
void SOPC_ByteString_Delete | ( | SOPC_ByteString * | bstring | ) |
Free a specific builtintype pointer thus it will transform it into an invalid pointer.
SOPC_BUILTINTYPE_Delete()
will get the same description.SOPC_BUILTINTYPE_Create()
function need to call SOPC_BUILTINTYPE_Delete()
function to avoid leak memory or segmentation fault error. bstring | The specific builtintype pointer that will be freed. |
SOPC_ReturnStatus SOPC_ByteString_Compare | ( | const SOPC_ByteString * | left, |
const SOPC_ByteString * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_ByteString_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
bool SOPC_ByteString_Equal | ( | const SOPC_ByteString * | left, |
const SOPC_ByteString * | right | ||
) |
Compare the content of two specific builtintype pointer and return true or false according to the result.
SOPC_BUILTINTYPE_Equal()
will get the same description. left | The content of a specific builtintype pointer to be compare with another pointer of the same type. |
right | The content of a specific builtintype pointer to be compare with another pointer of the same type. |
void SOPC_String_Initialize | ( | SOPC_String * | string | ) |
void SOPC_String_InitializeAux | ( | void * | value | ) |
SOPC_String* SOPC_String_Create | ( | void | ) |
Allocates and return a new String (initialized as empty).
SOPC_ReturnStatus SOPC_String_CopyFromCString | ( | SOPC_String * | string, |
const char * | cString | ||
) |
Copy a C-String to the Data field of the SOPC_String object.
string | The pointer to the SOPC_String object |
cString | The C-String that would be copied in the Data field |
SOPC_ReturnStatus SOPC_String_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_String_InitializeFromCString | ( | SOPC_String * | string, |
const char * | cString | ||
) |
Initialize the content of a specific builtintype pointer with a C-String.
SOPC_BUILTINTYPE_InitializeFromCString()
will get the same description. string | Must be a non-NULL pointer to an uninitialized 'BUILTINTYPE'. Do not use an already allocated object or this will lead to a memory leak. |
cString | The C-String. |
char* SOPC_String_GetCString | ( | const SOPC_String * | string | ) |
Retrieve the C-String of a SOPC_String pointer or '\0' for a SOPC_String with length <= 0.
string | The SOPC_String pointer whose content will be extracted. |
const char* SOPC_String_GetRawCString | ( | const SOPC_String * | string | ) |
Retrieve the raw C-String of a SOPC_String pointer or '\0' for a SOPC_String with length <= 0.
string | The SOPC_String pointer which content will be extracted. |
SOPC_ReturnStatus SOPC_String_AttachFrom | ( | SOPC_String * | dest, |
SOPC_String * | src | ||
) |
Create a shallow copy of src into dest. The src string must not be cleared before dest is cleared.
dest | The pointer to the destination SOPC_String object. |
src | The pointer to the source SOPC_String object. |
SOPC_ReturnStatus SOPC_String_AttachFromCstring | ( | SOPC_String * | dest, |
const char * | src | ||
) |
Create a shallow copy of src (C-String) into dest. The src string must not be freed/modified before dest is cleared.
dest | The pointer to the destination SOPC_String object |
src | The C-String data that will be copied to the destination SOPC_String object |
SOPC_ReturnStatus SOPC_String_Copy | ( | SOPC_String * | dest, |
const SOPC_String * | src | ||
) |
Create a copy of src into dest.
dest | The pointer to the destination SOPC_String object. |
src | The pointer to the source SOPC_String object. |
void SOPC_String_Clear | ( | SOPC_String * | bstring | ) |
void SOPC_String_ClearAux | ( | void * | value | ) |
void SOPC_String_Delete | ( | SOPC_String * | bstring | ) |
SOPC_ReturnStatus SOPC_String_Compare | ( | const SOPC_String * | left, |
const SOPC_String * | right, | ||
bool | ignoreCase, | ||
int32_t * | comparison | ||
) |
Compare the content of a String pointer to another one and set the result in the comparison parameter.
SOPC_BUILTINTYPE_Compare()
will get approximately the same description (some parameters might change according to the goal function).left | a generic pointer that will be casted in specific builtintype pointer |
right | a generic pointer that will be casted in specific builtintype pointer |
ignoreCase | false if ignore sensitive case otherwise it is true. |
comparison | these possible values are:
|
SOPC_ReturnStatus SOPC_String_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
bool SOPC_String_Equal | ( | const SOPC_String * | left, |
const SOPC_String * | right | ||
) |
const char** SOPC_String_GetRawCStringArray | ( | int32_t | nbOfStrings, |
SOPC_String * | stringArray | ||
) |
Returns a NULL terminated C-string array without copying the strings. The caller is responsible to NOT modify the content of the returned array and to call SOPC_Free on the array (and NOT the array content) after use.
nbOfStrings | The number of elements in stringArray |
stringArray | The array of SOPC_String to retrieve as C-string array |
char** SOPC_String_GetCStringArray | ( | int32_t | nbOfStrings, |
SOPC_String * | stringArray | ||
) |
Returns a NULL terminated C-string array copying the strings.
nbOfStrings | The number of elements in stringArray |
stringArray | The array of SOPC_String to retrieve as C-string array |
void SOPC_XmlElement_Initialize | ( | SOPC_XmlElement * | xmlElt | ) |
void SOPC_XmlElement_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_XmlElement_Copy | ( | SOPC_XmlElement * | dest, |
const SOPC_XmlElement * | src | ||
) |
SOPC_ReturnStatus SOPC_XmlElement_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_XmlElement_Compare | ( | const SOPC_XmlElement * | left, |
const SOPC_XmlElement * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_XmlElement_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_XmlElement_Clear | ( | SOPC_XmlElement * | xmlElt | ) |
void SOPC_XmlElement_ClearAux | ( | void * | value | ) |
void SOPC_DateTime_Initialize | ( | SOPC_DateTime * | dateTime | ) |
void SOPC_DateTime_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_DateTime_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_DateTime_Compare | ( | const SOPC_DateTime * | left, |
const SOPC_DateTime * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_DateTime_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_DateTime_Clear | ( | SOPC_DateTime * | dateTime | ) |
void SOPC_DateTime_ClearAux | ( | void * | value | ) |
void SOPC_Guid_Initialize | ( | SOPC_Guid * | guid | ) |
void SOPC_Guid_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Guid_FromCString | ( | SOPC_Guid * | guid, |
const char * | str, | ||
size_t | len | ||
) |
char* SOPC_Guid_ToCString | ( | const SOPC_Guid * | guid | ) |
SOPC_ReturnStatus SOPC_Guid_Copy | ( | SOPC_Guid * | dest, |
const SOPC_Guid * | src | ||
) |
SOPC_ReturnStatus SOPC_Guid_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Guid_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Guid_Compare | ( | const SOPC_Guid * | left, |
const SOPC_Guid * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_Guid_Clear | ( | SOPC_Guid * | guid | ) |
void SOPC_Guid_ClearAux | ( | void * | value | ) |
void SOPC_NodeId_Initialize | ( | SOPC_NodeId * | nodeId | ) |
void SOPC_NodeId_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_NodeId_Copy | ( | SOPC_NodeId * | dest, |
const SOPC_NodeId * | src | ||
) |
SOPC_ReturnStatus SOPC_NodeId_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
void SOPC_NodeId_Clear | ( | SOPC_NodeId * | nodeId | ) |
void SOPC_NodeId_ClearAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_NodeId_Compare | ( | const SOPC_NodeId * | left, |
const SOPC_NodeId * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_NodeId_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
bool SOPC_NodeId_Equal | ( | const SOPC_NodeId * | left, |
const SOPC_NodeId * | right | ||
) |
bool SOPC_NodeId_IsNull | ( | const SOPC_NodeId * | nodeId | ) |
void SOPC_NodeId_Hash | ( | const SOPC_NodeId * | nodeId, |
uint64_t * | hash | ||
) |
char* SOPC_NodeId_ToCString | ( | const SOPC_NodeId * | nodeId | ) |
Allocates a C string containing the normalized representation of a NodeId. Must be freed by caller after use.
SOPC_ReturnStatus SOPC_NodeId_InitializeFromCString | ( | SOPC_NodeId * | pNid, |
const char * | cString, | ||
int32_t | len | ||
) |
Initializes a NodeId from a normalized C string. See SOPC_String_InitializeFromCString.
SOPC_NodeId* SOPC_NodeId_FromCString | ( | const char * | cString, |
int32_t | len | ||
) |
Alloacates and initializes a NodeId from a normalized C string. See SOPC_String_InitializeFromCString.
SOPC_Dict* SOPC_NodeId_Dict_Create | ( | bool | free_keys, |
SOPC_Dict_Free_Fct | value_free | ||
) |
Creates a dictionary which keys are NodeId.
free_keys | True if the dictionary is responsible for deleting keys on element removal |
value_free | The Free function for deleted elements. (Can be null if no deletion is required) |
void SOPC_ExpandedNodeId_Initialize | ( | SOPC_ExpandedNodeId * | expNodeId | ) |
void SOPC_ExpandedNodeId_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_ExpandedNodeId_Copy | ( | SOPC_ExpandedNodeId * | dest, |
const SOPC_ExpandedNodeId * | src | ||
) |
SOPC_ReturnStatus SOPC_ExpandedNodeId_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_ExpandedNodeId_Compare | ( | const SOPC_ExpandedNodeId * | left, |
const SOPC_ExpandedNodeId * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_ExpandedNodeId_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_ExpandedNodeId_Clear | ( | SOPC_ExpandedNodeId * | expNodeId | ) |
void SOPC_ExpandedNodeId_ClearAux | ( | void * | value | ) |
void SOPC_StatusCode_Initialize | ( | SOPC_StatusCode * | status | ) |
void SOPC_StatusCode_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_StatusCode_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_StatusCode_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_StatusCode_Clear | ( | SOPC_StatusCode * | status | ) |
void SOPC_StatusCode_ClearAux | ( | void * | value | ) |
void SOPC_DiagnosticInfo_Initialize | ( | SOPC_DiagnosticInfo * | diagInfo | ) |
void SOPC_DiagnosticInfo_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_DiagnosticInfo_Copy | ( | SOPC_DiagnosticInfo * | dest, |
const SOPC_DiagnosticInfo * | src | ||
) |
SOPC_ReturnStatus SOPC_DiagnosticInfo_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_DiagnosticInfo_Compare | ( | const SOPC_DiagnosticInfo * | left, |
const SOPC_DiagnosticInfo * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_DiagnosticInfo_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_DiagnosticInfo_Clear | ( | SOPC_DiagnosticInfo * | diagInfo | ) |
void SOPC_DiagnosticInfo_ClearAux | ( | void * | value | ) |
void SOPC_QualifiedName_Initialize | ( | SOPC_QualifiedName * | qname | ) |
void SOPC_QualifiedName_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_QualifiedName_Copy | ( | SOPC_QualifiedName * | dest, |
const SOPC_QualifiedName * | src | ||
) |
SOPC_ReturnStatus SOPC_QualifiedName_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_QualifiedName_Compare | ( | const SOPC_QualifiedName * | left, |
const SOPC_QualifiedName * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_QualifiedName_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_QualifiedName_Clear | ( | SOPC_QualifiedName * | qname | ) |
void SOPC_QualifiedName_ClearAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_QualifiedName_ParseCString | ( | SOPC_QualifiedName * | qname, |
const char * | str | ||
) |
char* SOPC_QualifiedName_ToCString | ( | const SOPC_QualifiedName * | qname | ) |
void SOPC_LocalizedText_Initialize | ( | SOPC_LocalizedText * | localizedText | ) |
void SOPC_LocalizedText_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_LocalizedText_Copy | ( | SOPC_LocalizedText * | dest, |
const SOPC_LocalizedText * | src | ||
) |
SOPC_ReturnStatus SOPC_LocalizedText_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_LocalizedText_Compare | ( | const SOPC_LocalizedText * | left, |
const SOPC_LocalizedText * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_LocalizedText_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_LocalizedText_Clear | ( | SOPC_LocalizedText * | localizedText | ) |
void SOPC_LocalizedText_ClearAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_LocalizedText_CopyFromArray | ( | SOPC_LocalizedText * | destSetOfLt, |
int32_t | nbElts, | ||
const SOPC_LocalizedText * | srcArrayOfLt | ||
) |
Copy into the given empty localized text an array of localized text to create a LocalizedText set. Note: array is considered to contain only LocalizedText single values (other values than default fields are ignored)
destSetOfLt | The destination empty LocalizedText which will contain data of the LocalizedText array (default field will contain index 0 of array and the list the rest) |
nbElts | Number of element of the array |
srcArrayOfLt | The source array of LocalizedText to be copied into a unique LocalizedText structure (as a set). The array should contain only single LocalizedText value (default fields only), the rest will be ignored. |
SOPC_ReturnStatus SOPC_LocalizedText_CopyToArray | ( | SOPC_LocalizedText ** | dstArray, |
int32_t * | nbElts, | ||
const SOPC_LocalizedText * | srcSetOfLt | ||
) |
Copy into a new LocalizedText array the content of a LocalizedText set (or single value).
dstArray | The destination pointer in which the array of LocalizedText will be allocated. The array contain only single LocalizedText value (default fields only). |
nbElts | The destination pointer in which the number of elements in the array will be stored |
srcSetOfLt | The source LocalizedText set (or single value) to be copied into the array. |
SOPC_ReturnStatus SOPC_LocalizedText_AddOrSetLocale | ( | SOPC_LocalizedText * | destSetOfLt, |
char ** | supportedLocaleIds, | ||
const SOPC_LocalizedText * | src | ||
) |
Add a src LocalizedText to the LocalizedText list of dest. If locale already exists overwrite it, if it is a NULL LocalizedText clear all localized text stored Note: src shall not contain a list of localized text, only default localized text fields.
destSetOfLt | The localizedText object in which additional (or existent) localized text will be added |
supportedLocaleIds | The NULL terminated list of supported locales of the owner of the localizedText object (use as read only) |
src | The localizedText object containing a single localized text, the locale shall be "" or one of the locales supported. Otherwise the SOPC_STATUS_NOT_SUPPORTED is returned. |
SOPC_ReturnStatus SOPC_LocalizedText_GetPreferredLocale | ( | SOPC_LocalizedText * | dest, |
char ** | preferredLocaleIds, | ||
const SOPC_LocalizedText * | srcSetOfLt | ||
) |
Set the single localized text dest
with preferred locale from the multiple localized texts contained in src
. The preferred locale is selected using the preferred locale Ids array localeIds
(ordered by preference priority).
src
localized textdest | The empty or single value localizedText object in a preferred localized text shall be set |
preferredLocaleIds | The NULL terminated list of preferred locales by priority order (use as read only) |
srcSetOfLt | The localizedText object containing multiple localized texts in which the preferred one shall be chosen. If none is compatible, choose the default one. |
SOPC_ReturnStatus SOPC_LocalizedTextArray_GetPreferredLocale | ( | SOPC_LocalizedText * | dest, |
char ** | preferredLocaleIds, | ||
int32_t | nbLocalizedText, | ||
const SOPC_LocalizedText * | srcArray | ||
) |
void SOPC_ExtensionObject_Initialize | ( | SOPC_ExtensionObject * | extObj | ) |
void SOPC_ExtensionObject_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_ExtensionObject_Copy | ( | SOPC_ExtensionObject * | dest, |
const SOPC_ExtensionObject * | src | ||
) |
SOPC_ReturnStatus SOPC_ExtensionObject_Move | ( | SOPC_ExtensionObject * | dest, |
SOPC_ExtensionObject * | src | ||
) |
SOPC_ReturnStatus SOPC_ExtensionObject_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_ExtensionObject_Compare | ( | const SOPC_ExtensionObject * | left, |
const SOPC_ExtensionObject * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_ExtensionObject_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
void SOPC_ExtensionObject_Clear | ( | SOPC_ExtensionObject * | extObj | ) |
void SOPC_ExtensionObject_ClearAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_ExtensionObject_CreateObject | ( | SOPC_ExtensionObject * | extObject, |
SOPC_EncodeableType * | encTyp, | ||
void ** | encObject | ||
) |
Create an encodeable object of the given encodeable type and set it in the given extension object.
extObject | Extension object in which the newly created encodeable object must be set |
encTyp | Encodeable type of the encodeable object to instantiate and initialize |
encObject | Pointer to be set with the address of the newly created encodeable object |
SOPC_Variant* SOPC_Variant_Create | ( | void | ) |
allocates and return a SOPC_Variant
void SOPC_Variant_Initialize | ( | SOPC_Variant * | variant | ) |
Initialize a Variant. Do not initialize existing variants without clearing them first.
bool SOPC_Variant_Initialize_Array | ( | SOPC_Variant * | var, |
SOPC_BuiltinId | builtInId, | ||
int32_t | length | ||
) |
Initialize a Variant as an array of given length. Do not initialize existing variants without clearing them first.
void SOPC_Null_ClearAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Null_CompareAux | ( | const void * | dest, |
const void * | src, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Null_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
void SOPC_Variant_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_Variant_Copy | ( | SOPC_Variant * | dest, |
const SOPC_Variant * | src | ||
) |
SOPC_ReturnStatus SOPC_Variant_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_Variant_HasRange | ( | const SOPC_Variant * | variant, |
const SOPC_NumericRange * | range, | ||
bool | fullRange, | ||
bool * | hasRange | ||
) |
Checks if the given range is valid for the given variant:
variant | The variant for which the range is checked | |
range | The range to check for given variant | |
fullRange | When true, the function checks that at least one element of the array is valid for range (typical for a "Read" array check). When false, the function checks that all elements of the array are valid for range (typical for a "Write" array check). | |
[out] | hasRange | The result pointer parameter, the result is true if the range is valid for the given variant and false otherwise |
SOPC_ReturnStatus SOPC_Variant_GetRange | ( | SOPC_Variant * | dst, |
const SOPC_Variant * | src, | ||
const SOPC_NumericRange * | range | ||
) |
SOPC_ReturnStatus SOPC_Variant_SetRange | ( | SOPC_Variant * | dst, |
const SOPC_Variant * | src, | ||
const SOPC_NumericRange * | range | ||
) |
SOPC_ReturnStatus SOPC_Variant_ShallowCopy | ( | SOPC_Variant * | dst, |
const SOPC_Variant * | src | ||
) |
void SOPC_Variant_Move | ( | SOPC_Variant * | dest, |
SOPC_Variant * | src | ||
) |
SOPC_ReturnStatus SOPC_Variant_Compare | ( | const SOPC_Variant * | left, |
const SOPC_Variant * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Variant_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Variant_CompareCustom | ( | SOPC_VariantValue_PfnCompCustom * | compCustom, |
const void * | compCustomContext, | ||
const SOPC_Variant * | left, | ||
const SOPC_Variant * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Variant_CompareRange | ( | const SOPC_Variant * | left, |
const SOPC_Variant * | right, | ||
const SOPC_NumericRange * | range, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_Variant_CompareCustomRange | ( | SOPC_VariantValue_PfnCompCustom * | compCustom, |
const void * | compCustomContext, | ||
const SOPC_Variant * | left, | ||
const SOPC_Variant * | right, | ||
const SOPC_NumericRange * | range, | ||
int32_t * | comparison | ||
) |
void SOPC_Variant_Clear | ( | SOPC_Variant * | variant | ) |
void SOPC_Variant_ClearAux | ( | void * | value | ) |
void SOPC_Variant_Delete | ( | SOPC_Variant * | variant | ) |
void SOPC_Variant_Print | ( | SOPC_Variant * | variant | ) |
int32_t SOPC_Variant_GetArrayOrMatrixLength | ( | const SOPC_Variant * | var | ) |
Returns the number of values contained in a Variant with Array or Matrix value type. It might be used in combination with SOPC_VARIANT_GET_ARRAY_VALUES_PTR macro to iterate over all values in a generic way for array and matrix variants of a known variant type.
var | The Variant with Array or Matrix type for which the number of values is requested |
var
is NULL or a single value variant, an ArrayDimension is <= 0, length computation based on ArrayDimensions overflow. const void* SOPC_Variant_Get_SingleValue | ( | const SOPC_Variant * | var, |
SOPC_BuiltinId | builtInTypeId | ||
) |
const void* SOPC_Variant_Get_ArrayValue | ( | const SOPC_Variant * | var, |
SOPC_BuiltinId | builtInTypeId, | ||
int32_t | index | ||
) |
bool SOPC_Variant_CopyInto_ArrayValueAt | ( | SOPC_Variant * | dest, |
SOPC_BuiltinId | builtInTypeId, | ||
int32_t | index, | ||
const void * | value | ||
) |
SOPC_NodeId* SOPC_Variant_Get_DataType | ( | const SOPC_Variant * | var | ) |
Returns the DataType identifier of the given variant as a newly allocated NodeId For built-in types except for ExtensionObject variant: built-in type NodeId is returned (single value / array) For ExtensionObject built-in type:
var | The Variant for which the DataType is returned |
int32_t SOPC_Variant_Get_ValueRank | ( | const SOPC_Variant * | var | ) |
bool SOPC_ValueRank_IsAssignableInto | ( | int32_t | dest_ValueRank, |
int32_t | src_valueRank | ||
) |
void SOPC_DataValue_Initialize | ( | SOPC_DataValue * | dataValue | ) |
void SOPC_DataValue_InitializeAux | ( | void * | value | ) |
SOPC_ReturnStatus SOPC_DataValue_Copy | ( | SOPC_DataValue * | dest, |
const SOPC_DataValue * | src | ||
) |
SOPC_ReturnStatus SOPC_DataValue_CopyAux | ( | void * | dest, |
const void * | src | ||
) |
SOPC_ReturnStatus SOPC_DataValue_Compare | ( | const SOPC_DataValue * | left, |
const SOPC_DataValue * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_DataValue_CompareAux | ( | const void * | left, |
const void * | right, | ||
int32_t * | comparison | ||
) |
SOPC_ReturnStatus SOPC_DataValue_CompareRange | ( | const SOPC_DataValue * | left, |
const SOPC_DataValue * | right, | ||
const SOPC_NumericRange * | range, | ||
int32_t * | comparison | ||
) |
void SOPC_DataValue_Clear | ( | SOPC_DataValue * | dataValue | ) |
void SOPC_DataValue_ClearAux | ( | void * | value | ) |
void SOPC_Initialize_Array | ( | int32_t | noOfElts, |
void * | eltsArray, | ||
size_t | sizeOfElt, | ||
SOPC_EncodeableObject_PfnInitialize * | initFct | ||
) |
SOPC_ReturnStatus SOPC_Copy_Array | ( | int32_t | noOfElts, |
void * | eltsArrayDest, | ||
const void * | eltsArraySrc, | ||
size_t | sizeOfElt, | ||
SOPC_EncodeableObject_PfnCopy * | opFct | ||
) |
SOPC_ReturnStatus SOPC_Comp_Array | ( | int32_t | noOfElts, |
const void * | eltsArrayLeft, | ||
const void * | eltsArrayRight, | ||
size_t | sizeOfElt, | ||
SOPC_EncodeableObject_PfnComp * | compFct, | ||
int32_t * | comparisonResult | ||
) |
SOPC_ReturnStatus SOPC_CompCustom_Array | ( | int32_t | noOfElts, |
const void * | eltsArrayLeft, | ||
const void * | eltsArrayRight, | ||
size_t | sizeOfElt, | ||
SOPC_VariantValue_PfnCompCustom * | compCustomFct, | ||
const void * | customCompContext, | ||
SOPC_BuiltinId | builtInId, | ||
int32_t * | comparisonResult | ||
) |
void SOPC_Clear_Array | ( | int32_t * | noOfElts, |
void ** | eltsArray, | ||
size_t | sizeOfElt, | ||
SOPC_EncodeableObject_PfnClear * | clearFct | ||
) |
S2OPC_COMMON_EXPORT const SOPC_NodeId* SOPC_BuiltInTypeId_To_DataTypeNodeId[26] |
S2OPC_COMMON_EXPORT const SOPC_BuiltInType_Handling SOPC_BuiltInType_HandlingTable[SOPC_BUILTINID_MAX+1] |
Table of all built-in type handlers. To be indexed with a SOPC_BuiltinId
. Provides all the generic service functions associated with each built-in type.