]> Creatis software - gdcm.git/commitdiff
Now TestWriteSimple checks also 'signed' values
authorjpr <jpr>
Thu, 10 Feb 2005 10:51:39 +0000 (10:51 +0000)
committerjpr <jpr>
Thu, 10 Feb 2005 10:51:39 +0000 (10:51 +0000)
Testing/TestDicomDirElement.cxx
Testing/TestWriteSimple.cxx

index a5f1c9f75ad36cee3882b72ebba7724a50548b9a..8df1b73716bbd9f6fd50b3fbb8593e71c9e0e7ae 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDicomDirElement.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/02 10:05:26 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/02/10 10:51:39 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -16,7 +16,9 @@
                                                                                 
 =========================================================================*/
 #include "gdcmDicomDirElement.h"
-
+#include "gdcmDebug.h"
+#include "gdcmGlobal.h"
+#include "gdcmCommon.h"
 #include <iostream>
 
 int TestDicomDirElement(int , char *[])
@@ -29,7 +31,22 @@ int TestDicomDirElement(int , char *[])
    }  
    ddElt->Print( std::cout );
 
-   // TODO : User add an Entry (e.g Physician Name )
+   // Let's allow User to add an Entry (e.g Patient Weight )
+
+   // We can add an Entry to the default list of any of the Element
+   // Add Patient Weight to the default list
+
+   // FIXME : Why doesn't it compile ?!?
+   // FIXME :`DD_PATIENT' undeclared (first use this function)
+   // FIXME : see gdcmCommon.h !!
+
+   //ddElt->AddDicomDirElement ( DD_PATIENT, 0x0010, 0x1010 );
+
+   // We could add others
+
+   std::cout << " -------- DicomDirElement After modif --------" <<std::endl;
+   ddElt->Print(std::cout );
 
    delete ddElt;
    return 0;
index 8dc6b5a423fb3a9ad27d27f39256af5ebb178c5d..9e23c936372b32bc5c4edad6200bb342648d1d44 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWriteSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/09 16:28:41 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2005/02/10 10:51:39 $
+  Version:   $Revision: 1.24 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -70,6 +70,32 @@ Image Images [] = {
    {512, 256, 10, 3, 8, 8,  0, 'a'},
    {512, 256, 10, 3, 8, 8,  0, 'e'},
    {512, 256, 10, 3, 8, 8,  0, 'i'},
+
+   {256, 256, 1, 1, 8,  8,  1, 'a'},
+   {256, 256, 1, 1, 8,  8,  1, 'e'},
+   {256, 256, 1, 1, 8,  8,  1, 'i'},
+
+   {512, 256, 1, 1, 8,  8,  1, 'a'},
+   {512, 256, 1, 1, 8,  8,  1, 'e'},
+   {512, 256, 1, 1, 8,  8,  1, 'i'},
+
+   {256, 512, 1, 1, 8,  8,  1, 'a'},
+   {256, 512, 1, 1, 8,  8,  1, 'e'},
+   {256, 512, 1, 1, 8,  8,  1, 'i'},
+
+   {256, 512, 1, 1, 16, 16, 1, 'a'},
+   {256, 512, 1, 1, 16, 16, 1, 'e'},
+   {256, 512, 1, 1, 16, 16, 1, 'i'},
+   {256, 512, 1, 1, 16, 16, 1, 'a'},
+   {256, 512, 1, 1, 16, 16, 1, 'e'},
+   {256, 512, 1, 1, 16, 16, 1, 'i'},
+
+   {512, 256, 10, 1, 8, 8,  1, 'a'},
+   {512, 256, 10, 1, 8, 8,  1, 'e'},
+   {512, 256, 10, 1, 8, 8,  1, 'i'},
+   {512, 256, 10, 3, 8, 8,  1, 'a'},
+   {512, 256, 10, 3, 8, 8,  1, 'e'},
+   {512, 256, 10, 3, 8, 8,  1, 'i'},
    {0,   0,   1,  1, 8, 8,  0, 'i'} // to find the end
 };