Gets the Abstract Syntax for the specified Presentation Context of the DICOM Associate.
#include "ltdic.h"
L_VOID LDicomAssociate::GetAbstract(nID, strAbstract, SizeInWords)
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.
String Buffer to be updated with the specified Presentation Context of the DICOM Associate.For a list of possible values, refer to Abstract Syntax Values.
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 LDicomAssociate::SetAbstract.
Win32, x64
L_INT LDicomAssociate_GetAbstractExample(LDicomAssociate *m_pDicomAssociate)
{
L_INT nRet;
L_INT i;
L_INT lCount;
L_UCHAR nID;
CString cStr;
L_TCHAR szAbstract[PDU_MAX_UID_SIZE];
//create the Associate Class as Request
m_pDicomAssociate = new LDicomAssociate(TRUE);
//set the Associate to the default
m_pDicomAssociate->Default();
//get current results for each Presentation Context
cStr = "Presentation Contexts--Results";
lCount = m_pDicomAssociate->GetPresentationCount();
for (i = 0; i<lCount; i++)
{
nID = m_pDicomAssociate->GetPresentation(i);
m_pDicomAssociate->GetAbstract(nID, szAbstract, PDU_MAX_UID_SIZE);
cStr += '\n';
cStr += szAbstract;
}
AfxMessageBox(cStr);
//change first five abstracts
for (i = 0; i<5; i++)
{
nID = m_pDicomAssociate->GetPresentation(i);
nRet = m_pDicomAssociate->SetAbstract( nID, UID_CR_IMAGE_STORAGE);
if(nRet != DICOM_SUCCESS)
return nRet;
}
//redisplay
cStr = "Presentation Contexts--Results";
for (i = 0; i<lCount; i++)
{
nID = m_pDicomAssociate->GetPresentation(i);
m_pDicomAssociate->GetAbstract(nID, szAbstract, PDU_MAX_UID_SIZE);
cStr += '\n';
cStr += szAbstract;
}
AfxMessageBox(cStr);
//Free associate
delete m_pDicomAssociate;
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