LDicomUID::Insert

#include "Ltdic.h"

static pDICOMUID LDicomUID::Insert(pszCode, pszName, nType)

Inserts a new item in the UID Table.

Parameters

L_TCHAR * pszCode

Unique identifier code. For a list of default values, refer to the UID Table.

L_TCHAR * pszName

The name of the unique identifier. For a list of default values, refer to the UID Table.

L_INT nType

Type of UID to insert. Possible values are:

Value Meaning
UID_TYPE_OTHER Unknown
UID_TYPE_TRANSFER1 Transfer Syntax - Uncompressed Image
UID_TYPE_TRANSFER2 Transfer Syntax - Compressed Image
UID_TYPE_CLASS SOP Class
UID_TYPE_META_CLASS Meta SOP Class
UID_TYPE_INSTANCE SOP Instance
UID_TYPE_APPLICATION Application Context Name

Returns

Value Meaning
!NULL A pointer to a DICOMUID structure containing the newly inserted item.
NULL Not enough memory to insert the item.

Comments

NOTE: Inserted UID items will work within LEADTOOLS, however, in order for new UID values to work across countries, sites, equipment, etc. you must contact the National Electrical Manufacturers Association.

All items are inserted at the bottom of the table.

For the default values for the UID Table, refer to the UID Table.

For more information on the DICOM file format, refer to An Overview of Dicom or the DICOM Spec.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

This example inserts 2 new items in the UID table.

L_INT LDicomUID_InsertExample() 
{ 
   LDicomUID::Insert(TEXT("1.2.3.4.5"), TEXT("New XXX UID"), UID_TYPE_OTHER); 
   LDicomUID::Insert(TEXT("6.7.8.9.0"), TEXT("New YYY UID"), UID_TYPE_OTHER); 
 
   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