#include "ltdic.h"
L_LTDIC_API L_VOID L_DicomGetAbstract(hPDU, nID, strAbstract, SizeInWords)
Gets the Abstract Syntax for the specified Presentation Context of the specified DICOM Associate.
A DICOM Associate handle.
Presentation ID of the Presentation Context from which to get the abstract syntax. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
Buffer to be updated with the Presentation ID .
Size of the destination string buffer.
None.
The Abstract Syntax provides information about the class type of the data that will be transferred across the DICOM Associate connection.
This function is valid only for DICOM Associates of type Associate Request.
To set the Abstract Syntax of a specific Presentation Context, call L_DicomSetAbstract.
Required DLLs and Libraries
Win32, x64, Linux.
L_INT DicomGetAbstractExample(HDICOMPDU hPDU)
{
L_UCHAR i;
L_INT lCount;
L_TCHAR szOut[4000];L_TCHAR szAbstract[PDU_MAX_UID_SIZE+1];
L_UCHAR nID;
/* get current abstracts for each Presentation Context */
lstrcpy(szOut, TEXT("Presentation Contexts--Abstracts"));
lCount = L_DicomGetPresentationCount(hPDU);
for(i = 0; i<lCount; i++)
{
nID = L_DicomGetPresentation(hPDU,i);L_DicomGetAbstract(hPDU, nID, szAbstract, PDU_MAX_UID_SIZE+1);
lstrcat(szOut, TEXT("\n"));
lstrcat(szOut, szAbstract);
}
MessageBox(NULL, szOut, TEXT("Test"), MB_OK);
/* change the abstracts */
for (i = 0; i<lCount; i++)
{
nID = L_DicomGetPresentation(hPDU,i);
L_DicomSetAbstract(hPDU, nID, UID_CR_IMAGE_STORAGE);
}
/* redisplay */
lstrcpy(szOut, TEXT("Presentation Contexts--Abstracts"));
for(i = 0; i<lCount; i++)
{
nID = L_DicomGetPresentation(hPDU,i);L_DicomGetAbstract(hPDU, nID, szAbstract, PDU_MAX_UID_SIZE+1);
lstrcat(szOut, TEXT("\n"));
lstrcat(szOut, szAbstract);
}
MessageBox(NULL, szOut, TEXT("Test"), MB_OK);
return DICOM_SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document