]> Creatis software - gdcm.git/commitdiff
ENH: * Huge cleanup:
authormalaterre <malaterre>
Fri, 3 Dec 2004 20:16:55 +0000 (20:16 +0000)
committermalaterre <malaterre>
Fri, 3 Dec 2004 20:16:55 +0000 (20:16 +0000)
     - Remove printf / sprintf
     - include iostream AFTER gdcm so we don't get warnings
     - GDCM_NO_ANSI_STRING_STREAM shouldn't be used explitely ouside of gdcm source
     - Also remove tons of include from header files, hopefully this should speeup the compilation time, since it was becoming a dog slow.
     - Remove gdcm.h as it include way too many files and slow down compilation (plus it is not up to date)
     - remove /using namespace std/ this is BAD

67 files changed:
ChangeLog
Example/BuildUpDicomDir.cxx
Example/CMakeLists.txt
Example/FindTags.cxx
Example/FlatHashTablePrint.cxx
Example/PrintDicomDir.cxx
Example/PrintDocument.cxx
Example/PrintFile.cxx
Example/PrintHeader.cxx
Example/TestDcm2Acr.cxx
Example/TestWrite.cxx
Example/TestWriteSimple.cxx
Example/Write.cxx
Example/WriteDicom.cxx
Example/WriteRead.cxx
Example/makeDicomDir.cxx
Testing/CMakeLists.txt
Testing/TestAllReadCompareDicom.cxx
Testing/TestBug.cxx
Testing/TestChangeHeader.cxx
Testing/TestCopyDicom.cxx
Testing/TestDicomDir.cxx
Testing/TestUtil.cxx
src/gdcmBinEntry.h
src/gdcmDebug.h
src/gdcmDicomDir.cxx
src/gdcmDicomDir.h
src/gdcmDicomDirMeta.cxx
src/gdcmDicomDirMeta.h
src/gdcmDicomDirObject.cxx
src/gdcmDicomDirObject.h
src/gdcmDicomDirPatient.cxx
src/gdcmDicomDirPatient.h
src/gdcmDicomDirSerie.cxx
src/gdcmDicomDirSerie.h
src/gdcmDicomDirStudy.cxx
src/gdcmDicomDirStudy.h
src/gdcmDict.h
src/gdcmDictSet.h
src/gdcmDocEntry.cxx
src/gdcmDocEntry.h
src/gdcmDocEntryArchive.cxx
src/gdcmDocEntryArchive.h
src/gdcmDocEntrySet.cxx
src/gdcmDocument.cxx
src/gdcmDocument.h
src/gdcmElementSet.h
src/gdcmException.h
src/gdcmFile.cxx
src/gdcmFile.h
src/gdcmGlobal.cxx
src/gdcmGlobal.h
src/gdcmHeader.h
src/gdcmJPEGFragment.h
src/gdcmJPEGFragmentsInfo.h
src/gdcmJpeg2000.cxx
src/gdcmPixelReadConvert.cxx
src/gdcmPixelReadConvert.h
src/gdcmRLEFrame.h
src/gdcmRLEFramesInfo.h
src/gdcmSQItem.cxx
src/gdcmSeqEntry.h
src/gdcmSerieHeader.cxx
src/gdcmSerieHeader.h
src/gdcmTS.h
src/gdcmValEntry.h
vtk/vtkGdcmReader.cxx

index 39408951478b8e3766a6b143e3485ce982671c29..fa93a9a6cc147b1723c4ebb62a2664bfc6e2e887 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-12-03 Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
+   * Huge cleanup:
+     - Remove printf / sprintf
+     - include iostream AFTER gdcm so we don't get warnings
+     - GDCM_NO_ANSI_STRING_STREAM shouldn't be used explitely ouside of gdcm source
+     - Also remove tons of include from header files, hopefully this should speeup the compilation time, since it was becoming a dog slow.
+     - Remove gdcm.h as it include way too many files and slow down compilation (plus it is not up to date)
+     - remove 'using namespace std' this is BAD !
+
 2004-12-03 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
    * Remove memory leaks on the DicomDir
    * Remove some useless datas in DicomDirObject
index 7aa49723d1d8c705588891d8a49be588e54ded0f..f531f2cbeaabee0bf6ea2e1ca78fd25b5d63e7b9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: BuildUpDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/30 18:10:23 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcm.h"
 #include "gdcmDocEntry.h"
 #include "gdcmDicomDir.h"
 #include "gdcmDicomDirPatient.h"
 #include "gdcmDirList.h"
 #include "gdcmDebug.h"
-
-#include <fstream>
-#include <iostream>
-#include <stdio.h>
-#ifdef GDCM_NO_ANSI_STRING_STREAM
-#  include <strstream>
-#  define  ostringstream ostrstream
-# else
-#  include <sstream>
-#endif
-
-#define  ostringstream ostrstream
-
-#include <sys/types.h>
-#include <errno.h>
-
-// for Directory pb
-#if defined(_MSC_VER) || defined(__BORLANDC__) 
-   #include <windows.h> 
-   #include <direct.h>
-   #include <stdio.h>
-#else
-   #include <dirent.h>   
-   #include <unistd.h>
-#endif
-
-#include <vector>
-#include <algorithm>
+#include "gdcmDicomDirStudy.h"
+#include "gdcmDicomDirSerie.h"
+#include "gdcmDicomDirImage.h"
 
 // ===============================================================
 /**
@@ -72,7 +46,7 @@ int main(int argc, char* argv[])
    gdcm::DicomDir *dcmdir;
    dcmdir = new gdcm::DicomDir();
 
-   printf( "\n------- BuildUpDicomDir: Test Print Meta only -----\n");
+   std::cout << "\n------- BuildUpDicomDir: Test Print Meta only -----" << std::endl;
    ((gdcm::Document *)dcmdir)->Print();
 
    gdcm::DicomDirPatient *p1=dcmdir->NewPatient();
index b49dbe1a7b5872e065c4e8ae09e24979d2436d72..1a588bb601c02a3215951a8713f2eea7889f3bdd 100644 (file)
@@ -58,3 +58,6 @@ TARGET_LINK_LIBRARIES(TestReadWriteReadCompare  gdcm)
 
 ADD_EXECUTABLE(FlatHashTablePrint FlatHashTablePrint.cxx)
 TARGET_LINK_LIBRARIES(FlatHashTablePrint gdcm)
+
+ADD_EXECUTABLE(Volume2Dicom Volume2Dicom.cxx)
+TARGET_LINK_LIBRARIES(Volume2Dicom gdcm)
index 7bd9c00eaa1190cd9bb81c3d62a2b5d6091448c9..6620c327140a9c14c4ca55bc602ad01755663727 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FindTags.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:17 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include <iostream>
-#include "gdcm.h"
-#include "math.h"
-#include <stdio.h>
+#include "gdcmFile.h"
+#include "gdcmHeader.h"
+#include "gdcmUtil.h"
 
-int main(int argc, char* argv[]) {  
+#include <iostream>
 
+int main(int argc, char* argv[])
+{
    std::string toto, titi;
 
    gdcm::File  * f1;
@@ -37,13 +38,13 @@ int main(int argc, char* argv[]) {
    std::string ManufacturerName="SIEMENS ";
    std::string RecCode="ACR-NEMA 2.0";
    std::string ImagePositionPatient, Location, ImageLocation;
-   char zozo[100], zizi[50];
+   std::string zozo;
    char c;
 
    float x, y, z, l;
 
    int dataSize = f1->GetImageDataSize();
-   printf ("---> pourFindTaggs : dataSize %d\n",dataSize);
+   std::cout << "---> pourFindTaggs : dataSize " << dataSize << std::endl;
 
    f1->SetEntryByNumber(RecCode ,0x0008,0x0010);
    f1->SetEntryByNumber(ManufacturerName ,0x0008,0x0070);
@@ -66,8 +67,8 @@ int main(int argc, char* argv[]) {
 // existerait-il qq chose qui marche Ã  tout coup?
 
 // Location
-   sprintf(zizi,"%f\n",l);
-   Location = zizi;
+   std::string zizi = gdcm::Util::Format("%f",l);
+   Location = gdcm::Util::DicomString(zizi.c_str());
    f1->SetEntryByNumber(Location, 0x0020,0x0050);
 
 // sinon, la longueur du champ est erronée (?!?) 
@@ -81,8 +82,8 @@ int main(int argc, char* argv[]) {
 
 // Image Location 
 
-   sprintf(zizi,"%d\n",0x7FE0);
-   ImageLocation = zizi;
+   zizi = gdcm::Util::Format("%d",0x7FE0);
+   ImageLocation = gdcm::Util::DicomString(zizi.c_str());
 //f1->SetEntryByNumber(Location, 0x0028,0x0200);
 //f1->GetHeader()->SetEntryLengthByNumber(strlen(ImageLocation.c_str())-1, 0x0020,0x0050); // prudence !
 
@@ -90,20 +91,20 @@ int main(int argc, char* argv[]) {
 
 // ecriture d'un fichier ACR Ã  partir d'un dcmHeader correct.
 
-   printf ("----------------avant PrintEntry---------------------\n");
+   std::cout << "----------------avant PrintEntry---------------------" << std::endl;
    f1->GetHeader()->Print();
-   printf ("----------------avant WriteDcm---------------------\n");
+   std::cout << "----------------avant WriteDcm---------------------" << std::endl;
 
 
 // ecriture d'un fichier ACR Ã  partir d'un dcmHeader correct.
 
-   sprintf(zozo, "%s.acr", toto.c_str());
-   printf ("WriteACR\n");
+   zozo = toto + ".acr";
+   std::cout << "WriteACR" << std::endl;
    f1->WriteAcr(zozo);
 
-   printf ("----------------apres Write---------------------\n");
+   std::cout << "----------------apres Write---------------------" << std::endl;
 
-  return 0;
+   return 0;
 }
 
 
index c330dda8198d5ecef1192c615cac88fadf6e9b35..9403d02d1c286c294bc09c078225160991dee5c4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FlatHashTablePrint.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:17 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -16,6 +16,7 @@
                                                                                 
 =========================================================================*/
 #include "gdcmHeader.h"
+#include "gdcmDocEntry.h"
 
 // Iterate on all the Dicom entries encountered in the gdcmFile (given
 // as line argument) and print them. This is an illustration of the
index 257823e89c6caed0781d69efb04b1a57e281755b..eb2052c8798181ac379186e56803b65dbcccc343 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:17 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include <iostream>
-#include "gdcm.h"
 #include "gdcmDocument.h"
 #include "gdcmDicomDir.h"
 #include "gdcmValEntry.h"
+#include "gdcmDicomDirPatient.h"
+#include "gdcmDicomDirStudy.h"
+#include "gdcmDicomDirSerie.h"
+#include "gdcmDicomDirImage.h"
+#include "gdcmTS.h"
 
 #include <fstream>
-
-using namespace std;
+#include <iostream>
 
 int main(int argc, char* argv[])
 {  
@@ -90,7 +92,7 @@ int main(int argc, char* argv[])
 */
 
  
-   cout << std::endl << std::endl  
+   std::cout << std::endl << std::endl  
         << " =  PATIENT/STUDY/SERIE List ==================================" 
         << std::endl<< std::endl;
  
index 43b95b13c09fc3c52577df0f7240ab9bea1225db..02f2b33e5d373ac6679d7b3844f3fbbd28e409e2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:17 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -15,8 +15,9 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
+
 #include <iostream>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {
index 2d2f671f995ff049dc41508f84b1a614dbf05d38..85275e2ea229c37b7f83f7609ebae99568fbd801 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 11:55:37 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
+
 #include <iostream>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {
index 04a1c2914b6dfa07214d53538bfa981f2bdc12b1..68b09261ebb3e710191d970cba064e86cb6179b0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:53 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -15,8 +15,8 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
 #include <iostream>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 { 
index 4e8332a80c15e73d6d94632129a718221803525f..86a6ba7be3a5ffeeaa81ec0b4ceb1f7a87e98e63 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDcm2Acr.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:18 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmFile.h"
+#include "gdcmHeader.h"
+
 #include <iostream>
-#include "gdcm.h"
-#include <stdio.h>
 
 int main(int argc, char* argv[])
 {  
    std::string toto;
-   char zozo[100];
+   std::string zozo;
 
    gdcm::File  * f1;
 
-   printf (" Before gdcmFile() \n");
-   printf ("\n\n---------------------------------------\n\n");
+   std::cout << " Before gdcmFile()" << std::endl;
+   std::cout << "\n\n---------------------------------------" << std::endl;
 
-   if (argc > 1) {
+   if (argc > 1)
+   {
       toto = argv[1];
       f1 = new gdcm::File(toto);
-   } else {
+   }
+   else
+   {
       std::string filename = GDCM_DATA_ROOT;
       filename += "/test.acr";
-      f1 = new gdcm::File(filename.c_str());
+      f1 = new gdcm::File(filename);
    }
-   printf (" Sortie gdcmFile() \n");
+   std::cout << " Sortie gdcmFile()" << std::endl;
 
    //e1.PrintPubDict(std::cout);
    f1->GetHeader()->Print();
@@ -45,7 +49,7 @@ int main(int argc, char* argv[])
    //cle = gdcmDictEntry::TranslateToKey(0x0028,0x0008);
 
    int dataSize = f1->GetImageDataSize();
-   printf ("dataSize %d\n",dataSize);
+   std::cout << "dataSize:" << dataSize << std::endl;
 
    // void* imageData= f1->GetHeader()->GetImageData();
 
@@ -58,9 +62,9 @@ int main(int argc, char* argv[])
 
    // ecriture d'un fichier ACR Ã  partir d'un dcmHeader correct.
 
-   sprintf(zozo, "%s.nema", toto.c_str());
+   zozo = toto + ".nema";
    f1->WriteAcr(zozo);
-   printf ("\n\n---------------------------------------\n\n");
+   std::cout << "\n\n---------------------------------------\n\n" << std::endl;
 
    f1->GetHeader()->Print();
    
index 3355ed4339b55d8478329c0448f5c167fab1a99e..fb5468267bc0b110ec817f1f4c9925365d53af51 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWrite.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 11:55:37 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
+
 #include <iostream>
-#include <stdio.h>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {  
-   std::string toto;
-   char zozo[200];
-
+   std::string zozo;
 
    gdcm::Header* e1;
    gdcm::File  * f1;
@@ -64,7 +63,8 @@ int main(int argc, char* argv[])
              << "--------------------- file :" << argv[1] 
              << std::endl;
      
-   toto = argv[1]; 
+   std::string toto = argv[1]; 
+   std::string mode = argv[2];
 
    e1 = new gdcm::Header( toto.c_str() );
    if (!e1->IsReadable())
@@ -115,13 +115,14 @@ int main(int argc, char* argv[])
    }*/
    imageData= f1->GetImageData();
 
-   switch (argv[2][0]) {
+   switch (mode[0])
+   {
    case 'a' :
             // ecriture d'un fichier ACR 
             // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.ACR", toto.c_str());
-      printf ("WriteACR\n");
+      zozo = toto + ".ACR";
+      std::cout << "WriteACR" << std::endl;
       f1->WriteAcr(zozo);
       break;
 
@@ -130,8 +131,8 @@ int main(int argc, char* argv[])
            // ecriture d'un fichier DICOM Implicit VR 
            // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.DCM", toto.c_str());
-      printf ("WriteDCM Implicit VR\n");
+      zozo = toto + ".DCM";
+      std::cout << "WriteDCM Implicit VR" << std::endl;
       f1->WriteDcmImplVR(zozo);
       break;
 
@@ -139,7 +140,7 @@ int main(int argc, char* argv[])
               // ecriture d'un fichier DICOM Explicit VR 
               // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.XDCM", toto.c_str());
+      zozo = toto + ".XDCM";
       std::cout << "WriteDCM Explicit VR" << std::endl;
       f1->WriteDcmExplVR(zozo);
       break;
@@ -148,7 +149,7 @@ int main(int argc, char* argv[])
              //  Ecriture d'un Raw File, a afficher avec 
              // affim filein= dimx= dimy= nbit= signe=
 
-      sprintf(zozo, "%s.RAW", toto.c_str());
+      zozo = toto + ".RAW";
       std::cout << "WriteRaw" << std::endl;
       f1->WriteRawData(zozo);
       break;
@@ -171,8 +172,8 @@ int main(int argc, char* argv[])
            ((uint16_t*)imageData)[i] += 60000; //32767;
         }
      }
-     sprintf(zozo, "%s.VDCM", toto.c_str());
-     printf ("WriteDCM Explicit VR + VideoInv\n");
+     zozo = toto + ".VDCM";
+     std::cout << "WriteDCM Explicit VR + VideoInv" << std::endl;
      f1->WriteDcmExplVR(zozo);
      break;
 
index f474e3cbe2c8d0e61b9683b80e5e4f3e772da6d5..f194fe0518b6214149118913d895024c0ac8eca5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWriteSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:18 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -15,7 +15,8 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcm.h"
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
 
 int main(int argc, char* argv[])
 {
index 7c1d0e2efcf64fc3e7c8bed1ca1bc5488656d676..492506bf4381575279c839dad3b4d177d8611e1f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Write.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 11:55:37 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
+
 #include <iostream>
-#include <stdio.h>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {  
-   std::string toto;
-   char zozo[200];
+   std::string zozo;
 
    gdcm::Header* e1;
    gdcm::File  * f1;
@@ -60,7 +60,7 @@ int main(int argc, char* argv[])
              << "--------------------- file :" << argv[1] 
              << std::endl;
      
-   toto = argv[1]; 
+   std::string toto = argv[1]; 
 
    e1 = new gdcm::Header( toto.c_str() );
    if (!e1->IsReadable()) {
@@ -111,13 +111,14 @@ int main(int argc, char* argv[])
    imageData= f1->GetImageData();
    (void)imageData;  // to avoid warnings
 
-   switch (argv[2][0]) {
+   switch (argv[2][0])
+   {
    case 'a' :
             // ecriture d'un fichier ACR 
             // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.ACR", toto.c_str());
-      printf ("WriteACR\n");
+      zozo = toto + ".ACR";
+      std::cout << "WriteACR" << std::endl;
       f1->WriteAcr(zozo);
       break;
 
@@ -125,8 +126,8 @@ int main(int argc, char* argv[])
            // ecriture d'un fichier DICOM Implicit VR 
            // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.DCM", toto.c_str());
-      printf ("WriteDCM Implicit VR\n");
+      zozo = toto + ".DCM";
+      std::cout << "WriteDCM Implicit VR" << std::endl;
       f1->WriteDcmImplVR(zozo);
       break;
 
@@ -134,8 +135,8 @@ int main(int argc, char* argv[])
               // ecriture d'un fichier DICOM Explicit VR 
               // Ã  partir d'un dcmHeader correct.
 
-      sprintf(zozo, "%s.XDCM", toto.c_str());
-      std::cout << "WriteDCM Explicit VR" << std::endl;
+      zozo = toto + ".DCM";
+      std::cout << "WriteDCM Implicit VR" << std::endl;
       f1->WriteDcmExplVR(zozo);
       break;
 
@@ -143,7 +144,7 @@ int main(int argc, char* argv[])
              //  Ecriture d'un Raw File, a afficher avec 
              // affim filein= dimx= dimy= nbit= signe=
 
-      sprintf(zozo, "%s.RAW", toto.c_str());
+      zozo = toto + ".RAW";
       std::cout << "WriteRaw" << std::endl;
       f1->WriteRawData(zozo);
       break;
index 7116f734fceaefaaa7065440b17675711d50e015..9f83a2a03df19231f11d642ad8f692e593327674 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:03 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:55 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -15,7 +15,8 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcm.h"
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
 
 // Writting of a DICOM file based on a correct dicom header
 // and data pixel of another image
 int main(int argc, char* argv[])
 {
  
-  if (argc < 3) 
-    {
-    std::cerr << "Usage :" << std::endl << argv[0] << 
-      " HeaderFileName DataFileName" << std::endl;
-    return 0;
-    }
-
-  const char *first = argv[1];
-  gdcm::File *f1 = new gdcm::File( first );
-
-  const char *second = argv[2];
-  gdcm::File *f2 = new gdcm::File( second );
-
-  // We assume that DICOM fields of second file actually exists :
-
-  std::string nbFrames = f2->GetHeader()->GetEntryByNumber(0x0028, 0x0008);
-  if(nbFrames != "gdcm::Unfound") {
-      f1->GetHeader()->ReplaceOrCreateByNumber( nbFrames, 0x0028, 0x0008);
-  }
-         
-  f1->GetHeader()->ReplaceOrCreateByNumber(
-    f2->GetHeader()->GetEntryByNumber(0x0028, 0x0010), 0x0028, 0x0010); // nbLig
-  f1->GetHeader()->ReplaceOrCreateByNumber( 
-    f2->GetHeader()->GetEntryByNumber(0x0028, 0x0011), 0x0028, 0x0011); // nbCol
-
-  // Some other tags should be updated:
-
-  // TODO : add a default value
-  // TODO : a function which take as input a list of tuple (gr, el)
-  //        and that does the job
-
-  int dataSize    = f2->GetImageDataSize();
-  uint8_t* imageData = f2->GetImageData();
-
-  std::cout << "dataSize :" << dataSize << std::endl;
-
-  // TODO : Shouldn't we merge those two functions ?
-  f1->SetImageData( imageData, dataSize);
-
-  f1->GetHeader()->Print();
-
-  std::string s0  = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0000);
-  std::string s10 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0010);
-
-  std::cout << "lgr 7fe0, 0000 " << s0  << std::endl;
-  std::cout << "lgr 7fe0, 0010 " << s10 << std::endl;
-
-  std::cout << "WriteDCM" << std::endl;
-
-  f1->WriteDcmExplVR("WriteDicom.dcm");
-
-  return 0;
+   if (argc < 3) 
+     {
+     std::cerr << "Usage :" << std::endl << argv[0] << 
+       " HeaderFileName DataFileName" << std::endl;
+     return 0;
+     }
+   const char *first = argv[1];
+   gdcm::File *f1 = new gdcm::File( first );
+   const char *second = argv[2];
+   gdcm::File *f2 = new gdcm::File( second );
+   // We assume that DICOM fields of second file actually exists :
+   std::string nbFrames = f2->GetHeader()->GetEntryByNumber(0x0028, 0x0008);
+   if(nbFrames != "gdcm::Unfound") {
+       f1->GetHeader()->ReplaceOrCreateByNumber( nbFrames, 0x0028, 0x0008);
+   }
+          
+   f1->GetHeader()->ReplaceOrCreateByNumber(
+     f2->GetHeader()->GetEntryByNumber(0x0028, 0x0010), 0x0028, 0x0010); // nbLig
+   f1->GetHeader()->ReplaceOrCreateByNumber( 
+     f2->GetHeader()->GetEntryByNumber(0x0028, 0x0011), 0x0028, 0x0011); // nbCol
+   // Some other tags should be updated:
+   // TODO : add a default value
+   // TODO : a function which take as input a list of tuple (gr, el)
+   //        and that does the job
+   int dataSize    = f2->GetImageDataSize();
+   uint8_t* imageData = f2->GetImageData();
+   std::cout << "dataSize :" << dataSize << std::endl;
+   // TODO : Shouldn't we merge those two functions ?
+   f1->SetImageData( imageData, dataSize);
+   f1->GetHeader()->Print();
+   std::string s0  = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0000);
+   std::string s10 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0010);
+   std::cout << "lgr 7fe0, 0000 " << s0  << std::endl;
+   std::cout << "lgr 7fe0, 0010 " << s10 << std::endl;
+   std::cout << "WriteDCM" << std::endl;
+   f1->WriteDcmExplVR("WriteDicom.dcm");
+   return 0;
 }
index fab3f75dac2851d9b6746cf1b8b8688186a6ebf3..7e75baaeee21c00110375660d4e32b81a310145d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteRead.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:18 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
+#include "gdcmHeader.h"
+#include "gdcmFile.h"
+
 #include <iostream>
-#include <stdio.h>
-#include "gdcm.h"
 
 int main(int argc, char* argv[])
 {  
-   std::string toto;
-   char zozo[200];
+   std::string zozo;
 
    gdcm::Header* e1, *e2;
    gdcm::File  * f1, *f2;
@@ -36,7 +36,7 @@ int main(int argc, char* argv[])
     return 1;
     }
 
-   toto = argv[1];
+   std::string toto = argv[1];
 
 // --------------------- we read the input image
 
@@ -55,7 +55,7 @@ int main(int argc, char* argv[])
 
 // --------------------- we write it as an Explicit VR DICOM file
 
-      sprintf(zozo, "temp.XDCM" );
+      zozo = "temp.XDCM";
       std::cout << "WriteDCM Explicit VR" << std::endl;
       f1->WriteDcmExplVR(zozo);
 
index 4ffd464bf6af83313f0ce96a2457076a350e25a9..fbaf7f3530c0abcf308a549dcc23a49ca3d23e6b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: makeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:26:18 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include <iostream>
-#include "gdcm.h"
 #include "gdcmDocEntry.h"
 #include "gdcmDicomDir.h"
 #include "gdcmDicomDirPatient.h"
 #include "gdcmDirList.h"
 
+#include <iostream>
+
 // ---
 void StartMethod(void *toto) {
   (void)toto;
index d53cbc71e940dd1b6961f58993d87ce8e359ea1d..11d189882c3604ebeb102b90dd789e54177a2d4b 100644 (file)
@@ -29,6 +29,7 @@ IF (GDCM_DATA_ROOT)
     BuildUpDicomDir.cxx              # writes a file named "NewDICOMDIR"
     makeDicomDir.cxx                 # writes a file named "NewDICOMDIR"
     TestCopyDicom.cxx
+    #    TestRescaleDicom.cxx
   )
   # add test that require VTK:
   IF(GDCM_VTK)
index e341b6451745594fb3638ab8c0fb2fe760b70a92..48e2f00bb93eddf5933fcf569803fb0f264c7e32 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllReadCompareDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/30 14:17:52 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,7 +17,7 @@
 =========================================================================*/
 #include "gdcmHeader.h"
 #include "gdcmFile.h"
-#include <stdio.h>
+#include <iostream>
 
 //Generated file:
 #include "gdcmDataImages.h"
index f0c7e3894a56ad393b79047abd9136fa89ef1be1..848fa862ab6fe98a6ff941a8b46ca2fb80e1a469 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestBug.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:28:20 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,7 +19,7 @@
 // We have to be carefull when the code both use cout + printf VC++ gets
 // confused, thus make sure we use only one kind of iostream
 
-#include "gdcm.h"
+#include "gdcmHeader.h"
 
 int TestBug(int argc, char* argv[])
 {  
index 3fb0ab9a448bfdfa3d141e71462b652acca9d73e..72d55563bcd7f5bb680aafed39371adfaf17bde7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestChangeHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:03 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.28 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,7 +17,6 @@
 =========================================================================*/
 #include "gdcmHeader.h"
 #include "gdcmFile.h"
-#include <string>
 
 // Writting of a DICOM file, using a correct gdcmHeader.
 // and pixels of an other image
index f9682db6c9f5e616a8d9f036227a9afb6c63ca61..38cc73e0198857516abfc82df2d0bf99c8002073 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/02 15:14:16 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,7 +17,6 @@
 =========================================================================*/
 #include "gdcmHeader.h"
 #include "gdcmFile.h"
-#include "gdcmDocument.h"
 #include "gdcmValEntry.h"
 #include "gdcmBinEntry.h"
 
index 16113463e84c780d1e0e229f44984f5e5a7d8cd9..a855b871da90c0b5cc27e1a494f3e795e2c491a7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:28:20 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.22 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcm.h"
 #include "gdcmDocEntry.h"
 #include "gdcmDicomDir.h"
+#include "gdcmDicomDirPatient.h"
+#include "gdcmDicomDirStudy.h"
+#include "gdcmDicomDirSerie.h"
+#include "gdcmDicomDirImage.h"
+#include "gdcmTS.h"
 
 #include <iostream>
 #include <fstream>
index e74cf0e9dc5834aaba04fa52ef6840ca9fb819be..9e0261dc431ec87b42de717d1b074e8895de240d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 04:28:20 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  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
@@ -18,7 +18,8 @@
 // This test should test everything in Util, since I didn't know any other 
 // way to test this class.
 
-#include "gdcm.h"
+#include "gdcmUtil.h"
+#include <iostream>
 
 int TestUtil(int , char * [])
 {
index 3f1c865b169116e36b8254ec38287cade7114348..c659b11d2fe6f2d42c4a4331afe43767e798a8ad 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 15:46:10 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,7 +20,6 @@
 #define GDCMBINENTRY_H
 
 #include "gdcmValEntry.h"
-
 #include <iostream>
 
 namespace gdcm 
index 83939678566cd0fec2582c939718a46140188b2c..6e719784368cea44e50db361ead48d3e582aef66 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDebug.h,v $
   Language:  C++
-  Date:      $Date: 2004/10/12 04:35:44 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,9 +20,9 @@
 #define GDCMDEBUG_H
 
 #include "gdcmCommon.h"
+
 namespace gdcm 
 {
-
 //-----------------------------------------------------------------------------
 
 /**
index 8394a498c1ec4d84b623e87d9c6483938efafc65..58e58b631a8692475feabaffbb23a362f5059a6d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.84 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.85 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,9 @@
 #include "gdcmDicomDirStudy.h"
 #include "gdcmDicomDirSerie.h"
 #include "gdcmDicomDirImage.h"
+#include "gdcmDicomDirPatient.h"
+#include "gdcmDicomDirMeta.h"
+#include "gdcmDicomDirElement.h"
 #include "gdcmDirList.h"
 #include "gdcmUtil.h"
 #include "gdcmDebug.h"
index 1666617019f5af659a1a17b982cf24bbc1a0ddc9..5aae1c919d2761d4da56707dab2a711650445c00 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.40 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.41 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMDICOMDIR_H
 #define GDCMDICOMDIR_H
 
-#include "gdcmCommon.h"
 #include "gdcmDocument.h"
-#include "gdcmDicomDirPatient.h"
-#include "gdcmDicomDirMeta.h"
-#include "gdcmDicomDirElement.h"
 
 #include <list>
 #include <vector>
 namespace gdcm 
 {
 //-----------------------------------------------------------------------------
+class DicomDirPatient;
+class DicomDirMeta;
+class DicomDirElement;
+class DicomDirStudy;
+class DicomDirSerie;
+class DicomDirImage;
+class SQItem;
+
 typedef std::list<DicomDirPatient*>   ListDicomDirPatient;
 typedef std::vector<Document*>  VectDocument;
 
index be4ecbfd679e931f04f5203c531beb2028d48e33..cadbc21646d6fd60c81a23735f7f996961cd15dc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,6 +18,7 @@
 
 #include "gdcmDicomDirMeta.h"
 #include "gdcmDocument.h"
+#include "gdcmDocEntry.h"
 
 namespace gdcm 
 {
index 9c50ee1607ef0d73bfc1aabe2f5f6e2a3c34f426..5dd4ee826f95c9563cdf0b89bb8a9a97f2d242b2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,7 @@
 #define GDCMDICOMDIRMETA_H
 
 #include "gdcmDicomDirObject.h"
+
 namespace gdcm 
 {
 
index 882b8a2f3c7efb176b9e869575f61d26903a4cc7..245f99019b95b1102954a405456725f31ef234d5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirObject.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,8 @@
 #include "gdcmGlobal.h"
 #include "gdcmDebug.h"
 #include "gdcmValEntry.h"
+#include "gdcmDictSet.h"
+
 namespace gdcm 
 {
 
index 8503569b765c2edb27b4ee800f9f3d0472cce1d2..efa3742b6bea0dd48cd8447374df6a7697d3a8ac 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirObject.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  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
@@ -29,7 +29,6 @@ namespace gdcm
 {
 //-----------------------------------------------------------------------------
 class DicomDirObject;
-typedef std::list<DicomDirObject *> ListContent;
 
 //-----------------------------------------------------------------------------
 /**
@@ -38,6 +37,7 @@ typedef std::list<DicomDirObject *> ListContent;
  */
 class GDCM_EXPORT DicomDirObject : public SQItem
 {
+typedef std::list<DicomDirObject *> ListContent;
 public:
 
    DicomDirObject(int depth = 1);
index 93a459cad3dab6104ed0ef41a01ff2753b3759b8..fb5fa9ac3112170af322cc3c359145568f56317e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,6 +19,9 @@
 #include "gdcmDicomDirPatient.h"
 #include "gdcmDicomDirElement.h"
 #include "gdcmGlobal.h"
+#include "gdcmDicomDirStudy.h"
+#include "gdcmSQItem.h"
+
 namespace gdcm 
 {
 
index 2052d02576b89500866def097e0b58c6f1b40dda..5c4505fdb65609aa491c7aab9cba822502136715 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMPATIENT_H
 
 #include "gdcmDicomDirObject.h"
-#include "gdcmDicomDirStudy.h"
-#include "gdcmSQItem.h"
 
 namespace gdcm 
 {
-
+class DicomDirStudy;
 //-----------------------------------------------------------------------------
 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
 
index dcdd74656a78e0f350188884afd29170573631da..541cee2f39158964105f9772bd3415b8cd95c211 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,6 +18,7 @@
 
 #include "gdcmDicomDirSerie.h"
 #include "gdcmDicomDirElement.h"
+#include "gdcmDicomDirImage.h"
 #include "gdcmGlobal.h"
 
 namespace gdcm 
index 4f4371a30b6d7c203aa52549278bac0e21290f23..c9d14d6ab0a2a6539f05793fcb3d61ad8ed89077 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMDICOMDIRSERIE_H
 
 #include "gdcmDicomDirObject.h"
-#include "gdcmDicomDirImage.h"
 
 namespace gdcm 
 {
+class DicomDirImage;
 //-----------------------------------------------------------------------------
 typedef std::list<DicomDirImage *> ListDicomDirImage;
 
index a602cdd2503708084c2c7a0273c06070fa74dd60..c46781322f556117bc0c6150cb5b5c5a64352f4c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.20 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,6 +19,7 @@
 #include "gdcmDicomDirStudy.h"
 #include "gdcmDicomDirElement.h"
 #include "gdcmGlobal.h"
+#include "gdcmDicomDirSerie.h"
 
 namespace gdcm 
 {
index 7ddd366631a2ea0adc2ce185bf2e875bee8458e6..e6a1bbbb14853ac5862ab10a2080033dee4f9bf8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMDICOMDIRSTUDY_H
 
 #include "gdcmDicomDirObject.h"
-#include "gdcmDicomDirSerie.h"
+
 namespace gdcm 
 {
-
+class DicomDirSerie;
 //-----------------------------------------------------------------------------
 typedef std::list<DicomDirSerie *> ListDicomDirSerie;
 
index dd4910dc3451a8ea33fb6a52913d26c50e12717b..6764bbd40da206df1ec9259f1b147bff5d215f4b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 02:54:35 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  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
@@ -19,7 +19,6 @@
 #ifndef GDCMDICT_H
 #define GDCMDICT_H
 
-#include "gdcmCommon.h"
 #include "gdcmDictEntry.h"
 
 #include <iostream>
@@ -30,6 +29,7 @@ namespace gdcm
 {
 
 //-----------------------------------------------------------------------------
+typedef std::string DictKey;
 typedef std::map<TagKey, DictEntry>  TagKeyHT;
 typedef std::map<TagName, DictEntry> TagNameHT;
 typedef std::list<std::string>       EntryNamesList;
index 895459d094903057916db82a368bb447deeaa0b3..2d7789ab4c0eeb2ced2007386d12c32473a197a7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictSet.h,v $
   Language:  C++
-  Date:      $Date: 2004/10/18 02:17:07 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMDICTSET_H
 
 #include "gdcmDict.h"
+
 #include <map>
 #include <list>
 
 namespace gdcm 
 {
-typedef std::string DictKey;
 typedef std::map<DictKey, Dict*> DictSetHT;
 
 //-----------------------------------------------------------------------------
index b6d8f0ad51c669fb6a1af01df1d094e43b9d3fba..fcd2db28b0edb4480db26844cacab23a6f81effd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 15:46:11 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2004/12/03 20:16:57 $
+  Version:   $Revision: 1.34 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,6 +18,7 @@
 
 #include "gdcmDocEntry.h"
 #include "gdcmTS.h"
+#include "gdcmVR.h"
 #include "gdcmGlobal.h"
 #include "gdcmUtil.h"
 
index 7373c7287ece0122cf4c673995af4ce2aa3dbe36..62757c34d1c88d70dd88739fcbe5f91ffa934650 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/30 16:24:31 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.32 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMDOCENTRY_H
 
 #include "gdcmDictEntry.h"
+
 #include <iostream>
 #include <fstream>
 
+namespace gdcm 
+{
 class Header;
 class ValEntry;
 class BinEntry;
 class SeqEntry;
 
-namespace gdcm 
-{
 //-----------------------------------------------------------------------------
 /**
  * \brief   The dicom header of a Dicom file contains a set of such entries
index 9a5a498cee8d36921f7ae74244b29617850e8922..fae78fcd3fd05c54111af308bcbbaef21ff33bf5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntryArchive.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/24 10:23:47 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  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
@@ -18,6 +18,7 @@
 
 #include "gdcmDocEntryArchive.h"
 #include "gdcmDebug.h"
+#include "gdcmDocEntry.h"
 
 #include <string>
 
index ae6550ab857201edf9a7366e3bcab17b017ff63e..1f068b4cdce1c4900092549c087065a53880b724 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntryArchive.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/24 10:23:47 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  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
@@ -19,7 +19,6 @@
 #ifndef GDCMDOCENTRYARCHIVE_H
 #define GDCMDOCENTRYARCHIVE_H
 
-#include "gdcmCommon.h"
 #include "gdcmHeader.h"
 
 namespace gdcm 
index 0a0760495fed24ee30f495d5387e492abd51b355..5835a8f34ae7c03c29ff9372237e426980cc7d61 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/16 10:25:53 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,6 +19,7 @@
 
 #include "gdcmDebug.h"
 #include "gdcmCommon.h"
+#include "gdcmDictSet.h"
 #include "gdcmGlobal.h"
 #include "gdcmException.h"
 #include "gdcmDocEntry.h"
index 2fd8fdfeee442e1da526a2b3b78fde8086967e67..0570d4547990c68686f43c755993866e8a3b8250 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/02 15:14:17 $
-  Version:   $Revision: 1.145 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.146 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include "gdcmGlobal.h"
 #include "gdcmUtil.h"
 #include "gdcmDebug.h"
+#include "gdcmTS.h"
+#include "gdcmException.h"
+#include "gdcmDictSet.h"
+#include "gdcmRLEFramesInfo.h"
+#include "gdcmJPEGFragmentsInfo.h"
+#include "gdcmDocEntrySet.h"
+#include "gdcmSQItem.h"
 
 #include <vector>
 #include <iomanip>
index 7e4e8d9901c6e5acb2151e3aa90c2737311df69c..2df5f0bedcb205dcfdee6acdc49820168b3e529e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:04 $
-  Version:   $Revision: 1.66 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.67 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMDOCUMENT_H
 #define GDCMDOCUMENT_H
 
-#include "gdcmCommon.h"
 #include "gdcmVR.h"
-#include "gdcmTS.h"
-#include "gdcmException.h"
-#include "gdcmDictSet.h"
-#include "gdcmDocEntry.h"
-#include "gdcmRLEFramesInfo.h"
-#include "gdcmJPEGFragmentsInfo.h"
-#include "gdcmDocEntrySet.h"
+#include "gdcmDict.h"
 #include "gdcmElementSet.h"
 
-class ValEntry;
-class BinEntry;
-class SeqEntry;
-
 #include <map>
 #include <list>
 #include <fstream>
 
 namespace gdcm 
 {
+class ValEntry;
+class BinEntry;
+class SeqEntry;
+class Dict;
+class RLEFramesInfo;
+class JPEGFragmentsInfo;
 
 enum TransferSyntaxType {
   ImplicitVRLittleEndian = 0,
index 2d1529cb5135f908b134e59006df57bcee55fb93..819435e151363674bd75abbf1ff7f5a4826d01ef 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/30 16:24:31 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.26 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMELEMENTSET_H
 #define GDCMELEMENTSET_H
 
-#include "gdcmCommon.h"
 #include "gdcmDocEntrySet.h"
+
 #include <map>
 #include <iostream>
 #include <fstream>
 
+namespace gdcm 
+{
 class ValEntry;
 class BinEntry;
 class SeqEntry;
 
-namespace gdcm 
-{
 typedef std::map<TagKey, DocEntry *> TagDocEntryHT;
 
 //-----------------------------------------------------------------------------
index b1875b5880a8840c0b8bbcd2660aabff9916f6fc..ff0fa67d7758c686acab544e55fa958be07bac45 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmException.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/04 18:14:34 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCM_EXCEPTION_H
 
 #include "gdcmCommon.h"
+
 #include <string>
 #include <iostream>
 #include <exception>
+
 namespace gdcm 
 {
 
index 45aaa81e3d3e3d4ca439c7244654e43417acff68..c7f72f23ee4e4ba4f4f422874feabce4a27ab43f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 14:22:40 $
-  Version:   $Revision: 1.170 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.171 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include "gdcmDebug.h"
 #include "gdcmUtil.h"
 #include "gdcmBinEntry.h"
+#include "gdcmHeader.h"
+#include "gdcmPixelReadConvert.h"
+#include "gdcmPixelWriteConvert.h"
+#include "gdcmDocEntryArchive.h"
+
 #include <fstream>
 
 namespace gdcm 
@@ -375,6 +380,13 @@ bool File::Write(std::string const& fileName)
    return WriteBase(fileName);
 }
 
+bool File::SetEntryByNumber(std::string const& content,
+                            uint16_t group, uint16_t element)
+{ 
+   HeaderInternal->SetEntryByNumber(content,group,element);
+   return true;
+}
+
 /**
  * \brief Access to the underlying \ref PixelReadConverter RGBA LUT
  */
index f87a1a9e548a05420957fc491514d984ed0c3962..485bcf71f5d01d2d6297bc6b9e1cc7b16ab474d5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 14:22:40 $
-  Version:   $Revision: 1.82 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.83 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #define GDCMFILE_H
 
 #include "gdcmCommon.h"
-#include "gdcmHeader.h"
-#include "gdcmPixelReadConvert.h"
-#include "gdcmPixelWriteConvert.h"
-#include "gdcmDocEntryArchive.h"
 
 namespace gdcm 
 {
+class Header;
+class ValEntry;
+class BinEntry;
+class PixelReadConvert;
+class PixelWriteConvert;
+class DocEntryArchive;
 //-----------------------------------------------------------------------------
 /*
  * In addition to Dicom header exploration, this class is designed
@@ -69,12 +71,8 @@ public:
    bool WriteAcr      (std::string const& fileName);
    bool Write(std::string const& fileName);
 
-   virtual bool SetEntryByNumber(std::string const& content,
-                                 uint16_t group, uint16_t element)
-   { 
-      HeaderInternal->SetEntryByNumber(content,group,element);
-      return true;
-   }
+   bool SetEntryByNumber(std::string const& content,
+                                uint16_t group, uint16_t element);
    uint8_t* GetLutRGBA();
 
    // Write mode
index 70dc9355aecb7caecbb51dc95ff38406d0ffcb94..8df156b59d369ce511207d72463ab45a0bd4435a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/28 18:13:36 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 =========================================================================*/
 
 #include "gdcmGlobal.h"
+
 #include "gdcmDebug.h"
+#include "gdcmVR.h"
+#include "gdcmTS.h"
+#include "gdcmDictSet.h"
+#include "gdcmDicomDirElement.h"
 
 namespace gdcm 
 {
index 7043d6d60aa71a5aa091c9f52e21cbb41f0f75a6..c32be0060ea1823dc34926f7cdcb6734dfc9751e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.h,v $
   Language:  C++
-  Date:      $Date: 2004/10/12 04:35:46 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMGLOBAL_H
 #define GDCMGLOBAL_H
 
-#include "gdcmVR.h"
-#include "gdcmTS.h"
-#include "gdcmDictSet.h"
-#include "gdcmDicomDirElement.h"
+#include "gdcmCommon.h"
 
 namespace gdcm 
 {
-
+class DictSet;
+class VR;
+class TS;
+class DicomDirElement;
 //-----------------------------------------------------------------------------
 /**
  * \brief   This class contains all globals elements that might be
index de5acd13d83e36c508717e095eddd014daca2195..4e67476300820cf79b243e68b62452934da050ff 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmHeader.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:04 $
-  Version:   $Revision: 1.95 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.96 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,7 +19,6 @@
 #ifndef GDCMHEADER_H
 #define GDCMHEADER_H
 
-#include "gdcmCommon.h"
 #include "gdcmDocument.h"
 
 namespace gdcm 
index 203cd2e663cbb8e014cbd319b4715f09bc1a5762..a446d9c77f098befd64f4d4c5ec586658183f63f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:54 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,7 @@
 #define GDCMJPEGFRAGMENT_H
 
 #include "gdcmCommon.h"
+
 #include <iostream>
 
 namespace gdcm 
@@ -39,14 +40,17 @@ namespace gdcm
  */
 class GDCM_EXPORT JPEGFragment
 {
-friend class Document;
-friend class File;
-friend class PixelReadConvert;
-   long    Offset;
-   long    Length;
 public:
    JPEGFragment();
    void Print( std::string indent = "", std::ostream &os = std::cout );
+
+private:
+   long    Offset;
+   long    Length;
+
+friend class Document;
+friend class File;
+friend class PixelReadConvert;
 };
 } // end namespace gdcm
 
index 6b1115ca87fee9b0f452fadad51421eb2d024f64..4f445b7d1f61f406ae365678e0f5cdc387d71718 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragmentsInfo.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:54 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,7 @@
 #define GDCMJPEGFRAGMENTSINFO_H
 
 #include "gdcmJPEGFragment.h"
+
 #include <list>
 #include <iostream>
 
index f5ea6569936d3e8c491477669afa781793224bb0..780ad09fe0add87c439fed648f4dc20d2ad45d90 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg2000.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/22 03:05:42 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.14 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,6 +18,8 @@
 //-----------------------------------------------------------------------------
 #include "gdcmFile.h"
 
+#include <iostream>
+
 namespace gdcm 
 {
 
index d4c57abfb1f7cd21b0f55cd2eec75b323946a238..36e790fa1ae4a48c1d2ec5f00258ec03bbaec5db 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:55 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 // grep PixelReadConvert everywhere and clean up !
 
 #include "gdcmDebug.h"
+#include "gdcmHeader.h"
 #include "gdcmPixelReadConvert.h"
+#include "gdcmDocEntry.h"
+#include "gdcmRLEFramesInfo.h"
+#include "gdcmJPEGFragmentsInfo.h"
+
 #include <fstream>
-#include <stdio.h>
 
 namespace gdcm
 {
index 2be2bc8e994aa25c1337258797eb48b96c0d23dd..743d1ef53e8baa640369599d1d92883f406b21e2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 11:55:38 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  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
 #define GDCMPIXELREADCONVERT_H
 
 #include "gdcmCommon.h"
-#include "gdcmRLEFramesInfo.h"
-#include "gdcmJPEGFragmentsInfo.h"
 #include "gdcmException.h"
-#include "gdcmHeader.h"
 
 namespace gdcm
 {
+class Header;
+class RLEFramesInfo;
+class JPEGFragmentsInfo;
 /*
  * \brief Utility container for gathering the various forms the pixel data
  *        migth take during the user demanded processes.
index 735ffffe749c6eab5c55c7088075240b107f7c35..21b2dd30c1ec01fc09d3fd65d8124cb6cc49bd98 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFrame.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:54 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,7 @@
 #define GDCMRLEFRAME_H
 
 #include "gdcmCommon.h"
+
 #include <iostream>
 
 namespace gdcm 
index f712f959a140b76f777c3243b6d8c762fef8a1a2..d8cb65effef8f04d332f463aa9074fdd2f6b41d1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 10:21:54 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  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
@@ -21,7 +21,9 @@
 #define GDCMRLEFRAMESINFO_H
 
 #include "gdcmRLEFrame.h"
+
 #include <list>
+
 namespace gdcm 
 {
 
index 62e506771508224ce7ddb841603af16380b2a3f4..a9c1ed5efcc8fb523f3ab91c2a16ffeb9b8ac918 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.39 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.40 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include "gdcmValEntry.h"
 #include "gdcmBinEntry.h"
 #include "gdcmGlobal.h"
+#include "gdcmDictSet.h"
 #include "gdcmUtil.h"
 #include "gdcmDebug.h"
+
 #include <fstream>
 
 namespace gdcm 
index d89632f2a11d7a93e378f061a23c146bcb9309cc..4f22ff2f4177b5e420648b3c09f6f9125d189ae9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 15:46:12 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMSQDOCENTRY_H
 #define GDCMSQDOCENTRY_H
 
-#include "gdcmSQItem.h"
 #include "gdcmDocEntry.h"
+
 #include <list>
+
 namespace gdcm 
 {
-
+class SQItem;
 //-----------------------------------------------------------------------------
 typedef std::list<SQItem *> ListSQItem;
 //-----------------------------------------------------------------------------
index 37da36b1bf5663664395f7e3d093f17f887494a1..ff773d8b3bab92d1e88f816bdd69f9393b7a692b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:04 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,7 +18,7 @@
 
 #include "gdcmSerieHeader.h"
 #include "gdcmDirList.h"
-#include "gdcmDebug.h"
+#include "gdcmHeader.h"
 
 #include <math.h>
 #include <algorithm>
index 6b062296e03a618eab948f545fac3593f652c75f..fe95a31bb8876393f53caf8de9ddd91af0f235b1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHeader.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/26 10:55:04 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #ifndef GDCMSERIEHEADER_H
 #define GDCMSERIEHEADER_H
 
-#include "gdcmHeader.h"
+#include "gdcmCommon.h"
+#include <list>
 
 namespace gdcm 
 {
-
+class Header;
 //-----------------------------------------------------------------------------
 /*
  * \defgroup SerieHeader
index 1d9b84b2bb20ceb016a9f2321a9839f89e629952..76ecc90a1d19e77c9199bf2614a28b8a1a85197a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTS.h,v $
   Language:  C++
-  Date:      $Date: 2004/10/27 01:32:15 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,7 @@
 #define GDCMTS_H
 
 #include "gdcmCommon.h"
+
 #include <map>
 #include <string>
 #include <iostream>
index b3fc2081d26ef4272918f818da2cd300dc42f5a4..b014e74b69df32189a14b7ef091541934b6d7c50 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmValEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 15:46:12 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.32 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,6 +20,7 @@
 #define GDCMVALENTRY_H
 
 #include "gdcmDocEntry.h"
+
 #include <iostream>
 
 namespace gdcm 
index ae0c80999afeb23db64cc783415d4e224c74b52e..580379cb96e92140cb0a862e1603948a3d90e0d7 100644 (file)
@@ -58,7 +58,7 @@
 #include <vtkPointData.h>
 #include <vtkLookupTable.h>
 
-vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.59 $");
+vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.60 $");
 vtkStandardNewMacro(vtkGdcmReader);
 
 //-----------------------------------------------------------------------------
@@ -666,6 +666,7 @@ size_t vtkGdcmReader::LoadImageInMemory(
    {
       for (int line = 0; line < numLines; line++)
       {
+         cerr << line << endl;
          // Copy one line at proper destination:
          memcpy((void*)destination, (void*)source, lineSize);
          source      += lineSize;