X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmGlobal.cxx;h=2bed919593c4f51fc22af85e8e57dec5d61e897d;hb=60ac87ad1e0f2a7875e742b88672f61c40dc02fb;hp=6f98bbfe9ff8f6436d37f3cf6b06238f60131940;hpb=46afb30d2d016a9b1581c7ee4ca96d614a35203c;p=gdcm.git diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index 6f98bbfe..2bed9195 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/11/28 15:20:33 $ - Version: $Revision: 1.29 $ + Date: $Date: 2006/03/22 13:19:25 $ + Version: $Revision: 1.32 $ 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; @@ -52,6 +58,8 @@ TS *Global::TranSyn = (TS *)0; DictGroupName *Global::GroupName = (DictGroupName *)0; DicomDirElement *Global::ddElem = (DicomDirElement *)0; +Dict *Global::DefaultPubDict = (Dict *)0; + //----------------------------------------------------------------------------- /** * \brief Global container @@ -65,9 +73,9 @@ Global Glob; */ Global::Global() { - if (ValRes || TranSyn || Dicts || ddElem) + if (ValRes || TranSyn || Dicts || ddElem || GroupName ) { - gdcmStaticWarningMacro( "VR or TS or Dicts already allocated"); + gdcmStaticWarningMacro( "VR or TS or Dicts or ... already allocated"); return; } Dicts = DictSet::New(); @@ -91,45 +99,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