LDicomTag::Delete

#include "Ltdic.h"

static pDICOMTAG LDicomTag::Delete(pTag)

pDICOMTAG pTag;

/* pointer to a DICOMTAG structure */

Deletes the specified item from the Data Element Tag Table.

Parameter

Description

pTag

Pointer to a DICOMTAG 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 LDicomTag::Reset.

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

See Also

Functions:

LDicomTag::Reset, LDicomTag::GetFirst, LDicomTag::GetLast, LDicomTag::GetPrev, LDicomTag::GetNext, LDicomTag::Find, LDicomTag::FindIndex, LDicomTag::Insert

Topics:

Working with Tags

Example

/* This example removes an item from the Tag table */

L_VOID Test()
{
   pDICOMTAG pTag;

   pTag = LDicomTag::Find(TAG_FILE_META_INFORMATION_VERSION);
   if (pTag != NULL)
   {
      LDicomTag::Delete(pTag);
   }
}