Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomIOD::FindModule

Show in webframe

#include "Ltdic.h"

static pDICOMIOD LDicomIOD::FindModule(nClass, nModule)

L_UINT32 nClass;

/* class constant */

L_UINT32 nModule;

/* module constant */

Returns a pointer to the item in the IOD Structure that contains the IOD for the specified module in the specified class.

Parameter

Description

nClass

Class constant that specifies the class in which to look for the module. For a list of default values, refer to IOD Class Constants.

nModule

Module constant that specifies the module to look for within the class specified in nClass. For a list of default module constants, refer to IOD Module Constants.

Returns

!NULL

A pointer to the item in the IOD Structure that contains the IOD for the specified module in the specified class.

NULL

An IOD for the specified module in the specified class was not found.

Comments

To find the IOD of a module at a specific index within a class use LDicomIOD::FindIndexModule. To find the IOD for a specific class use LDicomIOD::FindClass.

LDicomIOD::Find lets you find IODs for classes, modules or elements in the IOD Structure.

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

Platforms

Win32, x64

See Also

Functions:

LDicomIOD::Find, LDicomIOD::FindClass, LDicomIOD::FindIndexModule

Topics:

Working with Information Object Definitions

 

How to Disable the Automatic Loading of the default DICOM IOD Table

Example

This example displays the name of a module.

L_INT LDicomIOD_FindModuleExample()
{
   pDICOMIOD pIOD;
   pIOD = LDicomIOD::FindModule(CLASS_US_IMAGE_STORAGE, MODULE_PATIENT_STUDY);
   if (pIOD != NULL)
   {
      ::MessageBox(NULL, pIOD->pszName, TEXT("Notice"), MB_OK);
   }
   return DICOM_SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.