L_DicomDeleteUID

#include "Ltdic.h"

L_LTDIC_API pDICOMUID L_DicomDeleteUID(pUID)

pDICOMUID pUID;

/* pointer to a DICOMUID structure */

Deletes the specified item from the UID Table.

Parameter

Description

pUID

Pointer to a DICOMUID structure that contains the item to be deleted.

Returns

!NULL

A pointer to an adjacent item. If there is an item following the item being deleted, the returned pointer will point to this item. If the item being deleted does not have an item following it, but has an item preceding it, the pointer points to the item immediately preceding the deleted item.

NULL

The table is empty.

Comments

You can remove all items from the table using L_DicomResetUID.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Platforms

Win32, x64

See Also

Functions:

L_DicomResetUID, L_DicomGetFirstUID, L_DicomGetLastUID, L_DicomGetPrevUID, L_DicomGetNextUID, L_DicomFindUID, L_DicomFindIndexUID, L_DicomInsertUID, L_DicomLoadXmlUID

Topics:

Working with Unique Identifiers

Example

This example removes an item from the UID table

L_INT DicomDeleteUIDExample(L_VOID)
{
   pDICOMUID pUID;

   pUID = L_DicomFindUID(TEXT("1.2.840.10008.1.1"));
   if (pUID != NULL)
      L_DicomDeleteUID(pUID);

   return DICOM_SUCCESS;
}