LEADTOOLS DICOM C++ Class Library Help > Classes and Member Functions > LDicomUID > LDicomUID Class Members > LDicomUID::SetName |
#include "Ltdic.h"
static L_BOOL LDicomUID::SetName(pUID, pszName)
pDICOMUID pUID; |
/* pointer to a DICOMUID structure */ |
L_TCHAR * pszName; |
/* character string */ |
Sets the name of the specified item in the UID Table.
Parameter |
Description |
pUID |
Pointer to a structure that contains an item in the UID Table. The name of this item will be set using the string contained in pszName. |
pszName |
Character string that contains the name to be set. |
Returns
TRUE |
The name was successfully set. |
FALSE |
Not enough memory. |
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 |
Win32, x64
See Also
Functions: |
LDicomUID::GetFirst, LDicomUID::GetLast, LDicomUID::GetPrev, LDicomUID::GetNext, LDicomUID::Find, LDicomUID::FindIndex |
Topics: |
Example
This example changes the name of an item in the UID table.
L_INT LDicomUID_SetNameExample() { pDICOMUID pUID; pUID = LDicomUID::Find(TEXT("1.2.840.10008.1.1")); if (pUID != NULL) { LDicomUID::SetName(pUID, TEXT("New name")); } return DICOM_SUCCESS; }