LDicomAssociate::IsImplementClass
#include "ltdic.h"
L_BOOL LDicomAssociate::IsImplementClass(L_VOID)
Determines whether setting the Implementation Class is enabled for the DICOM Associate.
Returns
TRUE |
Setting the Implementation Class is enabled. |
FALSE |
Setting the Implementation Class is disabled. |
Comments
If setting the Implementation Class is enabled, the name may be retrieved using LDicomAssociate::GetImplementClass, or set using LDicomAssociate::SetImplementClass.
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: |
LDicomAssociate::GetImplementClass, LDicomAssociate::SetImplementClass |
Topics: |
Example
{
//m_pDicomAssociate is a member variable declared as:
// LDicomAssociate *m_pDicomAssociate;
CString szUID;
//...Assume associate object has been created
//is implement enabled?
if (m_pDicomAssociate->IsImplementClass())
{
//disable it
//display old value
szUID = m_pDicomAssociate->GetImplementClass();
AfxMessageBox("Implement Class Disabled: " + szUID);
m_pDicomAssociate->SetImplementClass( FALSE, (L_CHAR *)(LPCTSTR)szUID);
}
else
{
//enable it
m_pDicomAssociate->SetImplementClass( TRUE, UID_RT_DOSE_STORAGE);
szUID = m_pDicomAssociate->GetImplementClass();
AfxMessageBox("Implement Class Enabled: " + szUID);
}
}