X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmGlobal.cxx;h=5f455db33ddda99807ab2e6aaffe07ffa473b0fe;hb=d1c68c2c2ae9fadf927053150f7fbc625a7c7366;hp=e5597cb93db998d1a0cfd12ff98ad4400d29a0ab;hpb=6ba98a3c21d34a1f26770c8281a920c2266fa0ec;p=gdcm.git diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index e5597cb9..5f455db3 100644 --- a/src/gdcmGlobal.cxx +++ b/src/gdcmGlobal.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmGlobal.cxx,v $ Language: C++ - Date: $Date: 2005/01/09 00:13:26 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/02/01 10:29:55 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,53 +26,34 @@ namespace gdcm { - +//----------------------------------------------------------------------------- // Those global string that are return by reference everywhere in gdcm code // used to be in gdcmCommon.h but due to a 'bug' in gcc/MacOSX // you cannot have static initialization in a multithreaded environment // since there is a lazy construction everything got skrew up somehow -// Therefore the actual initiliazation is done in a cxx file (avoid +// Therefore the actual initialization is done in a cxx file (avoid // duplicated symbol), and an extern is used in gdcmCommon.h const std::string GDCM_UNKNOWN = "gdcm::Unknown"; const std::string GDCM_UNFOUND = "gdcm::Unfound"; const std::string GDCM_BINLOADED = "gdcm::Binary data loaded"; const std::string GDCM_NOTLOADED = "gdcm::NotLoaded"; const std::string GDCM_UNREAD = "gdcm::UnRead"; - -/** - * \ingroup Globals - * \brief Pointer to a container, holding _all_ the Dicom Dictionaries. - */ -DictSet *Global::Dicts = (DictSet *)0; -/** - * \ingroup Globals - * \brief Pointer to a hash table containing the 'Value Representations'. - */ +//----------------------------------------------------------------------------- +DictSet *Global::Dicts = (DictSet *)0; VR *Global::ValRes = (VR *)0; - -/** - * \ingroup Globals - * \brief Pointer to a hash table containing the Transfer Syntax codes - * and their english description - */ TS *Global::TranSyn = (TS *)0; - -/** - * \ingroup Globals - * \brief Pointer to the hash table containing the Dicom Elements - * necessary to describe each part of a DICOMDIR - */ DicomDirElement *Global::ddElem = (DicomDirElement *)0; +//----------------------------------------------------------------------------- /** - * \ingroup Globals * \brief Global container */ Global Glob; +//------------------------------------------------------------------------- +// Constructor / Destructor /** - * \ingroup Global * \brief constructor : populates the various H Tables */ Global::Global() @@ -89,7 +70,6 @@ Global::Global() } /** - * \ingroup Global * \brief canonical destructor */ Global::~Global() @@ -99,8 +79,10 @@ Global::~Global() delete TranSyn; delete ddElem; } + +//----------------------------------------------------------------------------- +// Public /** - * \ingroup Global * \brief returns a pointer to the 'Value Representation Table' */ VR *Global::GetVR() @@ -108,15 +90,13 @@ VR *Global::GetVR() return ValRes; } /** - * \ingroup Global - * \brief returns a pointer to the 'Transfert Syntax Table' + * \brief returns a pointer to the 'Transfer Syntax Table' */ TS *Global::GetTS() { return TranSyn; } /** - * \ingroup Global * \brief returns a pointer to Dictionaries Table */ DictSet *Global::GetDicts() @@ -124,11 +104,21 @@ DictSet *Global::GetDicts() return Dicts; } /** - * \ingroup Global * \brief returns a pointer to the DicomDir related elements Table */ DicomDirElement *Global::GetDicomDirElements() { return ddElem; } + +//----------------------------------------------------------------------------- +// Protected + +//----------------------------------------------------------------------------- +// Private + +//----------------------------------------------------------------------------- +// Print + +//----------------------------------------------------------------------------- } // end namespace gdcm