Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

gdcm::Global Class Reference

#include <gdcmGlobal.h>

Collaboration diagram for gdcm::Global:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Global ()
 constructor : populates the various H Tables
 ~Global ()
 canonical destructor

Static Public Member Functions

static DictSetGetDicts ()
 returns a pointer to Dictionaries Table
static VRGetVR ()
 returns a pointer to the 'Value Representation Table'
static TSGetTS ()
 returns a pointer to the 'Transfer Syntax Table'
static DictGroupNameGetDictGroupName ()
 returns a pointer to the Group name correspondance table
static DicomDirElementGetDicomDirElements ()
 returns a pointer to the DicomDir related elements Table

Static Private Attributes

static DictSetDicts = (DictSet *)0
 Pointer to a container, holding _all_ the Dicom Dictionaries.
static VRValRes = (VR *)0
 Pointer to a hash table containing the 'Value Representations'.
static TSTranSyn = (TS *)0
 Pointer to a hash table containing the Transfer Syntax codes and their english description.
static DictGroupNameGroupName = (DictGroupName *)0
 Pointer to a hash table containing the Group codes and their english name (from NIH).
static DicomDirElementddElem = (DicomDirElement *)0
 Pointer to the hash table containing the Dicom Elements necessary to describe each part of a DICOMDIR.

Detailed Description

Definition at line 37 of file gdcmGlobal.h.


Constructor & Destructor Documentation

gdcm::Global::Global  ) 
 

constructor : populates the various H Tables

Definition at line 72 of file gdcmGlobal.cxx.

References ddElem, Dicts, gdcmStaticWarningMacro, GroupName, gdcm::DicomDirElement::New(), gdcm::DictGroupName::New(), gdcm::TS::New(), gdcm::VR::New(), gdcm::DictSet::New(), TranSyn, and ValRes.

00073 {
00074    if (ValRes || TranSyn || Dicts || ddElem || GroupName )
00075    {
00076       gdcmStaticWarningMacro( "VR or TS or Dicts or ... already allocated");
00077       return;
00078    }
00079    Dicts     = DictSet::New();
00080    ValRes    = VR::New();
00081    TranSyn   = TS::New();
00082    GroupName = DictGroupName::New();
00083    ddElem    = DicomDirElement::New();
00084 }

gdcm::Global::~Global  ) 
 

canonical destructor

Definition at line 89 of file gdcmGlobal.cxx.

References ddElem, gdcm::RefCounter::Delete(), Dicts, GroupName, TranSyn, and ValRes.

00090 {
00091    Dicts->Delete();
00092    ValRes->Delete();
00093    TranSyn->Delete();
00094    GroupName->Delete();
00095    ddElem->Delete();
00096 }


Member Function Documentation

static DicomDirElement* gdcm::Global::GetDicomDirElements  )  [inline, static]
 

returns a pointer to the DicomDir related elements Table

Definition at line 52 of file gdcmGlobal.h.

Referenced by gdcm::DicomDirImage::DicomDirImage(), gdcm::DicomDirMeta::DicomDirMeta(), gdcm::DicomDirPatient::DicomDirPatient(), gdcm::DicomDirSerie::DicomDirSerie(), gdcm::DicomDirStudy::DicomDirStudy(), gdcm::DicomDirVisit::DicomDirVisit(), and gdcm::DicomDir::SetElement().

00052 { return ddElem; }

static DictGroupName* gdcm::Global::GetDictGroupName  )  [inline, static]
 

returns a pointer to the Group name correspondance table

Definition at line 50 of file gdcmGlobal.h.

00050 { return GroupName; }

static DictSet* gdcm::Global::GetDicts  )  [inline, static]
 

returns a pointer to Dictionaries Table

Definition at line 44 of file gdcmGlobal.h.

Referenced by gdcm::FileHelper::CheckMandatoryElements(), gdcm::FileHelper::CheckMandatoryEntry(), gdcm::DicomDirObject::FillObject(), gdcm::DocEntrySet::GetDictEntry(), gdcm::Document::Initialize(), gdcm::FileHelper::SetMandatoryEntry(), and gdcm::Document::SetShaDict().

00044 { return Dicts;}

static TS* gdcm::Global::GetTS  )  [inline, static]
 

returns a pointer to the 'Transfer Syntax Table'

Definition at line 48 of file gdcmGlobal.h.

Referenced by gdcm::File::ComputeJPEGFragmentInfo(), gdcm::File::ComputeRLEInfo(), gdcm::File::DoTheLoadingJob(), gdcm::Document::GetTransferSyntaxName(), gdcm::PixelReadConvert::GrabInformationsFromFile(), gdcm::Document::HandleOutOfGroup0002(), gdcm::DataEntry::Print(), gdcm::FileHelper::SetWriteFileTypeToExplicitVR(), gdcm::FileHelper::SetWriteFileTypeToImplicitVR(), and gdcm::FileHelper::SetWriteFileTypeToJPEG().

00048 { return TranSyn; }

static VR* gdcm::Global::GetVR  )  [inline, static]
 

returns a pointer to the 'Value Representation Table'

Definition at line 46 of file gdcmGlobal.h.

Referenced by gdcm::Document::CheckDocEntryVR(), gdcm::DataEntry::GetValue(), gdcm::DataEntry::GetValueCount(), gdcm::Document::LoadEntryBinArea(), gdcm::DataEntry::Print(), gdcm::Document::ReadNextDocEntry(), gdcm::DataEntry::SetValue(), and gdcm::DataEntry::WriteContent().

00046 { return ValRes; }


Member Data Documentation

DicomDirElement * gdcm::Global::ddElem = (DicomDirElement *)0 [static, private]
 

Pointer to the hash table containing the Dicom Elements necessary to describe each part of a DICOMDIR.

Definition at line 67 of file gdcmGlobal.h.

Referenced by Global(), and ~Global().

DictSet * gdcm::Global::Dicts = (DictSet *)0 [static, private]
 

Pointer to a container, holding _all_ the Dicom Dictionaries.

Definition at line 56 of file gdcmGlobal.h.

Referenced by Global(), and ~Global().

DictGroupName * gdcm::Global::GroupName = (DictGroupName *)0 [static, private]
 

Pointer to a hash table containing the Group codes and their english name (from NIH).

Definition at line 64 of file gdcmGlobal.h.

Referenced by Global(), and ~Global().

TS * gdcm::Global::TranSyn = (TS *)0 [static, private]
 

Pointer to a hash table containing the Transfer Syntax codes and their english description.

Definition at line 61 of file gdcmGlobal.h.

Referenced by Global(), and ~Global().

VR * gdcm::Global::ValRes = (VR *)0 [static, private]
 

Pointer to a hash table containing the 'Value Representations'.

Definition at line 58 of file gdcmGlobal.h.

Referenced by Global(), and ~Global().


The documentation for this class was generated from the following files:
Generated on Fri Jan 20 10:14:37 2006 for gdcm by  doxygen 1.4.4