X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmGlobal.cxx;h=ef16d2b9a9488d328c10205b4c600b57d86f3432;hb=4ae5f29bc5a2fa48c38fe43d331e5099aad4ed0f;hp=f3196560ae64c03642b114993a3d1ba1c3e9f860;hpb=f8a2fc5a9738eda28a14f15c3d0180be1ba1373d;p=gdcm.git diff --git a/src/gdcmGlobal.cxx b/src/gdcmGlobal.cxx index f3196560..ef16d2b9 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/30 10:58:27 $ - Version: $Revision: 1.30 $ + Date: $Date: 2007/07/04 15:38:53 $ + Version: $Revision: 1.36 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,7 +25,7 @@ #include "gdcmDictSet.h" #include "gdcmDicomDirElement.h" -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /// \brief Those global string that are returned by reference everywhere in @@ -35,15 +35,21 @@ namespace gdcm /// 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"; -const std::string GDCM_NOTASCII = "gdcm::NotAscii"; -const std::string GDCM_PIXELDATA = "gdcm::Pixel Data to be loaded"; +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"; +const std::string GDCM_NOTASCII = "GDCM::NotAscii"; +const std::string GDCM_PIXELDATA = "GDCM::Pixel Data to be loaded"; -const std::string GDCM_VRUNKNOWN = " "; +const char GDCM_VRUNKNOWN[2] = {' ',' '}; // avoid useless std::string stuff + +#ifdef _WIN32 +const char GDCM_FILESEPARATOR = '\\'; +#else +const char GDCM_FILESEPARATOR = '/'; +#endif //----------------------------------------------------------------------------- DictSet *Global::Dicts = (DictSet *)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