Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | 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>

List of all members.

Public Member Functions

 Global ()
 constructor : populates the various H Tables

 ~Global ()
 canonical destructor


Static Public Member Functions

DictSetGetDicts ()
 returns a pointer to Dictionaries Table

VRGetVR ()
 returns a pointer to the 'Value Representation Table'

TS * GetTS ()
 returns a pointer to the 'Transfer Syntax Table'

DicomDirElementGetDicomDirElements ()
 returns a pointer to the DicomDir related elements Table


Static Private Attributes

DictSetDicts = (DictSet *)0
 Pointer to a container, holding _all_ the Dicom Dictionaries.

VRValRes = (VR *)0
 Pointer to a hash table containing the 'Value Representations'.

TS * TranSyn = (TS *)0
 Pointer to a hash table containing the Transfer Syntax codes and their english description.

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


Constructor & Destructor Documentation

gdcm::Global::Global  ) 
 

constructor : populates the various H Tables

Definition at line 59 of file gdcmGlobal.cxx.

References ddElem, gdcmWarningMacro, TranSyn, and ValRes.

00060 {
00061    if (ValRes || TranSyn || Dicts || ddElem)
00062    {
00063       gdcmWarningMacro( "VR or TS or Dicts already allocated");
00064       return;
00065    }
00066    Dicts   = new DictSet();
00067    ValRes  = new VR();
00068    TranSyn = new TS();
00069    ddElem  = new DicomDirElement();
00070 }

gdcm::Global::~Global  ) 
 

canonical destructor

Definition at line 75 of file gdcmGlobal.cxx.

References ddElem, TranSyn, and ValRes.

00076 {
00077    delete Dicts;
00078    delete ValRes;
00079    delete TranSyn;
00080    delete ddElem;
00081 }


Member Function Documentation

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

returns a pointer to the DicomDir related elements Table

Definition at line 112 of file gdcmGlobal.cxx.

References ddElem.

00113 {
00114    return ddElem;
00115 }

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

returns a pointer to Dictionaries Table

Definition at line 88 of file gdcmGlobal.cxx.

00089 {
00090    return Dicts;
00091 }

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

returns a pointer to the 'Transfer Syntax Table'

Definition at line 104 of file gdcmGlobal.cxx.

References TranSyn.

00105 {
00106    return TranSyn;
00107 }

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

returns a pointer to the 'Value Representation Table'

Definition at line 96 of file gdcmGlobal.cxx.

References ValRes.

00097 {
00098    return ValRes;
00099 }


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 46 of file gdcmGlobal.cxx.

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 43 of file gdcmGlobal.cxx.

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 45 of file gdcmGlobal.cxx.

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 44 of file gdcmGlobal.cxx.

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


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 22:18:10 2005 for gdcm by doxygen 1.3.6