LDicomTag::SetName
#include "Ltdic.h"
static L_BOOL LDicomTag::SetName(pTag, pszName)
pDICOMTAG pTag; |
/* pointer to a DICOMTAG structure */ |
L_CHAR * pszName; |
/* character string */ |
Sets the name of the specified item in the Data Element Tag Table.
Parameter |
Description |
pTag |
Pointer to a structure that contains an item in the Data Element Tag 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 |
See Also
Functions: |
LDicomTag::GetFirst, LDicomTag::GetLast, LDicomTag::GetPrev, LDicomTag::GetNext, LDicomTag::Find, LDicomTag::FindIndex |
Topics: |
Example
/* This example changes the name of an item in the Tag table */
L_VOID Test()
{
pDICOMTAG pTag;
pTag = LDicomTag::Find(TAG_MEDIA_STORAGE_SOP_CLASS_UID);
if (pTag != NULL)
{
LDicomTag::SetName(pTag, "New name");
}
}