X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=fb7d6538a2d9d6ffd61fd14012f0fc6a8a537789;hb=e9a27a25c5f3c9933e6fe2ba1ef53e2797006727;hp=c56e707b41ab74d2bac047a2f984fbb81448ba17;hpb=112340c6c14f46e5e575eccc072b6b82bb97e2aa;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index c56e707b..fb7d6538 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/08 23:00:23 $ - Version: $Revision: 1.85 $ + Date: $Date: 2005/01/10 17:09:49 $ + Version: $Revision: 1.87 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -44,14 +44,17 @@ namespace gdcm * \ingroup Globals * \brief Provide a better 'c++' approach for sprintf * For example c code is: - * sprintf(trash, "%04x|%04x", group , element); + * sprintf(trash, "%04x|%04x", group , elem); * - * c++ is + * c++ code is * std::ostringstream buf; * buf << std::right << std::setw(4) << std::setfill('0') << std::hex * << group << "|" << std::right << std::setw(4) << std::setfill('0') - * << std::hex << element; + * << std::hex << elem; * buf.str(); + * + * gdcm style code is + * Format("%04x|%04x", group , elem); */ std::string Util::Format(const char *format, ...) @@ -366,9 +369,7 @@ typedef BOOL(WINAPI * pSnmpExtensionInitEx) ( #endif #ifdef __APPLE__ - #include - #include #include #include