X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FRawToDicom.cxx;h=da5f00b2f964465a4dcb95c2051a412f59033cef;hb=d37154e4495e1e1c18c44f6cae6ef2ff8a2891cf;hp=e39dc41673751ada4431adaf88445a51cbc8e306;hpb=353a842f7e6ab238dbd0c31a1c7e0d2b61617f58;p=gdcm.git diff --git a/Example/RawToDicom.cxx b/Example/RawToDicom.cxx index e39dc416..da5f00b2 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/20 11:15:54 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -114,14 +114,15 @@ 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"); - // not described *on purpose* in the Usage ! - bool userDefinedSerie = am->ArgMgrDefined("serieUID"); + // not described *on purpose* in the Usage ! + bool userDefinedSerie = ( 0 != am->ArgMgrDefined("serieUID") ); + const char *serieUID; if(userDefinedSerie) serieUID = am->ArgMgrGetString("serieUID"); @@ -192,7 +193,7 @@ int main(int argc, char *argv[]) return 1; } - std::string strStudyUID; + std::string strStudyUID; std::string strSerieUID; if (userDefinedStudy) @@ -222,8 +223,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,