]> Creatis software - gdcm.git/commitdiff
*** empty log message ***
authorregrain <regrain>
Wed, 4 Feb 2004 12:50:53 +0000 (12:50 +0000)
committerregrain <regrain>
Wed, 4 Feb 2004 12:50:53 +0000 (12:50 +0000)
ChangeLog
Testing/TestDicomDir.cxx
gdcmPython/__init__.py
gdcmPython/demo/PrintHeader.py

index 42154f9526a8ea651d9dd43261f8461ae1dfd2fd..973aeda3600ab81679bb5711c566fa5fdc0765f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
             
 2004-02-04 Benoit Regrain
      * FIX : WriteEntries : coding style & logic in parameters
+     * FIX : Set the elements to create the DicomDir in a dictionary file
 
 2004-02-03 Benoit Regrain
      * gdcmDirList : to parse a hard drive directory in recursive (or not)
index 4da27044ee9f0ba4faa8294ceda008a6458431bb..a9fceebef3519196c955d3685c428a9187087474 100644 (file)
@@ -184,6 +184,7 @@ int main(int argc, char* argv[])
       itPatient ++;    
    }*/
 
+   std::cout<<std::flush;
    delete e1;
 
    return(0);
index 3cbeb9cf18b236957a6c9245fc11e37b287fa503..86929df888e9d0f09192a0b2e6a59556424bce8e 100644 (file)
@@ -72,6 +72,7 @@ except ImportError,e:
 ### Expose only the necessary stuff
 gdcmGlobal       = gdcm.gdcmGlobal
 gdcmDictSet      = gdcm.gdcmDictSet
+gdcmDicomDir     = gdcm.gdcmDicomDir
 gdcmHeader       = gdcm.gdcmHeader
 gdcmHeaderHelper = gdcm.gdcmHeaderHelper
 gdcmFile         = gdcm.gdcmFile
index 7648b483b3b1b06b460bad49a9ebd9a559c45fdd..4dafd14092d28bcc9da4295a4f6e54b93976982a 100644 (file)
@@ -7,6 +7,11 @@ try:
 except IndexError:
    FileName = os.path.join(GDCM_DATA_PATH, "test.acr")
 
+try:
+   printLevel = int(sys.argv[2])
+except IndexError:
+   printLevel = 1
+
 #if not os.path.isfile(FileName):
 #   print "Cannot open file ", FileName
 #   sys.exit()
@@ -24,6 +29,10 @@ print "##############################################################"
 print "### Display all the elements and their respective values"
 print "## found in the ", FileName, " file."
 print "##############################################################"
-ValDict = toRead.GetEntry()
-for key in ValDict.keys():
-       print "[%s] = [%s]" %(key, ValDict[key])
+toRead.SetPrintLevel(printLevel)
+toRead.Print()
+
+# ValDict = toRead.GetEntry()
+# for key in ValDict.keys():
+#      print "[%s] = [%s]" %(key, ValDict[key])
+