IUF-SDK-3
Interventional Ultrasound Library
iufIqPatternListDict.c File Reference
#include <stdlib.h>
#include <string.h>
#include <hashmap.h>
#include <iuf.h>
#include <iufIqPatternListDictADT.h>
#include <iufIqPatternListPrivate.h>

Macros

#define MAX_NAME   1024
 

Functions

iuiqpald_t iufIqPatternListDictCreate ()
 Create an empty dictionary for IufPatternList objects. More...
 
int iufIqPatternListDictDeepDelete (iuiqpald_t dict)
 Delete the dictionary and its IufIqPatternList objects. More...
 
int iufIqPatternListDictDelete (iuiqpald_t dict)
 Delete the dictionary without deleting its IufPatternList objects. More...
 
int iufIqPatternListDictCompare (iuiqpald_t reference, iuiqpald_t actual)
 Compare two dictionaries of IufIqPatternList objects. More...
 
size_t iufIqPatternListDictGetSize (iuiqpald_t dict)
 Get the number of IufPatternList objects in the dictionary. More...
 
char ** iufIqPatternListDictGetKeys (iuiqpald_t dict)
 Return an array of char * containing the keys in the dictionary. More...
 
iuiqpal_t iufIqPatternListDictGet (iuiqpald_t dict, char *key)
 Get the IufIqPatternList object with label key from the dictionary. More...
 
int iufIqPatternListDictSet (iuiqpald_t dict, char *key, iuiqpal_t member)
 Add the IufIqPatternList object with label key to the dictionary. More...
 
int iufIqPatternListDictSave (iuiqpald_t dict, hid_t handle)
 
iuiqpald_t iufIqPatternListDictLoad (hid_t handle)
 

Macro Definition Documentation

◆ MAX_NAME

#define MAX_NAME   1024

Function Documentation

◆ iufIqPatternListDictCompare()

int iufIqPatternListDictCompare ( iuiqpald_t  reference,
iuiqpald_t  actual 
)

Compare two dictionaries of IufIqPatternList objects.

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

◆ iufIqPatternListDictCreate()

iuiqpald_t iufIqPatternListDictCreate ( void  )

Create an empty dictionary for IufPatternList objects.

Returns
Returns the created dictionary or IUIQPALD_INVALID in case of an error.

◆ iufIqPatternListDictDeepDelete()

int iufIqPatternListDictDeepDelete ( iuiqpald_t  dict)

Delete the dictionary and its IufIqPatternList objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an error.
Parameters
dictThe dictionary to be deleted

◆ iufIqPatternListDictDelete()

int iufIqPatternListDictDelete ( iuiqpald_t  dict)

Delete the dictionary without deleting its IufPatternList objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an invalid argument.
Parameters
dictThe dictionary to be deleted

◆ iufIqPatternListDictGet()

iuiqpal_t iufIqPatternListDictGet ( iuiqpald_t  dict,
char *  key 
)

Get the IufIqPatternList object with label key from the dictionary.

Returns
Returns IufIqPatternList key or IUIQPALD_INVALID if it is not found.
Parameters
dictThe dictionary of interest
keyThe label of the IufIqPatternList

◆ iufIqPatternListDictGetKeys()

char** iufIqPatternListDictGetKeys ( iuiqpald_t  dict)

Return an array of char * containing the keys in the dictionary.

Returns
Returns the keys as char * array

◆ iufIqPatternListDictGetSize()

size_t iufIqPatternListDictGetSize ( iuiqpald_t  dict)

Get the number of IufPatternList objects in the dictionary.

Returns
Returns the number of IufPatternList objects or -1 in case of an invalid dictionary.
Parameters
dictThe dictionary of interest

◆ iufIqPatternListDictLoad()

iuiqpald_t iufIqPatternListDictLoad ( hid_t  handle)

◆ iufIqPatternListDictSave()

int iufIqPatternListDictSave ( iuiqpald_t  dict,
hid_t  handle 
)

◆ iufIqPatternListDictSet()

int iufIqPatternListDictSet ( iuiqpald_t  dict,
char *  key,
iuiqpal_t  member 
)

Add the IufIqPatternList object with label key to the dictionary.

Returns
Returns IUF_E_OK when successful or IUF_ERR_VALUE in case of an error.
Parameters
dictThe dictionary of interest
keyThe label of the IufPatternList
memberThe IufPatternList