LDicomAssociate::IsImplementVersion

#include "ltdic.h"

L_BOOL LDicomAssociate::IsImplementVersion(L_VOID)

Determines whether setting the Implementation Version is enabled for the DICOM Associate.

Returns

Value Meaning
TRUE Setting the Implementation Version is enabled.
FALSE Setting the Implementation Version is disabled.

Comments

If setting the Implementation Version is enabled, the name may be retrieved using LDicomAssociate::GetImplementVersion, or set using LDicomAssociate::SetImplementVersion.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomAssociate_IsImplementVersionExample(LDicomAssociate *m_pDicomAssociate) 
{ 
   L_INT       nRet; 
   CString     strMsg; 
   L_TCHAR     szImplementVersion[PDU_MAX_VERSION_SIZE+1]; 
 
   //...Assume associate object has been created 
 
   if (m_pDicomAssociate->IsImplementVersion()) 
   { 
      //disable it and display old value 
      m_pDicomAssociate->GetImplementVersion(szImplementVersion, PDU_MAX_VERSION_SIZE+1); 
      nRet = m_pDicomAssociate->SetImplementVersion( FALSE, szImplementVersion); 
      strMsg = TEXT("ImplementVersion Disabled: \n"); 
      strMsg += szImplementVersion; 
      AfxMessageBox(strMsg); 
   } 
   else 
   { 
       //enable it 
      nRet = m_pDicomAssociate->SetImplementVersion( TRUE, TEXT("v13.0")); 
      m_pDicomAssociate->GetImplementVersion(szImplementVersion, PDU_MAX_VERSION_SIZE+1); 
      strMsg = TEXT("ImplementVersion Enabled: \n") ; 
 
      strMsg += szImplementVersion; 
 
      AfxMessageBox(strMsg); 
   } 
 
   return DICOM_SUCCESS; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help