X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.h;h=a32b5f2c4bff926aecd4c26edce227abfe8b535d;hb=f0ea8af1179c35ddc83da32df10813899427214d;hp=6668b8035d38ec7d36fde1790a1791e5ecb4c696;hpb=6bcd9b8c2dca341ac79674be22c3d09323ee6e78;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index 6668b803..a32b5f2c 100644 --- a/src/gdcmUtil.h +++ b/src/gdcmUtil.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.h,v $ Language: C++ - Date: $Date: 2004/10/27 22:58:06 $ - Version: $Revision: 1.38 $ + Date: $Date: 2004/11/05 20:23:14 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -48,7 +48,17 @@ public: static std::string NormalizePath(std::string const & name); static std::string GetPath(std::string const &fullName); static std::string GetName(std::string const &fullName); + + static std::string DicomString(const char* s, size_t l); + static std::string DicomString(const char* s); }; + + template + std::ostream& binary_write(std::ostream& os, const T& val); + std::ostream& binary_write(std::ostream& os, const uint16_t& val); + std::ostream& binary_write(std::ostream& os, const uint32_t& val); + std::ostream& binary_write(std::ostream& os, const char* val); + std::ostream& binary_write(std::ostream& os, std::string const & val); } // end namespace gdcm //----------------------------------------------------------------------------- #endif