X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmGlobal.cxx;h=ad98da2c862a37e843e03293cb57b92636705c9d;hb=2593ff4a7d9a3ccf7f77de5f3f1981afa4365bb6;hp=4a21aca32e87b949f204e6851c56b7c55b7cf197;hpb=6b51b22366f878e1050c75a6ebb755bd2ff365c7;p=gdcm.git diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index 4a21aca3..ad98da2c 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/10/25 14:52:35 $ - Version: $Revision: 1.28 $ + Date: $Date: 2006/01/11 10:44:24 $ + Version: $Revision: 1.31 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -45,6 +45,12 @@ const std::string GDCM_PIXELDATA = "gdcm::Pixel Data to be loaded"; const std::string GDCM_VRUNKNOWN = " "; +#ifdef _WIN32 +const char GDCM_FILESEPARATOR = '\\'; +#else +const char GDCM_FILESEPARATOR = '/'; +#endif + //----------------------------------------------------------------------------- DictSet *Global::Dicts = (DictSet *)0; VR *Global::ValRes = (VR *)0; @@ -65,9 +71,9 @@ Global Glob; */ Global::Global() { - if (ValRes || TranSyn || Dicts || ddElem) + if (ValRes || TranSyn || Dicts || ddElem || GroupName ) { - gdcmWarningMacro( "VR or TS or Dicts already allocated"); + gdcmStaticWarningMacro( "VR or TS or Dicts or ... already allocated"); return; } Dicts = DictSet::New(); @@ -91,45 +97,6 @@ Global::~Global() //----------------------------------------------------------------------------- // Public -/** - * \brief returns a pointer to Dictionaries Table - */ -DictSet *Global::GetDicts() -{ - return Dicts; -} - -/** - * \brief returns a pointer to the 'Value Representation Table' - */ -VR *Global::GetVR() -{ - return ValRes; -} - -/** - * \brief returns a pointer to the 'Transfer Syntax Table' - */ -TS *Global::GetTS() -{ - return TranSyn; -} - -/** - * \brief returns a pointer to the Group name correspondance table - */ -DictGroupName *Global::GetDictGroupName() -{ - return GroupName; -} - -/** - * \brief returns a pointer to the DicomDir related elements Table - */ -DicomDirElement *Global::GetDicomDirElements() -{ - return ddElem; -} //----------------------------------------------------------------------------- // Protected