IUF-SDK-3
Interventional Ultrasound Library
iufFile.c File Reference
#include <iuf.h>
#include <iufHistoryNodePrivate.h>
#include <iufInputFilePrivate.h>
#include <memory.h>
#include <string.h>

Data Structures

struct  IufFile
 

Functions

int iufFileDelete (iuf_t file)
 Deletes an IufFile object. returns IUF_E_OK when successful and IUF_ERR_VALUE otherwise. More...
 
int iufFileCompare (iuf_t reference, iuf_t actual)
 Compares two IufFile objects with each other. returns IUF_TRUE when the two files are equal and IUF_FALSE otherwise. More...
 
iuf_t iufFileLoad (char *pFilename)
 Create an IufFile from the file pFilename. More...
 
iuhn_t iufFileGetHistoryTree (iuf_t file)
 Gets the history node of the IufFile. More...
 
const char * iufFileGetType (iuf_t file)
 Gets the type label of the IufFile. More...
 
int iufFileSetHistoryTree (iuf_t file, iuhn_t history)
 Sets the IufHistoryNode of the IufFile. More...
 

Data Structure Documentation

◆ IufFile

struct IufFile
Data Fields
hid_t handle

file handle

iuhn_t history

Function Documentation

◆ iufFileCompare()

int iufFileCompare ( iuf_t  reference,
iuf_t  actual 
)

Compares two IufFile objects with each other. returns IUF_TRUE when the two files are equal and IUF_FALSE otherwise.

Parameters
referenceThe IufFile to compare to
actualThe IufFile to compare with

◆ iufFileDelete()

int iufFileDelete ( iuf_t  file)

Deletes an IufFile object. returns IUF_E_OK when successful and IUF_ERR_VALUE otherwise.

Parameters
fileThe IufFile to be deleted

◆ iufFileGetHistoryTree()

iuhn_t iufFileGetHistoryTree ( iuf_t  file)

Gets the history node of the IufFile.

Returns
Returns the IufHistoryNode when successful or NULL in case of an error
Parameters
fileThe IufFile of interest

◆ iufFileGetType()

const char* iufFileGetType ( iuf_t  file)

Gets the type label of the IufFile.

Returns
Returns the type label
Parameters
fileThe IufFile of interest

◆ iufFileLoad()

iuf_t iufFileLoad ( char *  pFilename)

Create an IufFile from the file pFilename.

Returns
Return the IufFile or IUFI_INVALID if the file could not be loaded.
Parameters
pFilenameThe filename of the IufFile

◆ iufFileSetHistoryTree()

int iufFileSetHistoryTree ( iuf_t  file,
iuhn_t  history 
)

Sets the IufHistoryNode of the IufFile.

Returns
Returns IUF_E_OK when successful and IUF_ERR_VALUE otherwise.
Parameters
filethe IufFile of interest
historythe IufHistoryNode that is set