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

This class contains all globals elements that might be instanciated only once (singletons). More...

#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 TS * GetTS ()
 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 TS * TranSyn = (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

This class contains all globals elements that might be instanciated only once (singletons).

Definition at line 36 of file gdcmGlobal.h.


Constructor & Destructor Documentation

gdcm::Global::Global  ) 
 

constructor : populates the various H Tables

Definition at line 66 of file gdcmGlobal.cxx.

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

00067 {
00068    if (ValRes || TranSyn || Dicts || ddElem)
00069    {
00070       gdcmWarningMacro( "VR or TS or Dicts already allocated");
00071       return;
00072    }
00073    Dicts     = DictSet::New();
00074    ValRes    = VR::New();
00075    TranSyn   = TS::New();
00076    GroupName = DictGroupName::New();
00077    ddElem    = DicomDirElement::New();
00078 }

gdcm::Global::~Global  ) 
 

canonical destructor

Definition at line 83 of file gdcmGlobal.cxx.

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

00084 {
00085    Dicts->Delete();
00086    ValRes->Delete();
00087    TranSyn->Delete();
00088    GroupName->Delete();
00089    ddElem->Delete();
00090 }


Member Function Documentation

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

returns a pointer to the DicomDir related elements Table

Definition at line 129 of file gdcmGlobal.cxx.

References ddElem.

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

00130 {
00131    return ddElem;
00132 }

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

returns a pointer to the Group name correspondance table

Definition at line 121 of file gdcmGlobal.cxx.

References GroupName.

00122 {
00123    return GroupName;
00124 }

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

returns a pointer to Dictionaries Table

Definition at line 97 of file gdcmGlobal.cxx.

References Dicts.

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

00098 {
00099    return Dicts;
00100 }

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

returns a pointer to the 'Transfer Syntax Table'

Definition at line 113 of file gdcmGlobal.cxx.

References TranSyn.

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().

00114 {
00115    return TranSyn;
00116 }

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

returns a pointer to the 'Value Representation Table'

Definition at line 105 of file gdcmGlobal.cxx.

References ValRes.

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

00106 {
00107    return ValRes;
00108 }


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 61 of file gdcmGlobal.h.

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

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

Pointer to a container, holding _all_ the Dicom Dictionaries.

Definition at line 50 of file gdcmGlobal.h.

Referenced by GetDicts(), 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 58 of file gdcmGlobal.h.

Referenced by GetDictGroupName(), 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 55 of file gdcmGlobal.h.

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

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

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

Definition at line 52 of file gdcmGlobal.h.

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


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 15:58:40 2005 for gdcm by  doxygen 1.4.4