IUF-SDK-3
Interventional Ultrasound Library
iufDemodulationDict.c File Reference
#include <stdlib.h>
#include <string.h>
#include <hashmap.h>
#include <iuf.h>
#include <iufIqFileStructure.h>
#include <iufDemodulationPrivate.h>
#include <iufDemodulationDictADT.h>

Functions

iudmd_t iufDemodulationDictCreate ()
 create an empty dictionary More...
 
int iufDemodulationDictDeepDelete (iudmd_t dict)
 Delete the dictionary and its IufDemodulation. More...
 
int iufDemodulationDictDelete (iudmd_t dict)
 Delete the dictionary without deleting its IufDemodulation. More...
 
int iufDemodulationDictCompare (iudmd_t reference, iudmd_t actual)
 Compare two dictionaries with each other. More...
 
size_t iufDemodulationDictGetSize (iudmd_t dict)
 Get the number of entries in the dictionary. More...
 
iudm_t iufDemodulationDictGet (iudmd_t dict, char *key)
 Get the IufDemodulation from the dictionary that has the label key. More...
 
char ** iufDemodulationDictGetKeys (iudmd_t dict)
 Get the IufPatternList object with label key from the dictionary. More...
 
int iufDemodulationDictSet (iudmd_t dict, char *key, iudm_t member)
 Get the IufDemodulation from the dictionary that has the label key. More...
 
int iufDemodulationDictSave (iudmd_t dict, hid_t handle)
 
iudmd_t iufDemodulationDictLoad (hid_t handle)
 

Function Documentation

◆ iufDemodulationDictCompare()

int iufDemodulationDictCompare ( iudmd_t  reference,
iudmd_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

◆ iufDemodulationDictCreate()

iudmd_t iufDemodulationDictCreate ( void  )

create an empty dictionary

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

◆ iufDemodulationDictDeepDelete()

int iufDemodulationDictDeepDelete ( iudmd_t  dict)

Delete the dictionary and its IufDemodulation.

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

◆ iufDemodulationDictDelete()

int iufDemodulationDictDelete ( iudmd_t  dict)

Delete the dictionary without deleting its IufDemodulation.

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

◆ iufDemodulationDictGet()

iudm_t iufDemodulationDictGet ( iudmd_t  dict,
char *  key 
)

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

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

◆ iufDemodulationDictGetKeys()

char** iufDemodulationDictGetKeys ( iudmd_t  dict)

Get the IufPatternList object with label key from the dictionary.

Returns
Returns IufPatternList key or IUPALD_INVALID if it is not found.
Parameters
dictThe dictionary of interest

◆ iufDemodulationDictGetSize()

size_t iufDemodulationDictGetSize ( iudmd_t  dict)

Get the number of entries in the dictionary.

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

◆ iufDemodulationDictLoad()

iudmd_t iufDemodulationDictLoad ( hid_t  handle)

◆ iufDemodulationDictSave()

int iufDemodulationDictSave ( iudmd_t  dict,
hid_t  handle 
)

◆ iufDemodulationDictSet()

int iufDemodulationDictSet ( iudmd_t  dict,
char *  key,
iudm_t  member 
)

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

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