High Performance OPC UA Server SDK  1.2.0.193
ua_arraytesttype Struct Reference

A complex type containing all possible array types used for testing. More...

#include <arraytesttype.h>

Data Fields

bool * booleans
 
int32_t num_booleans
 
int8_t * sbytes
 
int32_t num_sbytes
 
int16_t * int16s
 
int32_t num_int16s
 
uint16_t * uint16s
 
int32_t num_uint16s
 
int32_t * int32s
 
int32_t num_int32s
 
uint32_t * uint32s
 
int32_t num_uint32s
 
int64_t * int64s
 
int32_t num_int64s
 
uint64_t * uint64s
 
int32_t num_uint64s
 
float * floats
 
int32_t num_floats
 
double * doubles
 
int32_t num_doubles
 
struct ua_stringstrings
 
int32_t num_strings
 
ua_datetimedate_times
 
int32_t num_date_times
 
struct ua_guidguids
 
int32_t num_guids
 
struct ua_bytestringbyte_strings
 
int32_t num_byte_strings
 
struct ua_xmlelementxml_elements
 
int32_t num_xml_elements
 
struct ua_nodeidnode_ids
 
int32_t num_node_ids
 
struct ua_expandednodeidexpanded_node_ids
 
int32_t num_expanded_node_ids
 
ua_statuscodestatus_codes
 
int32_t num_status_codes
 
struct ua_diagnosticinfodiag_infos
 
int32_t num_diag_infos
 
struct ua_qualifiednamequalified_names
 
int32_t num_qualified_names
 
struct ua_localizedtextlocalized_texts
 
int32_t num_localized_texts
 
struct ua_extensionobjectextension_objects
 
int32_t num_extension_objects
 
struct ua_datavaluedata_values
 
int32_t num_data_values
 
struct ua_variantvariants
 
int32_t num_variants
 
enum ua_enumeratedtesttypeenumerated_values
 
int32_t num_enumerated_values
 

Related Functions

void ua_arraytesttype_init (struct ua_arraytesttype *t)
 Initialize an ua_arraytesttype struct with a valid value. More...
 
void ua_arraytesttype_clear (struct ua_arraytesttype *t)
 Clear all resources alloctated in an ua_arraytesttype struct. More...
 
int ua_arraytesttype_compare (const struct ua_arraytesttype *a, const struct ua_arraytesttype *b)
 Compare two ua_arraytesttype structs. More...
 
int ua_arraytesttype_copy (struct ua_arraytesttype *dst, const struct ua_arraytesttype *src)
 Create a copy of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_booleans_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the booleans array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_sbytes_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the sbytes array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_int16s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the int16s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_uint16s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the uint16s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_int32s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the int32s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_uint32s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the uint32s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_int64s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the int64s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_uint64s_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the uint64s array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_floats_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the floats array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_doubles_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the doubles array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_strings_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the strings array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_date_times_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the date_times array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_guids_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the guids array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_byte_strings_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the byte_strings array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_xml_elements_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the xml_elements array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_node_ids_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the node_ids array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_expanded_node_ids_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the expanded_node_ids array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_status_codes_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the status_codes array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_diag_infos_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the diag_infos array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_qualified_names_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the qualified_names array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_localized_texts_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the localized_texts array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_extension_objects_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the extension_objects array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_data_values_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the data_values array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_variants_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the variants array of a ua_arraytesttype struct. More...
 
static int ua_arraytesttype_resize_enumerated_values_array (struct ua_arraytesttype *val, int32_t new_len)
 Resize the enumerated_values array of a ua_arraytesttype struct. More...
 

Detailed Description

A complex type containing all possible array types used for testing.

Friends And Related Function Documentation

void ua_arraytesttype_clear ( struct ua_arraytesttype t)
related

Clear all resources alloctated in an ua_arraytesttype struct.

Frees allocated memory like arrays and resets numeric values. The ua_arraytesttype struct itself is not freed and must be freed by the caller if required. This function always succeeds for a valid ua_arraytesttype struct, that was validly decoded, initilized by ua_arraytesttype_init or created with ua_arraytesttype_copy.

int ua_arraytesttype_compare ( const struct ua_arraytesttype a,
const struct ua_arraytesttype b 
)
related

Compare two ua_arraytesttype structs.

Compares the content of the ua_arraytesttype struct a to the content of the ua_arraytesttype struct b. If a is smaller than b, an integer less than zero is returned, if a is bigger than b, an integer greater than zero is returned. If both structs are equal zero is returned.

This function creates a total order on ua_arraytesttype structs, so it is well suited to not only determine equality, but also sort multiple instances of this struct.

int ua_arraytesttype_copy ( struct ua_arraytesttype dst,
const struct ua_arraytesttype src 
)
related

Create a copy of a ua_arraytesttype struct.

Copy all fields from struct ua_arraytesttype src to dst. Creates a deep copy so all content is recusively copied and both src and dst can be used and must be freed separately.

dst is not cleared before the copy operation, so it must not have any allocated data. It may or may not be initilized by the caller before copy.

Returns
Zero on success or ua_statuscode on failure.
void ua_arraytesttype_init ( struct ua_arraytesttype t)
related

Initialize an ua_arraytesttype struct with a valid value.

After initialization the fields of the struct are set to valid and consistent values and can safley be accessed. An initialized ua_arraytesttype struct can also be passed to ua_arraytesttype_compare, ua_arraytesttype_copy and ua_arraytesttype_clear. This function will always succeed as long as an ua_arraytesttype struct is passed to it.

static int ua_arraytesttype_resize_booleans_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the booleans array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the booleans array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_byte_strings_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the byte_strings array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the byte_strings array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_data_values_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the data_values array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the data_values array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_date_times_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the date_times array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the date_times array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_diag_infos_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the diag_infos array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the diag_infos array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_doubles_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the doubles array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the doubles array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_enumerated_values_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the enumerated_values array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the enumerated_values array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_expanded_node_ids_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the expanded_node_ids array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the expanded_node_ids array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_extension_objects_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the extension_objects array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the extension_objects array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_floats_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the floats array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the floats array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_guids_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the guids array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the guids array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_int16s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the int16s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the int16s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_int32s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the int32s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the int32s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_int64s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the int64s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the int64s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_localized_texts_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the localized_texts array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the localized_texts array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_node_ids_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the node_ids array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the node_ids array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_qualified_names_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the qualified_names array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the qualified_names array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_sbytes_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the sbytes array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the sbytes array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_status_codes_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the status_codes array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the status_codes array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_strings_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the strings array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the strings array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_uint16s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the uint16s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the uint16s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_uint32s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the uint32s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the uint32s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_uint64s_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the uint64s array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the uint64s array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_variants_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the variants array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the variants array in number of members.
Returns
Zero on success or ua_statuscode on failure.
static int ua_arraytesttype_resize_xml_elements_array ( struct ua_arraytesttype val,
int32_t  new_len 
)
related

Resize the xml_elements array of a ua_arraytesttype struct.

Depending on new_len and the current size of the array, the array will be created, increased, decreased or deleted. In case array members are removed these are cleared properly, new array members are initialized with zero.

Parameters
new_lenNew length of the xml_elements array in number of members.
Returns
Zero on success or ua_statuscode on failure.

The documentation for this struct was generated from the following files: