X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FRawToDicom.cxx;h=a2ffe02cd2ab266b47a28516997ce454f27edd0a;hb=88a0e8d8c47070a680d71eb6a7ac349993e81a5f;hp=e39dc41673751ada4431adaf88445a51cbc8e306;hpb=353a842f7e6ab238dbd0c31a1c7e0d2b61617f58;p=gdcm.git diff --git a/Example/RawToDicom.cxx b/Example/RawToDicom.cxx index e39dc416..a2ffe02c 100755 --- a/Example/RawToDicom.cxx +++ b/Example/RawToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: RawToDicom.cxx,v $ Language: C++ - Date: $Date: 2007/07/05 13:17:26 $ - Version: $Revision: 1.11 $ + Date: $Date: 2007/09/18 11:01:55 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -114,8 +114,8 @@ int main(int argc, char *argv[]) if (am->ArgMgrDefined("debug")) GDCM_NAME_SPACE::Debug::DebugOn(); + bool userDefinedStudy = ( 0 != am->ArgMgrDefined("studyUID") ); - bool userDefinedStudy = am->ArgMgrDefined("studyUID"); const char *studyUID; if (userDefinedStudy) studyUID = am->ArgMgrGetString("studyUID"); @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) return 1; } - std::string strStudyUID; + std::string strStudyUID; std::string strSerieUID; if (userDefinedStudy) @@ -222,8 +222,6 @@ int main(int argc, char *argv[]) // Get the (empty) image header. GDCM_NAME_SPACE::File *fileToBuild = fileH->GetFile(); - - // 'Study Instance UID' // The user is allowed to create his own Study,