]> Creatis software - gdcm.git/commitdiff
Prepare FileMetaInformationVersion (group 0002) management
authorjpr <jpr>
Thu, 17 Feb 2005 10:56:20 +0000 (10:56 +0000)
committerjpr <jpr>
Thu, 17 Feb 2005 10:56:20 +0000 (10:56 +0000)
src/gdcmUtil.cxx
src/gdcmUtil.h

index 316ab03f8a05e9dad3187a93cf93ab0bde5ad69c..c39885a326e3a0eb89fd2ea012c0487915a6318a 100644 (file)
@@ -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
index 8e7ac623f5b8980813291665d1c97588f7e6d349..4cb44015bbf3cde1b234a8616932729f3ddbce95 100644 (file)
@@ -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);