GDCM_NAME_SPACE::Global Class Reference

#include <gdcmGlobal.h>

Collaboration diagram for GDCM_NAME_SPACE::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.
static DictDefaultPubDict = (Dict *)0

Friends

class DictSet

Detailed Description

Definition at line 37 of file gdcmGlobal.h.


Constructor & Destructor Documentation

GDCM_NAME_SPACE::Global::Global  ) 
 

constructor : populates the various H Tables

Definition at line 74 of file gdcmGlobal.cxx.

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

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

GDCM_NAME_SPACE::Global::~Global  ) 
 

canonical destructor

Definition at line 91 of file gdcmGlobal.cxx.

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

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


Member Function Documentation

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

returns a pointer to the DicomDir related elements Table

Definition at line 54 of file gdcmGlobal.h.

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

00054 { return ddElem; }

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

returns a pointer to the Group name correspondance table

Definition at line 52 of file gdcmGlobal.h.

00052 { return GroupName; }

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

returns a pointer to Dictionaries Table

Definition at line 46 of file gdcmGlobal.h.

Referenced by GDCM_NAME_SPACE::DocEntrySet::GetDictEntry(), GDCM_NAME_SPACE::DocEntry::GetName(), GDCM_NAME_SPACE::DocEntry::GetVM(), GDCM_NAME_SPACE::Document::Initialize(), GDCM_NAME_SPACE::DocEntrySet::InsertEntryString(), and GDCM_NAME_SPACE::Document::SetShaDict().

00046 { return Dicts;}

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

returns a pointer to the 'Transfer Syntax Table'

Definition at line 50 of file gdcmGlobal.h.

Referenced by GDCM_NAME_SPACE::File::ComputeJPEGFragmentInfo(), GDCM_NAME_SPACE::File::ComputeRLEInfo(), GDCM_NAME_SPACE::File::DoTheLoadingJob(), GDCM_NAME_SPACE::File::GetRescaleSlopeIntercept(), GDCM_NAME_SPACE::File::GetSpacing(), GDCM_NAME_SPACE::Document::GetTransferSyntaxName(), GDCM_NAME_SPACE::Document::HandleOutOfGroup0002(), GDCM_NAME_SPACE::FileHelper::SetWriteFileTypeToExplicitVR(), GDCM_NAME_SPACE::FileHelper::SetWriteFileTypeToImplicitVR(), GDCM_NAME_SPACE::FileHelper::SetWriteFileTypeToJPEG(), and GDCM_NAME_SPACE::FileHelper::SetWriteFileTypeToJPEG2000().

00050 { return TranSyn; }

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

returns a pointer to the 'Value Representation Table'

Definition at line 48 of file gdcmGlobal.h.

Referenced by GDCM_NAME_SPACE::Document::CheckDocEntryVR(), GDCM_NAME_SPACE::Document::FindDocEntryVR(), GDCM_NAME_SPACE::DataEntry::GetValue(), GDCM_NAME_SPACE::DataEntry::GetValueCount(), GDCM_NAME_SPACE::DataEntry::Print(), GDCM_NAME_SPACE::DataEntry::SetValue(), and GDCM_NAME_SPACE::DataEntry::WriteContent().

00048 { return ValRes; }


Friends And Related Function Documentation

friend class DictSet [friend]
 

Definition at line 39 of file gdcmGlobal.h.


Member Data Documentation

DicomDirElement * GDCM_NAME_SPACE::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 69 of file gdcmGlobal.h.

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

Dict * GDCM_NAME_SPACE::Global::DefaultPubDict = (Dict *)0 [static, private]
 

pointer to the Default Public Dictionnary, redundantly store here, in order not to acces the HTable every time!

Definition at line 72 of file gdcmGlobal.h.

Referenced by GDCM_NAME_SPACE::DictSet::DictSet(), GDCM_NAME_SPACE::DictSet::GetDefaultPubDict(), and GDCM_NAME_SPACE::DictSet::~DictSet().

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

Pointer to a container, holding _all_ the Dicom Dictionaries.

Definition at line 58 of file gdcmGlobal.h.

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

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

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

Definition at line 66 of file gdcmGlobal.h.

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

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

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

Definition at line 63 of file gdcmGlobal.h.

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

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

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

Definition at line 60 of file gdcmGlobal.h.

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


The documentation for this class was generated from the following files:
Generated on Fri Aug 24 12:57:15 2007 for gdcm by  doxygen 1.4.6