X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=0804497e2ae466343e4db918a67c62c1c97b61fc;hb=48bb568cbb7f23c7bd95cbbc7e912bd25bcb9468;hp=f6de2c7dbc3198101ad870bda391340c84950872;hpb=ff8631dd8488e6604df635faf472ee85f5b8a4b6;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index f6de2c7d..0804497e 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/02 15:07:41 $ - Version: $Revision: 1.53 $ + Date: $Date: 2005/06/07 13:48:36 $ + Version: $Revision: 1.57 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -64,19 +64,27 @@ 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; + static std::string GDCM_MAC_ADRESS; }; -template -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); GDCM_EXPORT std::ostream &binary_write(std::ostream &os, std::string const &val); +GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const uint8_t *val, size_t len); +GDCM_EXPORT std::ostream &binary_write(std::ostream &os, const uint16_t *val, size_t len); } // end namespace gdcm //----------------------------------------------------------------------------- #endif