]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.h
COMP: Snap, forgot this one...
[gdcm.git] / src / gdcmUtil.h
index 86cee1447749c9fc7291868330446afa2d34d011..4cb44015bbf3cde1b234a8616932729f3ddbce95 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/11 19:00:39 $
-  Version:   $Revision: 1.54 $
+  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,15 +64,20 @@ 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;
 };
 
-template <class T> 
-GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const T &val);
 GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const uint16_t &val);
 GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const uint32_t &val);
 GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const char *val);