IUF-SDK-3
Interventional Ultrasound Library
iufReceiveSettingsDict.c File Reference
#include <stdlib.h>
#include <string.h>
#include <iuf.h>
#include <iufReceiveSettingsPrivate.h>
#include <iufReceiveSettingsDictADT.h>

Functions

iursd_t iufReceiveSettingsDictCreate ()
 create an empty dictionary More...
 
int iufReceiveSettingsDictDeepDelete (iursd_t dict)
 Delete the dictionary and its IufReceiveSettings. More...
 
int iufReceiveSettingsDictDelete (iursd_t dict)
 Delete the dictionary without deleting its IufReceiveSettings. More...
 
int iufReceiveSettingsDictCompare (iursd_t reference, iursd_t actual)
 Compare two dictionaries with each other. More...
 
size_t iufReceiveSettingsDictGetSize (iursd_t dict)
 Get the number of entries in the dictionary. More...
 
iurs_t iufReceiveSettingsDictGet (iursd_t dict, char *key)
 Get the IufReceiveSettings from the dictionary that has the label key. More...
 
char ** iufReceiveSettingsDictGetKeys (iursd_t dict)
 Get the keys currently available in the dict. More...
 
int iufReceiveSettingsDictSet (iursd_t dict, char *key, iurs_t member)
 Get the IufReceiveSettings from the dictionary that has the label key. More...
 
int iufReceiveSettingsDictSave (iursd_t dict, hid_t handle)
 
iursd_t iufReceiveSettingsDictLoad (hid_t handle)
 

Function Documentation

◆ iufReceiveSettingsDictCompare()

int iufReceiveSettingsDictCompare ( iursd_t  reference,
iursd_t  actual 
)

Compare two dictionaries with each other.

Returns
IUF_TRUE in case the dictionaries are equal and IUF_FALSE otherwise.
Parameters
referenceThe dictionary to compare to
actualThe dictionary to compare with

◆ iufReceiveSettingsDictCreate()

iursd_t iufReceiveSettingsDictCreate ( void  )

create an empty dictionary

Returns
Returns the created dictionary or NULL in case of an error

◆ iufReceiveSettingsDictDeepDelete()

int iufReceiveSettingsDictDeepDelete ( iursd_t  dict)

Delete the dictionary and its IufReceiveSettings.

Returns
IUF_E_OK in case of success and IUF_ERR_VALUE in case of an error.
Parameters
dictThe dictionary of interest

◆ iufReceiveSettingsDictDelete()

int iufReceiveSettingsDictDelete ( iursd_t  dict)

Delete the dictionary without deleting its IufReceiveSettings.

Returns
IUF_E_OK in case of success and IUF_ERR_VALUE in case of an invalid argument.
Parameters
dictThe dictionary of interest

◆ iufReceiveSettingsDictGet()

iurs_t iufReceiveSettingsDictGet ( iursd_t  dict,
char *  key 
)

Get the IufReceiveSettings from the dictionary that has the label key.

Returns
Returns the requested IufReceiveSettings or IURS_INVALID in case of an error
Parameters
dictThe dictionary of interest
keyThe label of the receiveSettings to return

◆ iufReceiveSettingsDictGetKeys()

char** iufReceiveSettingsDictGetKeys ( iursd_t  dict)

Get the keys currently available in the dict.

Returns
array (with size iufTransmitApodizationDictGetSize) of keys.
Parameters
dictThe dictionary of interest

◆ iufReceiveSettingsDictGetSize()

size_t iufReceiveSettingsDictGetSize ( iursd_t  dict)

Get the number of entries in the dictionary.

Returns
Returns the number of IufReceiveSettings of the dictionary, or -1 in case of an error.
Parameters
dictThe dictionary of interest

◆ iufReceiveSettingsDictLoad()

iursd_t iufReceiveSettingsDictLoad ( hid_t  handle)

◆ iufReceiveSettingsDictSave()

int iufReceiveSettingsDictSave ( iursd_t  dict,
hid_t  handle 
)

◆ iufReceiveSettingsDictSet()

int iufReceiveSettingsDictSet ( iursd_t  dict,
char *  key,
iurs_t  member 
)

Get the IufReceiveSettings from the dictionary that has the label key.

Returns
Returns the requested IufReceiveSettings or IURS_INVALID in case of an error
Parameters
dictThe dictionary of interest
keyThe label of the IufReceiveSettings that to be added
memberThe IufReceiveSettings object