|
IUF-SDK-3
Interventional Ultrasound Library
|
#include <stdlib.h>#include <string.h>#include <hashmap.h>#include <iuf.h>#include <iufSourcePrivate.h>Data Structures | |
| struct | HashableSource |
| struct | IufSourceDict |
Macros | |
| #define | MAX_NAME 1024 |
Functions | |
| iusd_t | iufSourceDictCreate () |
| Create an empty dictionary. More... | |
| int | iufSourceDictDeepDelete (iusd_t dict) |
| Deletes a source dictionary and all its sources. More... | |
| int | iufSourceDictDelete (iusd_t dict) |
| Deletes a source dictionary without deleting all the sources. More... | |
| int | iufSourceDictCompare (iusd_t reference, iusd_t actual) |
| Compare two dictionaries with each other (order of arguments doesn't matter) More... | |
| int | iufSourceDictGetSize (iusd_t dict) |
| Get the number of sources in the dictionary. More... | |
| ius_t | iufSourceDictGet (iusd_t dict, char *key) |
| Get a sources from the dictionary. More... | |
| char ** | iufSourceDictGetKeys (iusd_t dict) |
| Get the keys currently available in the dict. More... | |
| int | iufSourceDictSet (iusd_t dict, char *key, ius_t member) |
| Add a sources to the dictionary. More... | |
| int | iufSourceDictSave (iusd_t dict, hid_t handle) |
| iusd_t | iufSourceDictLoad (hid_t handle) |
| struct HashableSource |
| Data Fields | ||
|---|---|---|
| char | key[256] | |
| ius_t | source | |
| struct IufSourceDict |
| Data Fields | ||
|---|---|---|
| IUF_BOOL | deepDelete | |
| char ** | keys | |
| struct hashmap | map | |
| #define MAX_NAME 1024 |
| iusd_t iufSourceDictCreate | ( | void | ) |
Create an empty dictionary.
| int iufSourceDictDeepDelete | ( | iusd_t | dict | ) |
Deletes a source dictionary and all its sources.
| dict | The dictionary of interest |
| int iufSourceDictDelete | ( | iusd_t | dict | ) |
Deletes a source dictionary without deleting all the sources.
| dict | The dictionary of interest |
Get a sources from the dictionary.
key or IUF_INVALID if it could not be found | dict | The dictionary of interest |
| key | The label of the source |
| char** iufSourceDictGetKeys | ( | iusd_t | dict | ) |
Get the keys currently available in the dict.
| dict | The dictionary of interest |
| int iufSourceDictGetSize | ( | iusd_t | dict | ) |
Get the number of sources in the dictionary.
| dict | The dictionary of interest |
| iusd_t iufSourceDictLoad | ( | hid_t | handle | ) |
| int iufSourceDictSave | ( | iusd_t | dict, |
| hid_t | handle | ||
| ) |
Add a sources to the dictionary.
| dict | THe dictionary of interest |
| key | The label of the source that is added |
| member | The source that is added |