LDicomDS::IsVolatileElement

#include "Ltdic.h"

L_BOOL LDicomDS::IsVolatileElement(pElement)

pDICOMELEMENT pElement;

/* pointer to a DICOMELEMENT structure */

Determines whether the specified element is volatile.

Parameter

Description

pElement

Pointer to a DICOMELEMENT structure.

Returns

TRUE

The element is volatile.

FALSE

The element is not volatile.

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

Topics:

Working with Data Sets

Example

/* This example checks if an element is volatile */

L_VOID Test()
{
   LDicomDS *pDS;
   pDICOMELEMENT pElement;

   pDS = new LDicomDS(NULL);

   pDS->InitDS(CLASS_XA_BIPLANE_IMAGE_STORAGE_RETIRED, DS_LITTLE_ENDIAN | DS_EXPLICIT_VR);

   pElement = pDS->GetFirstElement(pElement, FALSE, TRUE);

   if (pDS->IsVolatileElement(pElement))
   {
      MessageBox(NULL, "Volatile", "Notice", MB_OK);
   }

   delete pDS;
}