X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmUtil.h;h=764369364e85697963deff4fe3e2f88341273bfe;hb=3afc179392ebebe610f7685bc8895b690c2a66aa;hp=6668b8035d38ec7d36fde1790a1791e5ecb4c696;hpb=6bcd9b8c2dca341ac79674be22c3d09323ee6e78;p=gdcm.git diff --git a/src/gdcmUtil.h b/src/gdcmUtil.h index 6668b803..76436936 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/10 18:27:24 $ + Version: $Revision: 1.42 $ 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,19 @@ 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 GetCurrentDate(); + static std::string GetCurrentTime(); + + static std::string DicomString(const char* s, size_t l); + static std::string DicomString(const char* s); }; + + 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); } // end namespace gdcm //----------------------------------------------------------------------------- #endif