X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FexExtractCSA.cxx;h=a1368f9bd8d0006bb2b8c8a1263d75dbbe3c16b5;hb=7a111e0401fb1a09aa0d2dd4ab8d5bc6e4890f82;hp=4b5e3c74901fb500eb6ec7f199d2bb42b896d602;hpb=42934e5879027aede60de92af326c3ebe1b9b8ef;p=gdcm.git diff --git a/Example/exExtractCSA.cxx b/Example/exExtractCSA.cxx index 4b5e3c74..a1368f9b 100755 --- a/Example/exExtractCSA.cxx +++ b/Example/exExtractCSA.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exExtractCSA.cxx,v $ Language: C++ - Date: $Date: 2007/06/21 15:06:13 $ - Version: $Revision: 1.4 $ + Date: $Date: 2007/10/03 09:14:55 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -43,19 +43,6 @@ #include "gdcmSQItem.h" #include "gdcmArgMgr.h" -// Looks like there is mapping in between syngodt and vr... -// O <=> UN -// 3 <=> DS -// 4 <=> FD -// 5 <=> FL -// 6 <=> IS -// 9 <=> UL -// 10 <=> US -// 16 <=> CS -// 19 <=> LO -// 20 <=> LT -// 22 <=> SH -// 25 <=> UI // -------------------------------------------------------- @@ -87,12 +74,27 @@ struct equ char vr[2+1]; }; +// Looks like there is mapping in between syngodt and vr... +// O <=> UN +// 3 <=> DS +// 4 <=> FD +// 5 <=> FL +// 6 <=> IS +// 9 <=> UL +// 10 <=> US +// 16 <=> CS +// 19 <=> LO +// 20 <=> LT +// 22 <=> SH +// 25 <=> UI static equ mapping[] = { { 0 , "UN" }, { 3 , "DS" }, { 4 , "FD" }, { 5 , "FL" }, { 6 , "IS" }, + { 7 , "SL" }, + { 8 , "SS" }, { 9 , "UL" }, { 10 , "US" }, { 16 , "CS" }, @@ -101,6 +103,7 @@ static equ mapping[] = { { 22 , "SH" }, { 23 , "ST" }, { 25 , "UI" }, + { 27 , "UT" } }; bool check_mapping(uint32_t syngodt, const char *vr) @@ -122,7 +125,7 @@ bool check_mapping(uint32_t syngodt, const char *vr) } - ///\to fix the Desctructor! + ///\to fix the Destructor! void DeleteCSA_content (CSA_content &myMap) { for ( CSA_content::const_iterator it = myMap.begin(); it != myMap.end(); @@ -196,7 +199,7 @@ int main(int argc, char *argv[]) { am->ArgMgrUsage(usage); // Display 'usage' delete am; - return 0; + return 1; } if (am->ArgMgrDefined("debug")) @@ -244,7 +247,7 @@ int main(int argc, char *argv[]) { am->ArgMgrUsage(usage); delete am; - return 0; + return 1; } delete am; // ------ we don't need Arguments Manager any longer ------ @@ -327,7 +330,10 @@ for (int tag_no=0; tag_no