IUF-SDK-3
Interventional Ultrasound Library
iufReceiveChannelMapDict.c File Reference
#include <stdlib.h>
#include <string.h>
#include <hashmap.h>
#include <iuf.h>
#include <iufReceiveChannelMapDictADT.h>
#include <iufReceiveChannelMapPrivate.h>

Macros

#define MAX_NAME   1024
 

Functions

iurcmd_t iufReceiveChannelMapDictCreate ()
 Create an empty dictionary. More...
 
int iufReceiveChannelMapDictDelete (iurcmd_t dict)
 Delete a dictionary without deleting the IufReceiveChannelMap objects. More...
 
int iufReceiveChannelMapDictDeepDelete (iurcmd_t dict)
 Delete a dictionary and its IufReceiveChannelMap objects. More...
 
int iufReceiveChannelMapDictCompare (iurcmd_t reference, iurcmd_t actual)
 Compare two IufReceiveChannelMapDict ojects with each other. More...
 
size_t iufReceiveChannelMapDictGetSize (iurcmd_t dict)
 Gets the number of IufReceiveChannelMap objects in the dictionary. More...
 
iurcm_t iufReceiveChannelMapDictGet (iurcmd_t dict, char *key)
 Gets the IufReceiveChannelMap with label key from the dictionary. More...
 
char ** iufReceiveChannelMapDictGetKeys (iurcmd_t dict)
 Get the keys currently available in the dict. More...
 
int iufReceiveChannelMapDictSet (iurcmd_t dict, char *key, iurcm_t member)
 Add a IufReceiveChannelMap with label key to the dictionary. More...
 
herr_t iufReceiveChannelMapDictSave (iurcmd_t dict, hid_t handle)
 
iurcmd_t iufReceiveChannelMapDictLoad (hid_t handle)
 

Macro Definition Documentation

◆ MAX_NAME

#define MAX_NAME   1024

Function Documentation

◆ iufReceiveChannelMapDictCompare()

int iufReceiveChannelMapDictCompare ( iurcmd_t  reference,
iurcmd_t  actual 
)

Compare two IufReceiveChannelMapDict ojects with each other.

Returns
Return IUF_TRUE in case the dictionaries are equal and IUF_FALSE otherwise
Parameters
referencethe dictionary to compare to
actualthe dictionary to compare with

◆ iufReceiveChannelMapDictCreate()

iurcmd_t iufReceiveChannelMapDictCreate ( void  )

Create an empty dictionary.

Returns
returns the created dictionary or IURCMD_INVALID in case of an error.

◆ iufReceiveChannelMapDictDeepDelete()

int iufReceiveChannelMapDictDeepDelete ( iurcmd_t  dict)

Delete a dictionary and its IufReceiveChannelMap objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE otherwise.
Parameters
dictthe dictionary of interest

◆ iufReceiveChannelMapDictDelete()

int iufReceiveChannelMapDictDelete ( iurcmd_t  dict)

Delete a dictionary without deleting the IufReceiveChannelMap objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an invalid argument.
Parameters
dictthe dictionary of interest

◆ iufReceiveChannelMapDictGet()

iurcm_t iufReceiveChannelMapDictGet ( iurcmd_t  dict,
char *  key 
)

Gets the IufReceiveChannelMap with label key from the dictionary.

Returns
Returns the requested IufReceiveChannelMap or IURCMD_INVALID in case it could not be found
Parameters
dictThe dictionary of interest
keyThe label of the IufReceiveChannelMap

◆ iufReceiveChannelMapDictGetKeys()

char** iufReceiveChannelMapDictGetKeys ( iurcmd_t  dict)

Get the keys currently available in the dict.

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

◆ iufReceiveChannelMapDictGetSize()

size_t iufReceiveChannelMapDictGetSize ( iurcmd_t  dict)

Gets the number of IufReceiveChannelMap objects in the dictionary.

Returns
Returns the number of IufReceiveChannelMap objects
Parameters
dictthe dictionary of interest

◆ iufReceiveChannelMapDictLoad()

iurcmd_t iufReceiveChannelMapDictLoad ( hid_t  handle)

◆ iufReceiveChannelMapDictSave()

herr_t iufReceiveChannelMapDictSave ( iurcmd_t  dict,
hid_t  handle 
)

◆ iufReceiveChannelMapDictSet()

int iufReceiveChannelMapDictSet ( iurcmd_t  dict,
char *  key,
iurcm_t  member 
)

Add a IufReceiveChannelMap with label key to the dictionary.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an invalid argument.
Parameters
dictThe dictionary of interest
keyThe label of the IufReceiveChannelMap that is added
memberThe IufReceiveChannelMap