X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexPresentationState.cxx;h=23f41749b916db5c2881e30ae182ff678d6b5369;hb=6fc9a59ce58ba4bb71d63a57e6b1ef2c3c87292a;hp=49aab7341402f72c454e69015c207b3b8616325a;hpb=80075429b6ab9db9e885b9bb9ae1427530c7bef8;p=gdcm.git diff --git a/Example/exPresentationState.cxx b/Example/exPresentationState.cxx index 49aab734..23f41749 100644 --- a/Example/exPresentationState.cxx +++ b/Example/exPresentationState.cxx @@ -4,8 +4,8 @@ Program: gdcm Module: $RCSfile: exPresentationState.cxx,v $ Language: C++ - Date: $Date: 2009/05/25 14:29:16 $ - Version: $Revision: 1.2 $ + Date: $Date: 2009/05/28 15:44:34 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -54,6 +54,10 @@ int main(int argc, char *argv[]) " noseq : user doesn't want to load Sequences ", " verbose : developper wants to run the program in 'verbose mode' ", " debug : developper wants to run the program in 'debug mode' ", + " ", + " you can use it as : ", + " for i in `ls PS*`; do exPresentationState PSFile=$i; done ", + " just to see ... ", FINISH_USAGE // ----- Initialize Arguments Manager ------ @@ -133,14 +137,19 @@ int main(int argc, char *argv[]) //displaySeekResult(se, 0x0070, 0x0001); if (!se) { - std::cout << "Hopeless : " << std::hex << 0x0070 << "|" << 0x0001 << std::dec << " doesn't exist..." <GetFirstSQItem(); // Get the first 'ROI' + if (currentItem == NULL) + { + std::cout << "======== Deal With NOTHING! (Sequence 0070|0001 [Graphic Annotation Sequence] has NO item ?!?)" << std::endl; + } int i =0; while (currentItem != NULL) { @@ -170,6 +179,8 @@ int main(int argc, char *argv[]) f->Delete(); fPS->Delete(); + + std::cout << "\n\n" <