From: jpr Date: Thu, 17 Feb 2005 10:56:20 +0000 (+0000) Subject: Prepare FileMetaInformationVersion (group 0002) management X-Git-Tag: Version1.2.bp~872 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4926761e205f17089d13bcd94a2b5fccfad33404;p=gdcm.git Prepare FileMetaInformationVersion (group 0002) management --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 316ab03f..c39885a3 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/02/14 16:20:30 $ - Version: $Revision: 1.145 $ + Date: $Date: 2005/02/17 10:56:20 $ + Version: $Revision: 1.146 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -92,6 +92,8 @@ namespace gdcm //------------------------------------------------------------------------- const std::string Util::GDCM_UID = "1.2.826.0.1.3680043.2.1143"; std::string Util::RootUID = GDCM_UID; +const uint16_t Util::FMIV = 0x0001; +uint8_t *Util::FileMetaInformationVersion = (uint8_t *)&FMIV; //------------------------------------------------------------------------- // Public diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index 8e7ac623..4cb44015 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.h,v $ Language: C++ - Date: $Date: 2005/02/11 20:04:08 $ - Version: $Revision: 1.55 $ + Date: $Date: 2005/02/17 10:56:20 $ + Version: $Revision: 1.56 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -64,11 +64,18 @@ public: static void SetRootUID(const std::string &root = ""); static const std::string &GetRootUID(); + static const uint8_t *GetFileMetaInformationVersion() + { return FileMetaInformationVersion;}; + static void SetFileMetaInformationVersion( uint16_t fmiv) + { FileMetaInformationVersion = (uint8_t *)&fmiv; }; + private: static std::string GetIPAddress(); //Do not expose this method static std::string RootUID; static const std::string GDCM_UID; + static uint8_t *FileMetaInformationVersion; + static const uint16_t FMIV; }; GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const uint16_t &val);