2 //-----------------------------------------------------------------------------
3 #include "gdcmGlobal.h"
6 #include <ctype.h> // For isspace
7 #include <string.h> // CLEANME: could this be only string ? Related to Win32 ?
11 * \brief Pointer to a container, holding _all_ the Dicom Dictionaries.
13 gdcmDictSet *gdcmGlobal::Dicts = (gdcmDictSet *)0;
17 * \brief Pointer to a hash table containing the 'Value Representations'.
19 gdcmVR *gdcmGlobal::VR = (gdcmVR *)0;
23 * \brief Pointer to a hash table containing the Transfer Syntax codes
24 * and their english description
26 gdcmTS *gdcmGlobal::TS = (gdcmTS *)0;
30 * \brief Pointer to the hash table containing the Dicom Elements
31 * necessary to describe each part of a DICOMDIR
33 gdcmDicomDirElement *gdcmGlobal::ddElem = (gdcmDicomDirElement *)0;
37 * \brief Global container
43 * \brief constructor : populates the various H Tables
45 gdcmGlobal::gdcmGlobal(void) {
46 if (VR || TS || Dicts || ddElem)
47 dbg.Verbose(0, "gdcmGlobal::gdcmGlobal : VR or TS or Dicts already allocated");
48 Dicts = new gdcmDictSet();
51 ddElem = new gdcmDicomDirElement();
56 * \brief canonical destructor
58 gdcmGlobal::~gdcmGlobal() {
66 * \brief returns a pointer to the 'Value Representation Table'
68 gdcmVR *gdcmGlobal::GetVR(void) {
73 * \brief returns a pointer to the 'Transfert Syntax Table'
75 gdcmTS *gdcmGlobal::GetTS(void) {
80 * \brief returns a pointer to Dictionaries Table
82 gdcmDictSet *gdcmGlobal::GetDicts(void) {
87 * \brief returns a pointer to the DicomDir related elements Table
89 gdcmDicomDirElement *gdcmGlobal::GetDicomDirElements(void) {