L_DicomResetDS

#include "Ltdic.h"

L_VOID EXT_FUNCTION L_DicomResetDS(hDS)

HDICOMDS hDS;

/* a DICOM handle */

Removes all items from the Data Set.

Parameter

Description

hDS

A DICOM handle.

Returns

None.

Comments

To allocate the memory for a Data Set, call L_DicomCreateDS.

To create a Data Set that includes elements for a specific class, use L_DicomInitDS.

After calling L_DicomResetDS, the handle to the data set is still valid. The data set can then be repopulated by calling L_DicomInitDS, L_DicomLoadDS , or L_DicomLoadDSMemory.

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:

L_DicomDeleteElement, L_DicomDeleteModule, L_DicomInitDS, L_DicomLoadDS, L_DicomLoadDSMemory

Topics:

Working with Data Sets

Example

/* This example removes all elements from the Data Set */

L_VOID Test()
{
   HDICOMDS hDS;

   hDS = L_DicomCreateDS(NULL);

   L_DicomInitDS(hDS, CLASS_CT_IMAGE_STORAGE, 0); 

   L_DicomResetDS
(hDS);

   L_DicomFreeDS(hDS);
}