LDicomAssociate::SetPresentation

#include "ltdic.h"

L_INT LDicomAssociate::SetPresentation(nIndex, nID)

L_INT nIndex;

/* index */

L_UCHAR nID;

/* presentation ID */

Sets the ID for a Presentation Context.

Parameter

Description

nIndex

Index of the Presentation Context to set.

nID

Presentation ID. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data. It must be unique. It should start at 1 and it must be odd. (1, 3, 5, …)

Returns

0

SUCCESS

>0

An error occurred. Refer to Return Codes.

Comments

A DICOM Associate (Request or Accept) can have multiple Presentation Contexts. The ID for each of these Presentation Contexts must be unique. The IDs for the Presentation Context entries for the specified DICOM Associate should start at 1, and must be odd.

For example, a DICOM Associate may have three Presentation Context entries. One of those entries should have an ID of 1. The IDs must be unique. (Having two Presentation Context entries with an ID of 3 is not valid.) Therefore the IDs may be 1 for the first Presentation Context, 3 for the next one and 5 for the last one.

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::DelPresentation, LDicomAssociate::GetPresentation, LDicomAssociate::GetPresentationCount, LDicomAssociate::AddPresentation

Topics:

Working with DICOM Associate Connections

Example

For an example, refer to LDicomAssociate::DelPresentation.