X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FRawToDicom.cxx;h=db6f3c2c58284c45ca5974ee00e22ca01805a3ff;hb=e94eb1fac98d0e098fd6750c54743c592ec90f7b;hp=a2ffe02cd2ab266b47a28516997ce454f27edd0a;hpb=88a0e8d8c47070a680d71eb6a7ac349993e81a5f;p=gdcm.git diff --git a/Example/RawToDicom.cxx b/Example/RawToDicom.cxx index a2ffe02c..db6f3c2c 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/09/18 11:01:55 $ - Version: $Revision: 1.13 $ + Date: $Date: 2008/06/03 10:01:14 $ + Version: $Revision: 1.15 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) const char *inputFileName = am->ArgMgrGetString("filein"); const char *outputFileName = am->ArgMgrGetString("fileout"); - const char *patientName = am->ArgMgrGetString("patientname"); + const char *patientName = am->ArgMgrGetString("patientname", "g^Fantomas"); int nX = am->ArgMgrWantInt("rows", usage); int nY = am->ArgMgrWantInt("lines", usage); @@ -120,8 +120,9 @@ int main(int argc, char *argv[]) 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");