]> Creatis software - creaImageIO.git/commitdiff
bug correction : no spaces in descriptor files
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 28 Apr 2009 13:41:19 +0000 (13:41 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 28 Apr 2009 13:41:19 +0000 (13:41 +0000)
src2/creaImageIOTreeDescriptor.cpp
src2/localdatabase_Descriptor.txt

index 6849b10bd6740f84cc36774381a551473c0c25ff..cdbdc15584c30b3bd8a41c460b640dbfcd3c7b04 100644 (file)
@@ -1,5 +1,6 @@
 #include <creaImageIOTreeDescriptor.h>
 #include <boost/algorithm/string/split.hpp>
+#include <boost/algorithm/string/replace.hpp>
 #include <creaImageIOSystem.h>
 #include <boost/filesystem.hpp>
 
@@ -206,7 +207,7 @@ namespace creaImageIO
                                        Add(AttributeDescriptor( group,element,flag), ilevel);
                                }
                                else // "O" means if user's own tag.
-                               {       
+                               {       boost::algorithm::replace_all(descriptors[2],"_"," ");
                                        Add(AttributeDescriptor( descriptors[1].c_str(),descriptors[2].c_str(),flag), ilevel);
                                }
                        }
index cd7e86fa106030ec5c16375faa807b810a005055..4f5603baad2f14d1e218dccb4d335653d2293955 100644 (file)
@@ -56,4 +56,4 @@ D 0x0028 0x1053
 D 0x0050 0x0004
 D 0x0020 0x0052
 D 0x0008 0x0016
-O FullFileName Full file name 2
\ No newline at end of file
+O FullFileName Full_file_name 2