LDicomIOD::GetCountModule

#include "Ltdic.h"

static L_UINT32 LDicomIOD::GetCountModule(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:

LDicomIOD::GetFirst

LDicomIOD::GetPrev

LDicomIOD::GetNext

LDicomIOD::GetLast

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

LDicomIOD::GetRoot

LDicomIOD::GetParent

LDicomIOD::GetChild

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::GetFirst, LDicomIOD::GetLast, LDicomIOD::GetNext, LDicomIOD::GetPrev, LDicomIOD::GetCountModule, LDicomIOD::GetRoot, LDicomIOD::GetParent, LDicomIOD::GetChild

Topics:

Working with Information Object Definitions

 

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

Example

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

L_INT LDicomIOD_GetCountModuleExample(CListBox *pDlg)
{
   L_UINT32    i;
   L_UINT32    nCount;
   pDICOMIOD   pIOD;
   nCount = LDicomIOD::GetCountModule(CLASS_MR_IMAGE_STORAGE);
   for (i = 0; i < nCount; i++)
   {
      pIOD = LDicomIOD::FindIndexModule( CLASS_MR_IMAGE_STORAGE, i);
      if (pIOD != NULL)
      {
         pDlg->AddString(pIOD->pszName);
      }
   }
   return DICOM_SUCCESS;
}