LDicomTag::Delete

#include "Ltdic.h"

static pDICOMTAG LDicomTag::Delete(pTag)

Deletes the specified item from the Data Element Tag Table.

Parameters

pDICOMTAG pTag

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

Returns

Value Meaning
!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

Platforms

Win32, x64

See Also

Functions

Topics

Example

This example removes an item from the Tag table.

L_INT LDicomTag_DeleteExample() 
{ 
   pDICOMTAG pTag; 
 
   pTag = LDicomTag::Find(TAG_FILE_META_INFORMATION_VERSION); 
   if (pTag != NULL) 
   { 
      LDicomTag::Delete(pTag); 
   } 
 
   return DICOM_SUCCESS; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help