LDicomDS::ExistsElement

Summary

Determines whether the pointer to the structure is valid.

Syntax

#include "Ltdic.h"

L_BOOL LDicomDS::ExistsElement(pElement)

Parameters

pDICOMELEMENT pElement

Pointer to a DICOMELEMENT structure.

Returns

Value Meaning
TRUE pElement is a valid pointer.
FALSE pElement is NULL.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

This example checks if the pointer of an element.

L_INT LDicomDS_ExistsElementExample() 
{ 
   LDicomDS*      pDS; 
   pDICOMELEMENT  pElement; 
 
   pDS = new LDicomDS(NULL); 
 
   pDS->InitDS( CLASS_CT_IMAGE_STORAGE, 0);  
 
   pElement = pDS->InsertElement(NULL, FALSE, TAG_INSTITUTION_CODE_SEQUENCE,  
                                 VR_SQ, TRUE, ELEMENT_INDEX_MAX); 
 
   if (pDS->ExistsElement(pElement) == FALSE) 
   { 
      MessageBox(NULL, TEXT("The element does not exist in Data Set"), TEXT("Notice"), MB_OK); 
   } 
 
   delete pDS; 
 
   return DICOM_SUCCESS; 
} 

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

LEADTOOLS DICOM C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.