]> Creatis software - gdcm.git/commitdiff
GDCM_NAME_SPACE
authordavila <davila>
Thu, 21 Jun 2007 14:59:05 +0000 (14:59 +0000)
committerdavila <davila>
Thu, 21 Jun 2007 14:59:05 +0000 (14:59 +0000)
14 files changed:
Testing/TestAllReadCompareDicom.cxx
Testing/TestAllVM.cxx
Testing/TestBuildUpDicomDir.cxx
Testing/TestDicomDir.cxx
Testing/TestDirList.cxx
Testing/TestFileAccessors.cxx
Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx
Testing/TestMakeDicomDir.cxx
Testing/TestMakeIcon.cxx
Testing/TestPrintAllDocument.cxx
Testing/TestReadWriteReadCompare.cxx
Testing/TestSerieHelper.cxx
Testing/TestValidate.cxx
Testing/VTKTestWriteSeq.cxx

index 56aecc31634df67bce56481e673b2aeb846c6f9e..6819123c71bbbfae56ca4636e7a30771032949b8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllReadCompareDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/06/04 08:51:24 $
-  Version:   $Revision: 1.59 $
+  Date:      $Date: 2007/06/21 14:59:05 $
+  Version:   $Revision: 1.60 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -291,11 +291,11 @@ bool TestFile::ReadFileData(std::ifstream *fp)
    // Track BigEndian troubles
    std::cout << " ScalarSize : " << GetScalarSize() 
           << " IsCurrentProcessorBigEndian:" 
-          << gdcm::Util::IsCurrentProcessorBigEndian()
+          << GDCM_NAME_SPACE::Util::IsCurrentProcessorBigEndian()
           << std::endl;
         
    //if (GetScalarSize() == 1 || GetSwapCode() == 1234)  
-   if (GetScalarSize() == 1 || !gdcm::Util::IsCurrentProcessorBigEndian() )    
+   if (GetScalarSize() == 1 || !GDCM_NAME_SPACE::Util::IsCurrentProcessorBigEndian() )    
    {
       return true;
    }
@@ -446,8 +446,8 @@ int InternalTest(std::string const &filename,
       std::cout << "1...";
 
        // new style 
-      gdcm::File *f = gdcm::File::New();
-      f->SetLoadMode ( gdcm::LD_ALL ); // Load everything
+      GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
+      f->SetLoadMode ( GDCM_NAME_SPACE::LD_ALL ); // Load everything
       f->SetFileName( filename );
       f->Load();
  
@@ -459,7 +459,7 @@ int InternalTest(std::string const &filename,
         f->Delete();
         return 1;
       }
-      gdcm::FileHelper *tested = gdcm::FileHelper::New( f );
+      GDCM_NAME_SPACE::FileHelper *tested = GDCM_NAME_SPACE::FileHelper::New( f );
      
       ////// Step 2:
       ////// Check for existence of reference baseline dicom file:
@@ -573,7 +573,7 @@ int InternalTest(std::string const &filename,
                    << ") differ (as expanded in memory)."
                    << std::endl
                    << "        compression : " 
-                   << gdcm::Global::GetTS()->GetValue(ts) << std::endl;
+                   << GDCM_NAME_SPACE::Global::GetTS()->GetValue(ts) << std::endl;
 
          std::cout << "        list of the first " << MAX_NUMBER_OF_DIFFERENCE
                    << " pixels differing (pos : test - ref) :" 
@@ -612,10 +612,10 @@ int InternalTest(std::string const &filename,
 int TestAllReadCompareDicom(int argc, char *argv[]) 
 {
 // Temporarily added, to track BigEndian troubles
-gdcm::Debug::WarningOn();
+GDCM_NAME_SPACE::Debug::WarningOn();
 
    if (argc == 4)
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    if ( argc >= 3 )
    {
@@ -668,7 +668,7 @@ gdcm::Debug::WarningOn();
       std::string baseLineDir = GDCM_DATA_ROOT;
       baseLineDir += "/BaselineDicom";
 
-      if( !gdcm::DirList::IsDirectory(baseLineDir) )
+      if( !GDCM_NAME_SPACE::DirList::IsDirectory(baseLineDir) )
       {
          std::cerr << "   The reference baseline directory " << std::endl
                    << "      "
@@ -681,7 +681,7 @@ gdcm::Debug::WarningOn();
 //if (gdcmDataImages[i] == "D_CLUNIE_CT2_RLE.dcm")
 //   gdcm::Debug::DebugOn(); // track pb on BigEndian Proc
 //else 
-   gdcm::Debug::DebugOff();
+   GDCM_NAME_SPACE::Debug::DebugOff();
    
       ////// Step 1 (see above description):
       std::string filename = GDCM_DATA_ROOT;
index fadab1756cdfbf5d16f97f4a90648d0cc385e376..0abb80701e060e599e57c2475cba0f17a11c832f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllVM.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/07/05 13:08:32 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
 
 int DoTheVMTest(std::string const &filename)
 {
-   gdcm::File *file = gdcm::File::New();
+   GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New();
    // - Do not test unknow VM in shadow groups (if element 0x0000 is present)
    // - Skip Sequences (if they are 'True Length'); loading will be quicker
    //                  (anyway, Sequences are skipped at processing time ...)
-   file->SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ );
+   file->SetLoadMode( GDCM_NAME_SPACE::LD_NOSHADOW | GDCM_NAME_SPACE::LD_NOSEQ );
 
    file->SetFileName( filename );
    if( !file->Load() ) //would be really bad...
       return 1;
 
-   gdcm::DocEntry *d = file->GetFirstEntry();
+   GDCM_NAME_SPACE::DocEntry *d = file->GetFirstEntry();
    std::cerr << "Testing file : " << filename << std::endl;
-   gdcm::DataEntry *de;
+   GDCM_NAME_SPACE::DataEntry *de;
    while(d)
    {
-      if ( (de = dynamic_cast<gdcm::DataEntry *>(d)) )
+      if ( (de = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d)) )
       {
          if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now,
                                       // Private Dictionnary are not dealt with
@@ -87,9 +87,9 @@ int TestAllVM(int argc, char *argv[])
       filename += gdcmDataImages[i];
       
       if (!strcmp(gdcmDataImages[i],"00191113.dcm")) // Track bug on Darwin
-          gdcm::Debug::DebugOn();
+          GDCM_NAME_SPACE::Debug::DebugOn();
       else
-         gdcm::Debug::DebugOff();
+         GDCM_NAME_SPACE::Debug::DebugOff();
 
       if( DoTheVMTest( filename ) )
         return 1;
index 5eafdbe838dce3939f8b95f80735c31f34dd44b3..de16a5f0a789563414d62bd434887f14c2670afb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestBuildUpDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:06:02 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,12 +43,12 @@ int TestBuildUpDicomDir(int argc, char *argv[])
  // gdcm::Debug::DebugOn();
  
    bool errorFound = false; 
-   gdcm::DicomDir *dcmdir;
+   GDCM_NAME_SPACE::DicomDir *dcmdir;
    std::string dirName;  
 
-   dcmdir = gdcm::DicomDir::New();
+   dcmdir = GDCM_NAME_SPACE::DicomDir::New();
 
-   gdcm::DicomDirPatient *p1;
+   GDCM_NAME_SPACE::DicomDirPatient *p1;
    
    // --- Forget these 4 lines :
    // just to improve test coverage.
@@ -64,7 +64,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    p1->SetEntryString("patientONE",0x0010, 0x0010);
    // fill here other patient characteristics
 
-   gdcm::DicomDirStudy *s11;
+   GDCM_NAME_SPACE::DicomDirStudy *s11;
    // --- Forget these 4 lines :
    // just to improve test coverage.
    s11=p1->GetFirstStudy();
@@ -80,17 +80,17 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    s11->InsertEntryString("Dr^Mabuse",     0x0008, 0x1060, "PN");
    // fill here other Study characteristics
 
-   gdcm::DicomDirStudy *s12 = p1->NewStudy();    
+   GDCM_NAME_SPACE::DicomDirStudy *s12 = p1->NewStudy();    
    s12->SetEntryString("StudyDescrOne.Two",0x0008, 0x1030);
    s12->InsertEntryString("Dr^Zorglub",    0x0008, 0x1060, "PN");
    // fill here other Study characteristics
 
-   gdcm::DicomDirStudy *s13 = p1->NewStudy();  
+   GDCM_NAME_SPACE::DicomDirStudy *s13 = p1->NewStudy();  
    s13->SetEntryString("StudyDescrOne.Tree",0x0008, 0x1030);
    s13->InsertEntryString("Dr^Follamour",   0x0008, 0x1060, "PN");
    // fill here other Study characteristics
  
-   gdcm::DicomDirSerie *s111;
+   GDCM_NAME_SPACE::DicomDirSerie *s111;
    // --- Forget these 4 lines :
    // just to improve test coverage.
    s111=s11->GetFirstSerie();
@@ -104,7 +104,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    s111->SetEntryString("01-01-111", 0x0008, 0x0021);
    // fill here other Serie characteristics
 
-   gdcm::DicomDirImage *s1111;
+   GDCM_NAME_SPACE::DicomDirImage *s1111;
 
    // --- Forget these 4 lines :
    // just to improve test coverage.
@@ -117,44 +117,44 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    // Let's create and add a Image for this Serie
    s1111 = s111->NewImage();
    s1111->SetEntryString("imageFileName1111",0x0004,0x1500);
-   gdcm::DicomDirImage *s1112 = s111->NewImage();
+   GDCM_NAME_SPACE::DicomDirImage *s1112 = s111->NewImage();
    s1112->SetEntryString("imageFileName1112",0x0004,0x1500);
 
    // Create patient TWO
    // ------------------
-   gdcm::DicomDirPatient *p2 = dcmdir->NewPatient();
+   GDCM_NAME_SPACE::DicomDirPatient *p2 = dcmdir->NewPatient();
    p2->SetEntryString("patientTWO",0x0010, 0x0010); 
    // fill here other patient characteristics
     
-   gdcm::DicomDirStudy *s21 = p2->NewStudy();  
+   GDCM_NAME_SPACE::DicomDirStudy *s21 = p2->NewStudy();  
    s21->SetEntryString("StudyDescrTwo.One",0x0008, 0x1030);        
    // fill here other Study characteristics
 
-   gdcm::DicomDirSerie *s211 = s21->NewSerie();
+   GDCM_NAME_SPACE::DicomDirSerie *s211 = s21->NewSerie();
    s111->SetEntryString("01-01-211", 0x0008, 0x0021);
    // fill here other Serie characteristics
 
-   gdcm::DicomDirImage *s2111 = s211->NewImage();
+   GDCM_NAME_SPACE::DicomDirImage *s2111 = s211->NewImage();
    s2111->SetEntryString("imageFileName2111",0x0004,0x1500);
    // fill here other Image characteristics
 
-   gdcm::DicomDirImage *s2112 = s211->NewImage();
+   GDCM_NAME_SPACE::DicomDirImage *s2112 = s211->NewImage();
    s2112->SetEntryString("imageFileName1122",0x0004,0x1500);
    // fill here other Image characteristics
 
    // Create patient TREE
    // -------------------
-   gdcm::DicomDirPatient *p3 = dcmdir->NewPatient();
+   GDCM_NAME_SPACE::DicomDirPatient *p3 = dcmdir->NewPatient();
    p3->SetEntryString("patientTHREE",0x0010, 0x0010);
    // fill here other Patient characteristics
 
    // Add a new Serie/Image for a Patient's Study created a long time ago
    // -------------------------------------------------------------------
-   gdcm::DicomDirSerie *s131 = s13->NewSerie();
+   GDCM_NAME_SPACE::DicomDirSerie *s131 = s13->NewSerie();
    s111->SetEntryString("01-01-131", 0x0008, 0x0021);
    // fill here other Serie characteristics
 
-   gdcm::DicomDirImage *s1311 = s131->NewImage();
+   GDCM_NAME_SPACE::DicomDirImage *s1311 = s131->NewImage();
    s1311->SetEntryString("imageFileName1311",0x0004,0x1500);
    // fill here other Image characteristics
      
@@ -170,7 +170,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    
  
  // Let's loop on Patients.  
-   gdcm::DicomDirPatient *p;
+   GDCM_NAME_SPACE::DicomDirPatient *p;
    p=dcmdir->GetFirstPatient();
    while (p) {
       std::cout << "one more patient\n";
@@ -201,7 +201,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    dcmdir->Delete();
 
    // Read the newly written DicomDir
-   gdcm::DicomDir *newDicomDir = gdcm::DicomDir::New();
+   GDCM_NAME_SPACE::DicomDir *newDicomDir = GDCM_NAME_SPACE::DicomDir::New();
    newDicomDir->SetFileName("NewDICOMDIR");
    newDicomDir->Load( );
    if( !newDicomDir->IsReadable() )
@@ -267,7 +267,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
       valueStuff = s11->GetEntryString(0x0008, 0x1060);
 std::cout << "----------------length-----------------" << valueStuff.length() <<
 std::endl;     
-      if (!gdcm::Util::DicomStringEqual(valueStuff, "Dr^Mabuse") )
+      if (!GDCM_NAME_SPACE::Util::DicomStringEqual(valueStuff, "Dr^Mabuse") )
       {
          std::cout << "2 : 0x0008,0x1060 [" 
                    << s11->GetEntryString(0x0008,0x1060)
@@ -283,7 +283,7 @@ std::endl;
          errorFound = true;
          break;
       }
-      if ( gdcm::Util::DicomStringEqual(s12->GetEntryString(0x0008,
+      if ( GDCM_NAME_SPACE::Util::DicomStringEqual(s12->GetEntryString(0x0008,
                                            0x1030),"StudyDescrOne.Two " ))
       {
          std::cout << "3 0x0008,0x1030 [" 
@@ -296,7 +296,7 @@ std::endl;
                 << s12->GetEntryString(0x0008,0x1030)
                 << "]" << std::endl;
 
-      if ( gdcm::Util::DicomStringEqual(s12->GetEntryString(0x0008,
+      if ( GDCM_NAME_SPACE::Util::DicomStringEqual(s12->GetEntryString(0x0008,
                                            0x1060),"Dr^Zorglub " ))
       {
          std::cout << "4 0x0008,0x1060 [" 
@@ -325,7 +325,7 @@ std::endl;
                 << "]" << std::endl;
 
       valueStuff = s13->GetEntryString(0x0008, 0x1060);
-      if (!gdcm::Util::DicomStringEqual(valueStuff, "Dr^Follamour") )
+      if (!GDCM_NAME_SPACE::Util::DicomStringEqual(valueStuff, "Dr^Follamour") )
       {
          std::cout << "5 0x0008,0x1060 [" 
                    << valueStuff
@@ -345,7 +345,7 @@ std::endl;
       }
 
       valueStuff = s111->GetEntryString(0x0008, 0x0021);
-      if (!gdcm::Util::DicomStringEqual(valueStuff, "01-01-131") )
+      if (!GDCM_NAME_SPACE::Util::DicomStringEqual(valueStuff, "01-01-131") )
       {
          std::cout << "6 0x0008,0x0021 [" 
                    << valueStuff
index 5690f519dfdd3f6644e5608bde555b476b96a54e..b30e45352eda2cc84ae97dbac9ca37243d0ad69c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:06:02 $
-  Version:   $Revision: 1.45 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  Version:   $Revision: 1.46 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 
 // check *all* the dicom elements (gdcm::DocEntry)
 // of this gdcm::DicomDirObject
-int CompareSQItem(gdcm::SQItem *pa1, gdcm::SQItem *pa2 )
+int CompareSQItem(GDCM_NAME_SPACE::SQItem *pa1, GDCM_NAME_SPACE::SQItem *pa2 )
 {
-   gdcm::DocEntry *e1;
-   gdcm::DocEntry *e2;
+   GDCM_NAME_SPACE::DocEntry *e1;
+   GDCM_NAME_SPACE::DocEntry *e2;
 
    e2 = pa2->GetFirstEntry();
    while (!e2)
@@ -50,23 +50,23 @@ int CompareSQItem(gdcm::SQItem *pa1, gdcm::SQItem *pa2 )
        return 1; 
       }
       // skip SeqEntries (I don't want to deal with 'recursion pbs' here)
-      if ( !dynamic_cast<gdcm::DataEntry *>(e1) ||
-           !dynamic_cast<gdcm::DataEntry *>(e2) )
+      if ( !dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(e1) ||
+           !dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(e2) )
          continue;
 
       // a value is read as GDCM_UNFOUND 
-      if ( ((gdcm::DataEntry *)e1)->GetString() == gdcm::GDCM_UNFOUND )
+      if ( ((GDCM_NAME_SPACE::DataEntry *)e1)->GetString() == GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
          std::cout << "for gdcm source DicomDir : element (" << std::hex 
                    << e1->GetGroup() << "," <<e1->GetElement() 
-                   << ") has values [" << gdcm::GDCM_UNFOUND << "]"
+                   << ") has values [" << GDCM_NAME_SPACE::GDCM_UNFOUND << "]"
                    << std::endl;
          return 1;
       }
 
       // values differ in source file and destination file
-      if ( ((gdcm::DataEntry *)e1)->GetString() != 
-           ((gdcm::DataEntry *)e2)->GetString() )
+      if ( ((GDCM_NAME_SPACE::DataEntry *)e1)->GetString() != 
+           ((GDCM_NAME_SPACE::DataEntry *)e2)->GetString() )
       {
  
  /// \todo : check the value *written on disc*, not the value converted as a std::string
@@ -76,8 +76,8 @@ int CompareSQItem(gdcm::SQItem *pa1, gdcm::SQItem *pa2 )
          std::cout << "for gdcm DicomDir element (" << std::hex 
                    << e2->GetGroup() << "," <<e2->GetElement() 
                    << ") values differ [" 
-                   << ((gdcm::DataEntry *)e1)->GetString() << "] != [" 
-                   << ((gdcm::DataEntry *)e2)->GetString() << "]"
+                   << ((GDCM_NAME_SPACE::DataEntry *)e1)->GetString() << "] != [" 
+                   << ((GDCM_NAME_SPACE::DataEntry *)e2)->GetString() << "]"
                    << std::endl;
           return 1;
       }
@@ -87,14 +87,14 @@ int CompareSQItem(gdcm::SQItem *pa1, gdcm::SQItem *pa2 )
  
 int TestDicomDir(int argc, char *argv[])
 {  
-   gdcm::DicomDir *dicomdir;
+   GDCM_NAME_SPACE::DicomDir *dicomdir;
    
-   gdcm::DicomDirPatient *pa1;
-   gdcm::DicomDirStudy   *st1;
-   gdcm::DicomDirSerie   *se1;
-   gdcm::DicomDirImage   *im1;
+   GDCM_NAME_SPACE::DicomDirPatient *pa1;
+   GDCM_NAME_SPACE::DicomDirStudy   *st1;
+   GDCM_NAME_SPACE::DicomDirSerie   *se1;
+   GDCM_NAME_SPACE::DicomDirImage   *im1;
 
-   gdcm::TSKey v;
+   GDCM_NAME_SPACE::TSKey v;
     
    std::string file; 
    if (argc > 1) 
@@ -108,7 +108,7 @@ int TestDicomDir(int argc, char *argv[])
    std::cout << "DicomDir we're going to deal with : ["<< file << "]" 
              << std::endl;
 
-   dicomdir = gdcm::DicomDir::New();
+   dicomdir = GDCM_NAME_SPACE::DicomDir::New();
    dicomdir->SetFileName(file);
    dicomdir->Load();
    if (argc > 2) 
@@ -195,7 +195,7 @@ int TestDicomDir(int argc, char *argv[])
    // ------------------------- second stage ---------------------------
  
  
gdcm::Debug::DebugOn();
GDCM_NAME_SPACE::Debug::DebugOn();
  
     
    // Write on disc what we read
@@ -205,7 +205,7 @@ int TestDicomDir(int argc, char *argv[])
              << "NewDICOMDIR written on disc =================================" 
              << std::endl<< std::endl;
   // Read what we wrote  
-   gdcm::DicomDir *d2 = gdcm::DicomDir::New();
+   GDCM_NAME_SPACE::DicomDir *d2 = GDCM_NAME_SPACE::DicomDir::New();
    d2->SetFileName("NewDICOMDIR");
    d2->Load();
    if (!d2->IsReadable())
@@ -219,10 +219,10 @@ int TestDicomDir(int argc, char *argv[])
              << "NewDICOMDIR successfully read from disc =================================" 
              << std::endl<< std::endl;
   
-   gdcm::DicomDirPatient *pa2;
-   gdcm::DicomDirStudy   *st2;
-   gdcm::DicomDirSerie   *se2;
-   gdcm::DicomDirImage   *im2;
+   GDCM_NAME_SPACE::DicomDirPatient *pa2;
+   GDCM_NAME_SPACE::DicomDirStudy   *st2;
+   GDCM_NAME_SPACE::DicomDirSerie   *se2;
+   GDCM_NAME_SPACE::DicomDirImage   *im2;
 
    pa1 = dicomdir->GetFirstPatient(); 
    pa2 = d2->GetFirstPatient(); 
index cd34df8f9d365540775838698cd52a781f43e997..8cb3b808fb69b55dc5377c458df2a5ce90a7d112 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDirList.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/02 10:05:26 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -22,7 +22,7 @@ int TestDirList(int , char *[])
    std::string path = GDCM_DATA_ROOT;
    std::cerr << path << std::endl;
 
-   gdcm::DirList list(path, true);
+   GDCM_NAME_SPACE::DirList list(path, true);
    list.Print();
 
    return 0;
index 6da538a2c30bf4ded65d93d0c6d0bb7b90398038..b242ccbbfe279d13d1380d6b957ca4ba5494cf94 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestFileAccessors.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 16:00:34 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -88,7 +88,7 @@ int TestFileAccessors(int argc, char *argv[])
       std::cout << " ----------------------------------------------"
                 << "Begin with " << filename << std::endl;
 
-      gdcm::File *f= gdcm::File::New( );
+      GDCM_NAME_SPACE::File *f= GDCM_NAME_SPACE::File::New( );
       f->SetFileName( filename );
       f->Load( );
 
@@ -149,7 +149,7 @@ int TestFileAccessors(int argc, char *argv[])
       {
          std::cout << "   " << filename << " is Readable" << std::endl;
 
-         gdcm::FileHelper *fh= gdcm::FileHelper::New( f );   
+         GDCM_NAME_SPACE::FileHelper *fh= GDCM_NAME_SPACE::FileHelper::New( f );   
 
          TestMethodMacro(std::dec,fh,GetImageDataSize)
          TestMethodMacro(std::dec,fh,GetImageDataRawSize)
index b6491ca0fbd01c0510b7a9ef78b972655f6d5caa..8fa5711b2d31ae50cef027f300ce0fd67a5da023 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestLoadAllDocumentsNoPrivNoSeq.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:31 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -54,10 +54,10 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[])
       filename += "/";  //doh!
       filename += gdcmDataImages[i];
 
-      gdcm::File *f= gdcm::File::New( );
+      GDCM_NAME_SPACE::File *f= GDCM_NAME_SPACE::File::New( );
       f->SetFileName( filename );
       // just to improve coverage
-      f->SetLoadMode (gdcm::LD_NOSEQ|gdcm::LD_NOSHADOW);
+      f->SetLoadMode (GDCM_NAME_SPACE::LD_NOSEQ|GDCM_NAME_SPACE::LD_NOSHADOW);
       f->Load();
 
 /*
index 50148523f3101885d38330f44eee9286d8a41db1..edfecb6607ad94c5d11fcddb9d6c70cf1b665219 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestMakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:19 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -23,7 +23,7 @@
 #include "gdcmDebug.h"
 
 // ---
-class CommandStart : public gdcm::Command
+class CommandStart : public GDCM_NAME_SPACE::Command
 {
    gdcmTypeMacro(CommandStart);
    gdcmNewMacro(CommandStart);
@@ -38,7 +38,7 @@ protected :
    CommandStart() {}
 };
 
-class CommandEnd : public gdcm::Command
+class CommandEnd : public GDCM_NAME_SPACE::Command
 {
    gdcmTypeMacro(CommandEnd);
    gdcmNewMacro(CommandEnd);
@@ -53,7 +53,7 @@ protected :
    CommandEnd() {}
 };
 
-class CommandProgress : public gdcm::Command
+class CommandProgress : public GDCM_NAME_SPACE::Command
 {
    gdcmTypeMacro(CommandProgress);
    gdcmNewMacro(CommandProgress);
@@ -61,7 +61,7 @@ class CommandProgress : public gdcm::Command
 public :
    virtual void Execute()
    {
-      gdcm::DicomDir *dd=dynamic_cast<gdcm::DicomDir *>(GetObject());
+      GDCM_NAME_SPACE::DicomDir *dd=dynamic_cast<GDCM_NAME_SPACE::DicomDir *>(GetObject());
 
       if(dd)
          std::cerr << "Progress parsing (" << dd->GetProgress() << ")" << std::endl;
@@ -104,25 +104,25 @@ int TestMakeDicomDir(int argc, char *argv[])
       dirName = GDCM_DATA_ROOT;
    }
  
-   gdcm::DicomDir *dcmdir;
+   GDCM_NAME_SPACE::DicomDir *dcmdir;
 
    // new style (user is allowed no to load Sequences an/or Shadow Groups)
-   dcmdir = gdcm::DicomDir::New( );
+   dcmdir = GDCM_NAME_SPACE::DicomDir::New( );
  
-   gdcm::Command *cmd;
+   GDCM_NAME_SPACE::Command *cmd;
    cmd = CommandStart::New();
-   gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_STARTPROGRESS,cmd);
+   GDCM_NAME_SPACE::CommandManager::SetCommand(dcmdir,GDCM_NAME_SPACE::CMD_STARTPROGRESS,cmd);
    cmd->Delete();
    cmd = CommandProgress::New();
-   gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_PROGRESS,cmd);
+   GDCM_NAME_SPACE::CommandManager::SetCommand(dcmdir,GDCM_NAME_SPACE::CMD_PROGRESS,cmd);
    cmd->Delete();
    cmd = CommandEnd::New();
-   gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_ENDPROGRESS,cmd);
+   GDCM_NAME_SPACE::CommandManager::SetCommand(dcmdir,GDCM_NAME_SPACE::CMD_ENDPROGRESS,cmd);
    cmd->Delete();
 
    // dcmdir->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
    // some images have a wrong length for element 0x0000 of private groups
-   dcmdir->SetLoadMode(gdcm::LD_NOSEQ);
+   dcmdir->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ);
    dcmdir->SetDirectoryName(dirName);
    dcmdir->Load();
 
@@ -140,7 +140,7 @@ int TestMakeDicomDir(int argc, char *argv[])
    dcmdir->Delete();
 
    // Read from disc the just written DicomDir
-   gdcm::DicomDir *newDicomDir = gdcm::DicomDir::New();
+   GDCM_NAME_SPACE::DicomDir *newDicomDir = GDCM_NAME_SPACE::DicomDir::New();
    newDicomDir->SetFileName("NewDICOMDIR");
    newDicomDir->Load();
 
index 2da82ce370002e9589319f9af66bd4ea9f2bded6..225d528ed8f28b41347556d6199cc7776fa0ea23 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestMakeIcon.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:05:03 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -35,7 +35,7 @@ int TestMakeIcon (int argc, char *argv[])
 
    std::string output = "testIcon.dcm";
 
-   gdcm::Debug::DebugOn();
+   GDCM_NAME_SPACE::Debug::DebugOn();
 
    if ( argc == 3 )
    {
@@ -48,7 +48,7 @@ int TestMakeIcon (int argc, char *argv[])
                 << " input filename.dcm output Filename.dcm" << std::endl;
    }
 
-   gdcm::File *f = gdcm::File::New( );
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New( );
    f->SetFileName( input );
    f->Load( );
 
@@ -58,12 +58,12 @@ int TestMakeIcon (int argc, char *argv[])
       f->Delete();
       return 1;
    }  
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f); 
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f); 
    uint8_t *pixels = fh->GetImageData();
    uint32_t lgth   = fh->GetImageDataSize();
 
-   gdcm::SeqEntry *icon = f->InsertSeqEntry(0x0088, 0x0200);
-   gdcm::SQItem *sqi = gdcm::SQItem::New(1);
+   GDCM_NAME_SPACE::SeqEntry *icon = f->InsertSeqEntry(0x0088, 0x0200);
+   GDCM_NAME_SPACE::SQItem *sqi = GDCM_NAME_SPACE::SQItem::New(1);
    icon->AddSQItem(sqi, 1);
    sqi->Delete();
 
@@ -89,7 +89,7 @@ int TestMakeIcon (int argc, char *argv[])
    f->Delete();
    fh->Delete();
 
-   f = gdcm::File::New();
+   f = GDCM_NAME_SPACE::File::New();
    f->SetFileName(output);
    f->Load();
    f->Print();
index 1b19d7949119d86f5ad1f0449dc826fa048bca12..9d8efd81fb266db207d35738b32ee2a7fbcd7b41 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestPrintAllDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/07 10:58:51 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -67,7 +67,7 @@ int TestPrintAllDocument(int argc, char *argv[])
       std::cout << " ----------------------------------------------"
                 << "Begin with " << filename << std::endl;
 
-      gdcm::File *f= gdcm::File::New( );
+      GDCM_NAME_SPACE::File *f= GDCM_NAME_SPACE::File::New( );
       f->SetFileName( filename );
       f->Load();
 
@@ -112,11 +112,11 @@ int TestPrintAllDocument(int argc, char *argv[])
 
       std::string strImageOrientationPatient = 
                                           f->GetEntryString(0x0020,0x0037);
-      if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND )
+      if ( strImageOrientationPatient != GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
-         gdcm::Orientation *o = gdcm::Orientation::New();
+         GDCM_NAME_SPACE::Orientation *o = GDCM_NAME_SPACE::Orientation::New();
  
-         gdcm::OrientationType orient = o->GetOrientationType( f );
+         GDCM_NAME_SPACE::OrientationType orient = o->GetOrientationType( f );
          std::cout << " ---------------------- Orientation " << orient
                    << std::endl;
          o->Delete(); 
index 0499ab6e5eb62b091a66e91bc386c5b2981ee8d6..655e12821407ab5015d29107bf073f8ec79f9572 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestReadWriteReadCompare.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/05 22:13:55 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -28,7 +28,7 @@ int CompareInternal(std::string const &filename, std::string const &output)
 
    //////////////// Step 1 (see above description):
 
-   gdcm::File *file = gdcm::File::New( );
+   GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New( );
    file->SetFileName( filename );
    file->Load ();
    if( !file->IsReadable() )
@@ -42,7 +42,7 @@ int CompareInternal(std::string const &filename, std::string const &output)
    std::cout << "           step 1...";
 
    //////////////// Step 2:
-   gdcm::FileHelper *filehelper = gdcm::FileHelper::New( file );
+   GDCM_NAME_SPACE::FileHelper *filehelper = GDCM_NAME_SPACE::FileHelper::New( file );
    int dataSize    = filehelper->GetImageDataSize();
    uint8_t *imageData = filehelper->GetImageData(); //EXTREMELY IMPORTANT
           // Sure, it is : It's up to the user to decide if he wants to
@@ -56,7 +56,7 @@ int CompareInternal(std::string const &filename, std::string const &output)
    std::cout << "2...";
  
    //////////////// Step 3:
-   gdcm::File *fileout = gdcm::File::New();
+   GDCM_NAME_SPACE::File *fileout = GDCM_NAME_SPACE::File::New();
    fileout->SetFileName( output );
    fileout->Load();
   // gdcm::FileHelper *reread = new gdcm::FileHelper( output ); // deprecated
@@ -72,7 +72,7 @@ int CompareInternal(std::string const &filename, std::string const &output)
       return 1;
    }
 
-   gdcm::FileHelper *reread = gdcm::FileHelper::New( fileout );
+   GDCM_NAME_SPACE::FileHelper *reread = GDCM_NAME_SPACE::FileHelper::New( fileout );
 
    std::cout << "3...";
    // For the next step:
@@ -140,7 +140,7 @@ int TestReadWriteReadCompare(int argc, char *argv[])
    int result = 0;
 
    if (argc == 4)
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    if (argc >= 3)
    {
index 77bd81d4d4da819a6150b9d541abc078c4f59567..cfa52140ff094e01a61701ffc3f62bb24f2873e5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/14 15:56:55 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,7 +22,7 @@
 
 int TestSerieHelper(int argc, char *argv[])
 {  
-   gdcm::SerieHelper *s;
+   GDCM_NAME_SPACE::SerieHelper *s;
   
    std::string dirName; 
    if (argc > 1) 
@@ -38,8 +38,8 @@ int TestSerieHelper(int argc, char *argv[])
   
    std::cout << "Dir Name :[" << dirName << "]" << std::endl;
 
-   s = gdcm::SerieHelper::New();
-   s->SetLoadMode(gdcm::LD_ALL);     // Load everything for each File
+   s = GDCM_NAME_SPACE::SerieHelper::New();
+   s->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);     // Load everything for each File
    //s->AddRestriction(tagKey, valueToCheck); // Keep only files where
                                               // restriction is true
    s->SetDirectory(dirName, true); // true : recursive exploration
@@ -52,7 +52,7 @@ int TestSerieHelper(int argc, char *argv[])
 
    int nbFiles;
    // For all the SingleSerieUID filesets of the gdcm::Serie
-   gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet();
+   GDCM_NAME_SPACE::FileList *l = s->GetFirstSingleSerieUIDFileSet();
    while (l)
    { 
       nbFiles = l->size() ;
@@ -76,7 +76,7 @@ int TestSerieHelper(int argc, char *argv[])
 
    std::string fileName; 
    l = s->GetFirstSingleSerieUIDFileSet();
-   for (std::vector<gdcm::File* >::iterator it =  l->begin();
+   for (std::vector<GDCM_NAME_SPACE::File* >::iterator it =  l->begin();
                                             it != l->end();
                                           ++it)
    {
index d9153ee29147b8d2d597dd570ed700716d442358..ebe4a32e109092c9211cf0688a03d6ae396bfbb1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestValidate.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 10:02:57 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -28,10 +28,10 @@ int Validate(std::string const &filename);
 
 int Validate(std::string const &filename)
 {
-   gdcm::File *input =  gdcm::File::New( );
+   GDCM_NAME_SPACE::File *input =  GDCM_NAME_SPACE::File::New( );
    input->SetFileName(filename);
    input->Load();
-   gdcm::Validator *v = gdcm::Validator::New();
+   GDCM_NAME_SPACE::Validator *v = GDCM_NAME_SPACE::Validator::New();
    v->SetInput( input );
    input->Delete();
    v->Delete();
index efd7a73c12e84ba2493e6bd5bbab738fe54668d2..f33012eedf4053fd77ec7de208aaba0197be08ac 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: VTKTestWriteSeq.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/09/08 14:40:15 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/06/21 14:59:06 $
+  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
@@ -219,7 +219,7 @@ int VTKTestWriteSeq(int argc, char *argv[])
       }
    }
 
-   gdcm::Debug::DebugOn();
+   GDCM_NAME_SPACE::Debug::DebugOn();
 
    int ret = 0;
    vtkTesting *t = vtkTesting::New();