L_DicomGetCountModuleIOD

#include "Ltdic.h"

L_LTDIC_API L_UINT32 L_DicomGetCountModuleIOD(nClass)

L_UINT32 nClass;

/* class constant */

Returns the number of modules in the specified class.

Parameter

Description

nClass

Value that specifies the class. For a list of default values refer to IOD Class Constants.

Returns

The number of modules in the specified class.

Comments

The following functions will also help you navigate the IOD Structure as either a tree or a list:

L_DicomGetFirstIOD

L_DicomGetPrevIOD

L_DicomGetNextIOD

L_DicomGetLastIOD

If you evaluate the IOD Structure as a tree, you can also use the following functions to navigate the tree:

L_DicomGetRootIOD

L_DicomGetParentIOD

L_DicomGetChildIOD

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:

L_DicomGetFirstIOD, L_DicomGetLastIOD, L_DicomGetNextIOD, L_DicomGetPrevIOD, L_DicomGetCountModuleIOD, L_DicomGetRootIOD, L_DicomGetParentIOD, L_DicomGetChildIOD

Topics:

Working with Information Object Definitions

Example

This example displays in a list-box control all modules from a class

L_INT DicomGetCountModuleIODExample(HWND hDlg)
{
   L_UINT32  i;
   L_UINT32  nCount;
   pDICOMIOD pIOD;

   nCount = L_DicomGetCountModuleIOD(CLASS_MR_IMAGE_STORAGE);

   for (i = 0; i < nCount; i++)
   {
      pIOD = L_DicomFindIndexModuleIOD(CLASS_MR_IMAGE_STORAGE, i);
      if (pIOD != NULL)
         SendMessage(hDlg, LB_ADDSTRING, (WPARAM)0, (LPARAM)(LPCTSTR)pIOD->pszName);
   }

   return DICOM_SUCCESS;
}