]> Creatis software - gdcm.git/commitdiff
In order to allow to use current version (1.3) of gdcm *and* ITK (that includes
authorjpr <jpr>
Wed, 23 May 2007 14:18:02 +0000 (14:18 +0000)
committerjpr <jpr>
Wed, 23 May 2007 14:18:02 +0000 (14:18 +0000)
gdcm1.2) developper may, at CMake time, choose his own 'namespace' name,
e.g. gdcm13

156 files changed:
CMakeLists.txt
Dicts/DicomDir.dic
Example/Anonymize.cxx
Example/AnonymizeDicomDir.cxx
Example/AnonymizeMultiPatient.cxx
Example/AnonymizeNoLoad.cxx
Example/ExtractOverlays.cxx
Example/FindTags.cxx
Example/MakeDicomDir.cxx
Example/PatchHeader.cxx
Example/PrintDicomDir.cxx
Example/PrintFile.cxx
Example/RawToDicom.cxx
Example/ReWrite.cxx
Example/ReWriteExtended.cxx
Example/TestValidate.cxx
Example/ToInTag.cxx
Example/ToMRIregister.cxx
Example/Volume2Dicom.cxx
Example/WriteDicomAsJPEG.cxx
Example/WriteDicomSimple.cxx
Example/WriteRead.cxx
Example/exCTPET.cxx
Example/exColorToRGB.cxx
Example/exCurveData.cxx
Example/exExtractDicomTags.cxx
Example/exExtractTag.cxx
Example/exGC.cxx
Example/exGrey2RGB.cxx
Example/exImageLighten.cxx
Example/exMoveImagesToSingleSerieUID.cxx
Example/exOverlaysACR.cxx
Example/exOverlaysDCM.cxx
Example/exReadPapyrus.cxx
Example/exReadWriteFile.cxx
Example/exSerieHelper.cxx
Example/exXCoherentFileSet.cxx
PACKAGER
Testing/TestBug.cxx
Testing/TestCommand.cxx
Testing/TestDicomDirElement.cxx
Testing/TestDict.cxx
Testing/TestDictGroupName.cxx
Testing/TestImageSet.cxx
Testing/TestTS.cxx
Testing/TestUtil.cxx
Testing/TestVR.cxx
Testing/TestWriteSimple.cxx
gdcmConfigure.h.in
gdcmPython/gdcm.i
gdcmPython/gdcmCommandPy.h
src/gdcmArgMgr.cxx
src/gdcmArgMgr.h
src/gdcmBase.cxx
src/gdcmBase.h
src/gdcmCallbackCommand.cxx
src/gdcmCallbackCommand.h
src/gdcmCommand.cxx
src/gdcmCommand.h
src/gdcmCommandManager.cxx
src/gdcmCommandManager.h
src/gdcmCommon.h
src/gdcmDataEntry.cxx
src/gdcmDataEntry.h
src/gdcmDebug.cxx
src/gdcmDebug.h
src/gdcmDefaultDicts.cxx.in
src/gdcmDicomDir.cxx
src/gdcmDicomDir.h
src/gdcmDicomDirElement.cxx
src/gdcmDicomDirElement.h
src/gdcmDicomDirImage.cxx
src/gdcmDicomDirImage.h
src/gdcmDicomDirMeta.cxx
src/gdcmDicomDirMeta.h
src/gdcmDicomDirObject.cxx
src/gdcmDicomDirObject.h
src/gdcmDicomDirPatient.cxx
src/gdcmDicomDirPatient.h
src/gdcmDicomDirPrivate.cxx
src/gdcmDicomDirPrivate.h
src/gdcmDicomDirSerie.cxx
src/gdcmDicomDirSerie.h
src/gdcmDicomDirStudy.cxx
src/gdcmDicomDirStudy.h
src/gdcmDicomDirVisit.cxx
src/gdcmDicomDirVisit.h
src/gdcmDicomEntry.cxx
src/gdcmDicomEntry.h
src/gdcmDict.cxx
src/gdcmDict.h
src/gdcmDictEntry.cxx
src/gdcmDictEntry.h
src/gdcmDictGroupName.cxx
src/gdcmDictGroupName.h
src/gdcmDictSet.cxx
src/gdcmDictSet.h
src/gdcmDirList.cxx
src/gdcmDirList.h
src/gdcmDocEntry.cxx
src/gdcmDocEntry.h
src/gdcmDocEntryArchive.cxx
src/gdcmDocEntryArchive.h
src/gdcmDocEntrySet.cxx
src/gdcmDocEntrySet.h
src/gdcmDocument.cxx
src/gdcmDocument.h
src/gdcmElementSet.cxx
src/gdcmElementSet.h
src/gdcmException.cxx
src/gdcmException.h
src/gdcmFile.cxx
src/gdcmFile.h
src/gdcmFileHelper.cxx
src/gdcmFileHelper.h
src/gdcmGlobal.cxx
src/gdcmGlobal.h
src/gdcmJPEGFragment.cxx
src/gdcmJPEGFragment.h
src/gdcmJPEGFragmentsInfo.cxx
src/gdcmJPEGFragmentsInfo.h
src/gdcmJpeg.cxx
src/gdcmJpeg2000.cxx
src/gdcmJpegLS.cxx
src/gdcmMpeg.cxx
src/gdcmOrientation.cxx
src/gdcmOrientation.h
src/gdcmPixelReadConvert.cxx
src/gdcmPixelReadConvert.h
src/gdcmPixelWriteConvert.cxx
src/gdcmPixelWriteConvert.h
src/gdcmRLEFrame.cxx
src/gdcmRLEFrame.h
src/gdcmRLEFramesInfo.cxx
src/gdcmRLEFramesInfo.h
src/gdcmRefCounter.cxx
src/gdcmRefCounter.h
src/gdcmSQItem.cxx
src/gdcmSQItem.h
src/gdcmSeqEntry.cxx
src/gdcmSeqEntry.h
src/gdcmSerieHelper.cxx
src/gdcmSerieHelper.h
src/gdcmTS.cxx
src/gdcmTS.h
src/gdcmTagKey.h
src/gdcmUtil.cxx
src/gdcmUtil.h
src/gdcmVR.cxx
src/gdcmVR.h
src/gdcmVRKey.h
src/gdcmValidator.cxx
src/gdcmValidator.h
src/gdcmjpegls/Decoder/gdcmfstream.cxx
src/gdcmjpegls/Decoder/gdcmfstream.h
src/jdatasrc.cxx

index 454ff42933427b98b627411453ab3a5747928c35..823940a29d42ab2a5f72d68ada7204e692d0c558 100644 (file)
@@ -29,6 +29,9 @@ SET(GDCM_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES})
 OPTION(GDCM_DEBUG "Turn verbosity of some statement ON." OFF)
 MARK_AS_ADVANCED(GDCM_DEBUG)
 
+# --------------------------------------------------------------------------
+SET (GDCM_NAME_SPACE gdcm    CACHE STRING "name space")
+
 # --------------------------------------------------------------------------
 # Install directories
 STRING(TOLOWER ${PROJECT_NAME} project_name)
@@ -82,7 +85,7 @@ ENDIF(GDCM_BUILD_SHARED_LIBS)
 
 #-----------------------------------------------------------------------------
 SET (EXECUTABLE_OUTPUT_PATH ${GDCM_BINARY_DIR}/bin CACHE PATH "Single output directory for building all executables.")
-SET (LIBRARY_OUTPUT_PATH ${GDCM_BINARY_DIR}/bin CACHE PATH "Single output directory for building all libraries.")
+SET (LIBRARY_OUTPUT_PATH ${GDCM_BINARY_DIR}/bin    CACHE PATH "Single output directory for building all libraries.")
 MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)
 
 
@@ -238,7 +241,7 @@ ENDIF( ${CMAKE_HAVE_SYS_SOCKET_H} )
 
 #-----------------------------------------------------------------------------
 # Force Big Endian emulation on little endian:
-OPTION(GDCM_FORCE_BIGENDIAN_EMULATION "Force Big Endian Emulation. Do use if you don't know what you are doing." OFF)
+OPTION(GDCM_FORCE_BIGENDIAN_EMULATION "Force Big Endian Emulation. Don't use if you don't know what you are doing." OFF)
 
 CONFIGURE_FILE(${GDCM_SOURCE_DIR}/gdcmConfigure.h.in
                ${GDCM_BINARY_DIR}/gdcmConfigure.h @ONLY IMMEDIATE
index 17c49731cd23d1e3e5ab919de06b0f534f5c9a88..f61ea05f67b958c91c0c87b4f369bb6d96958a76 100644 (file)
@@ -80,7 +80,7 @@ imageElem   0020 0052 "UI" "0"                    // Frame of Reference UID
 imageElem   0020 1041 "DS" "0.0"                  // Slice Location
 imageElem   0020 4000 "LT" ""                     // Image Comments
 imageElem   0028 0002 "US" "1"                    // Samples per Pixel
-imageElem   0028 0004 "CS" ""                    // Photometric Interpretation
+imageElem   0028 0004 "CS" ""                     // Photometric Interpretation
 imageElem   0028 0006 "US" "0"                    // Planar Configuration
 imageElem   0028 0008 "IS" "1"                    // Number of Frames
 imageElem   0028 0010 "US" "0"                    // Rows
index 8a2cf32c1da585219500d2a7653bd1533386dcfe..59671b2358193c7db73a38391881826078dff239 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Anonymize.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/03/17 14:36:37 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
       return 0;
    }
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
  
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -79,10 +79,10 @@ int main(int argc, char *argv[])
    //   Read the input file.
    // ============================================================
 
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
 
-   f = gdcm::File::New(  );
-   f->SetLoadMode( gdcm::LD_ALL );
+   f = GDCM_NAME_SPACE::File::New(  );
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL );
    f->SetFileName( fileName );
    int res = f->Load();
 
@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
    // ============================================================
 
    // We need a gdcm::FileHelper, since we want to load the pixels        
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
 
    // unit8_t DOESN'T mean it's mandatory for the image to be a 8 bits one !
    // Feel free to cast if you know it's not. 
@@ -146,7 +146,7 @@ int main(int argc, char *argv[])
    // The written image will not appear as a 'Secondary Captured image'
    // nor as a DERIVED one  
 
-   fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+   fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
    
    fh->WriteDcmExplVR(outputFileName);
    std::cout <<"End Anonymize" << std::cout;
index 475f3a0287239b49d8786b43e1320f03fe85cba4..27aa994462240bd9bc0f81d777ad31a5e2fb867f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: AnonymizeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 14:59:58 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
  * \brief AnonymizeDicomDir
  */
 
-void AnoNoLoad(gdcm::SQItem *s, std::fstream *fp, 
+void AnoNoLoad(GDCM_NAME_SPACE::SQItem *s, std::fstream *fp, 
                uint16_t group, uint16_t elem, 
                std::string val);
 
-void AnoNoLoad(gdcm::SQItem *s, std::fstream *fp, 
+void AnoNoLoad(GDCM_NAME_SPACE::SQItem *s, std::fstream *fp, 
                uint16_t group, uint16_t elem, 
                std::string val)
 {
-   gdcm::DocEntry *d;
+   GDCM_NAME_SPACE::DocEntry *d;
    uint32_t offset;
    uint32_t lgth;
    uint32_t valLgth = 0;
@@ -55,7 +55,7 @@ void AnoNoLoad(gdcm::SQItem *s, std::fstream *fp,
    if ( d == NULL)
       return;
 
-   if ( ! dynamic_cast<gdcm::DataEntry *>(d) )
+   if ( ! dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
       return;
 
    offset = d->GetOffset();
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -106,8 +106,8 @@ int main(int argc, char *argv[])
 
 
    //   Read the input DICOMDIR
-   gdcm::File *f;
-   f = gdcm::File::New( );
+   GDCM_NAME_SPACE::File *f;
+   f = GDCM_NAME_SPACE::File::New( );
    f->SetLoadMode(0);
    f->SetFileName( fileName );
    bool res = f->Load();  
@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
    std::cout << " ... is readable " << std::endl;
 
    // Look for Directory record sequence
-   gdcm::DocEntry *e = f->GetDocEntry(0x0004, 0x1220);
+   GDCM_NAME_SPACE::DocEntry *e = f->GetDocEntry(0x0004, 0x1220);
    if ( !e )
    {
       std::cout << "No Directory Record Sequence (0004,1220) found" <<std::endl;;
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
       return 0;
    }
    
-   gdcm::SeqEntry *s = dynamic_cast<gdcm::SeqEntry *>(e);
+   GDCM_NAME_SPACE::SeqEntry *s = dynamic_cast<GDCM_NAME_SPACE::SeqEntry *>(e);
    if ( !s )
    {
       std::cout << "Element (0004,1220) is not a Sequence ?!?" <<std::endl;
@@ -138,17 +138,18 @@ int main(int argc, char *argv[])
    // Open the file LTTG (aka ALAP)
    std::fstream *fp = new std::fstream(fileName, 
                               std::ios::in | std::ios::out | std::ios::binary);
-   gdcm::DocEntry *d;
+   GDCM_NAME_SPACE::DocEntry *d;
    std::string v;
 
    int patientNumber = 0;
    std::ostringstream oss;
 
-   gdcm::SQItem *tmpSI=s->GetFirstSQItem();  // For all the SQItems
+   GDCM_NAME_SPACE::SQItem *tmpSI=s->GetFirstSQItem();  // For all the SQItems
    while(tmpSI)
    {
       d = tmpSI->GetDocEntry(0x0004, 0x1430); // Directory Record Type
-      if ( gdcm::DataEntry *dataEntry = dynamic_cast<gdcm::DataEntry *>(d) )
+      if ( GDCM_NAME_SPACE::DataEntry *dataEntry =
+      dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
       {
          v = dataEntry->GetString();
       }
index 39164b6dfa51babb003af8b18f6cf3fdd10222fa..933332a979d9309b8b6a218e824a015d182b575a 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: AnonymizeMultiPatient.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/06/07 12:22:50 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
 
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -79,18 +79,18 @@ int main(int argc, char *argv[])
    int verbose  = am->ArgMgrDefined("verbose");
    
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
  
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
 
@@ -113,11 +113,11 @@ int main(int argc, char *argv[])
 
    // ----- Begin Processing -----
 
-   gdcm::DicomDir *dcmdir;
+   GDCM_NAME_SPACE::DicomDir *dcmdir;
 
    // we ask for Directory parsing
 
-   dcmdir = gdcm::DicomDir::New( );
+   dcmdir = GDCM_NAME_SPACE::DicomDir::New( );
    dcmdir->SetLoadMode(loadMode);
    dcmdir->SetDirectoryName(dirName);
    dcmdir->Load();
@@ -135,22 +135,22 @@ int main(int argc, char *argv[])
       return 1;
    }
 
-   gdcm::DicomDirPatient *pa;
-   gdcm::DicomDirStudy *st;
-   gdcm::DicomDirSerie *se;
-   gdcm::DicomDirImage *im;
+   GDCM_NAME_SPACE::DicomDirPatient *pa;
+   GDCM_NAME_SPACE::DicomDirStudy *st;
+   GDCM_NAME_SPACE::DicomDirSerie *se;
+   GDCM_NAME_SPACE::DicomDirImage *im;
 
    std::string codedName; 
    std::string fullFileName;
    std::string patName;
       
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
   
    pa = dcmdir->GetFirstPatient(); 
    while ( pa )
    {  // on degouline les PATIENT du DICOMDIR
       patName = pa->GetEntryString(0x0010, 0x0010);
-      codedName = "g^" + gdcm::Util::ConvertToMD5(patName);
+      codedName = "g^" + GDCM_NAME_SPACE::Util::ConvertToMD5(patName);
       if (verbose)
          std::cout << patName << " --> " << codedName << std::endl;         
       st = pa->GetFirstStudy();
@@ -163,12 +163,12 @@ int main(int argc, char *argv[])
             while ( im ) 
             { // on degouline les Images de cette serie       
                fullFileName = dirName;
-               fullFileName +=  gdcm::GDCM_FILESEPARATOR;
+               fullFileName +=  GDCM_NAME_SPACE::GDCM_FILESEPARATOR;
                fullFileName += im->GetEntryString(0x0004, 0x1500);
                if (verbose)
                   std::cout << "FileName " << fullFileName << std::endl;
 
-               f = gdcm::File::New( );
+               f = GDCM_NAME_SPACE::File::New( );
                f->SetLoadMode(loadMode);
                f->SetFileName( fullFileName );
                if ( !f->Load() )
@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
               // 
               //      Overwrite the file
               // 
-              // The gdcm::File remains untouched in memory    
+              // The GDCM_NAME_SPACE::File remains untouched in memory    
    
               f->AnonymizeNoLoad();     
 
index a3b440279d5432c9700993955a5f67bfde2efdcd..aff41e0eb499694d540e37550ca99c9f0c86b6b6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: AnonymizeNoLoad.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:57:49 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
 
    // ----- Initialize Arguments Manager ------
   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage") || argc == 1) 
    {
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    const char *fileName = am->ArgMgrGetString("filein");
    const char *dirName  = am->ArgMgrGetString("dirin");
@@ -75,15 +75,15 @@ int main(int argc, char *argv[])
        return 0;
  }
  
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    int rubOutNb;
@@ -99,20 +99,20 @@ int main(int argc, char *argv[])
  
    delete am;  // ------ we don't need Arguments Manager any longer ------
 
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
    if ( fileName != 0 ) // ====== Deal with a single file ======
    {
 
    // 
    //   Parse the input file.
    // 
-      f = gdcm::File::New( );
+      f = GDCM_NAME_SPACE::File::New( );
       f->SetLoadMode(loadMode);
       f->SetFileName( fileName );
 
-      // gdcm::File::IsReadable() is no usable here, because we deal with
-      // any kind of gdcm::Readable *document*
-      // not only gdcm::File (as opposed to gdcm::DicomDir)
+      // GDCM_NAME_SPACE::File::IsReadable() is no usable here, because we deal with
+      // any kind of GDCM_NAME_SPACE::Readable *document*
+      // not only GDCM_NAME_SPACE::File (as opposed to GDCM_NAME_SPACE::DicomDir)
       if ( !f->Load() ) 
       {
           std::cout <<std::endl
@@ -166,7 +166,7 @@ int main(int argc, char *argv[])
 
       std::cout <<"Let's AnonymizeNoLoad " << std::endl;
 
-      // The gdcm::File remains untouched in memory
+      // The GDCM_NAME_SPACE::File remains untouched in memory
 
       f->AnonymizeNoLoad();
 
@@ -186,13 +186,13 @@ int main(int argc, char *argv[])
    else  // ====== Deal with a (single Patient) Directory ======
    {
       std::cout << "dirName [" << dirName << "]" << std::endl;
-      gdcm::DirList dirList(dirName,1); // gets recursively the file list
-      gdcm::DirListType fileList = dirList.GetFilenames();
-      for( gdcm::DirListType::iterator it  = fileList.begin();
+      GDCM_NAME_SPACE::DirList dirList(dirName,1); // gets recursively the file list
+      GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
+      for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
       {
-         f = gdcm::File::New( );
+         f = GDCM_NAME_SPACE::File::New( );
          f->SetLoadMode(loadMode);
          f->SetFileName( it->c_str() );
 
@@ -232,7 +232,7 @@ int main(int argc, char *argv[])
          }        
          std::cout <<"Let's AnonymizeNoLoad " << it->c_str() << std::endl;
 
-         // The gdcm::File remains untouched in memory
+         // The GDCM_NAME_SPACE::File remains untouched in memory
          // The Dicom file is overwritten on disc
 
          f->AnonymizeNoLoad();
index 87a90e8e1af858c0dc5fdd4aa63000bbeddf48b9..162939f4a165639fe0a2ef2a5d2f017519d113ab 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ExtractOverlays.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/16 16:03:04 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
 
    // ----- Initialize Arguments Manager ------
    
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
 
    if (argc == 1 || am->ArgMgrDefined("usage"))
    {
@@ -68,10 +68,10 @@ int main(int argc, char *argv[])
    const char *dirIn  = am->ArgMgrWantString("dirin", usage);
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
    if (am->ArgMgrDefined("warning"))
-      gdcm::Debug::WarningOn();
+      GDCM_NAME_SPACE::Debug::WarningOn();
       
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
 
    // ======================== more checking on the params ==============
 
-   if ( ! gdcm::DirList::IsDirectory(dirIn) )
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirIn) )
    {
       std::cout << "KO : [" << dirIn << "] is not a Directory." << std::endl;
       return 0;
@@ -98,11 +98,11 @@ int main(int argc, char *argv[])
  
    char outputFileName[1024]; // Hope it's enough for a file name!
    
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
         
-   gdcm::DirList dirList(dirIn,true); // gets (recursively) the file list
-   gdcm::DirListType fileList = dirList.GetFilenames();
-   for( gdcm::DirListType::iterator it  = fileList.begin();
+   GDCM_NAME_SPACE::DirList dirList(dirIn,true); // gets (recursively) the file list
+   GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
+   for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
    {
@@ -111,8 +111,8 @@ int main(int argc, char *argv[])
    
    //   Read the input file.
 
-   f = gdcm::File::New(  );
-   f->SetLoadMode( gdcm::LD_ALL );
+   f = GDCM_NAME_SPACE::File::New(  );
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL );
    f->SetFileName( it->c_str() );
    
    f->AddForceLoadElement(0x6000,0x3000);  // Overlay Data
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
 
    uint16_t ovlyGroup = 0x6000;
 
-   gdcm::DataEntry *e = f->GetDataEntry(ovlyGroup, 0x3000);  
+   GDCM_NAME_SPACE::DataEntry *e = f->GetDataEntry(ovlyGroup, 0x3000);  
    if (e == 0)
    {
       std::cout << " Image doesn't contain any Overlay " << std::endl;
@@ -183,8 +183,8 @@ int main(int argc, char *argv[])
    // ============================================================
    //   Write a new file
    // ============================================================
-   gdcm::File *f2;
-   f2 = gdcm::File::New(  );
+   GDCM_NAME_SPACE::File *f2;
+   f2 = GDCM_NAME_SPACE::File::New(  );
    
    char temp[256];
    
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
 
    // feel free to add any field (Dicom Data Entry) you like, here.
    // ...
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f2);
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f2);
        
    fh->SetImageData(outputData,dimXY);
    fh->WriteDcmExplVR(outputFileName);
index a56ddb4a3db1f199c770727b7744e7afe353c46b..e808d85b7d5d983eeaf979e78329638f5d230080 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: FindTags.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:26 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -26,8 +26,8 @@ int main(int argc, char *argv[])
 {
    std::string fileName;
 
-   gdcm::FileHelper *h;
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::FileHelper *h;
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    
    
    if(argc > 1 ) 
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
    f->Load();
    // Should test if it worked !
    
-   h = gdcm::FileHelper::New(f);
+   h = GDCM_NAME_SPACE::FileHelper::New(f);
    
    std::string ManufacturerName="SIEMENS ";
    std::string RecCode="ACR-NEMA 2.0";
@@ -76,8 +76,8 @@ int main(int argc, char *argv[])
 // existerait-il qq chose qui marche Ã  tout coup?
 
 // Location
-   std::string zizi = gdcm::Util::Format("%f",l);
-   Location = gdcm::Util::DicomString(zizi.c_str());
+   std::string zizi = GDCM_NAME_SPACE::Util::Format("%f",l);
+   Location = GDCM_NAME_SPACE::Util::DicomString(zizi.c_str());
    h->SetEntryString(Location, 0x0020,0x0050);
 
 // sinon, la longueur du champ est erronée (?!?) 
@@ -91,8 +91,8 @@ int main(int argc, char *argv[])
 
 // Image Location 
 
-   zizi = gdcm::Util::Format("%d",0x7FE0);
-   ImageLocation = gdcm::Util::DicomString(zizi.c_str());
+   zizi = GDCM_NAME_SPACE::Util::Format("%d",0x7FE0);
+   ImageLocation = GDCM_NAME_SPACE::Util::DicomString(zizi.c_str());
 //h->SetEntryString(Location, 0x0028,0x0200);
 //h->GetFile()->SetEntryLength(strlen(ImageLocation.c_str())-1, 0x0020,0x0050); // prudence !
 
index db9f3c8e27a91a1f5c99095530d4495255c25cf1..e2d4a68bb0fe5c06344a5ec7b91fe822363bc26f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 14:59:58 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -69,19 +69,19 @@ int main(int argc, char *argv[])
    const char *name;
    name  = am->ArgMgrGetString("name","DICOMDIR");
    
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ; 
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ; 
    else 
    {
    if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
    int check = am->ArgMgrDefined("check"); 
    
@@ -97,11 +97,11 @@ int main(int argc, char *argv[])
 
    // ----- Begin Processing -----
 
-   gdcm::DicomDir *dcmdir;
+   GDCM_NAME_SPACE::DicomDir *dcmdir;
    
    // we ask for Directory parsing
 
-   dcmdir = gdcm::DicomDir::New( );
+   dcmdir = GDCM_NAME_SPACE::DicomDir::New( );
 
    dcmdir->SetLoadMode(loadMode);
    dcmdir->SetDirectoryName(dirName);
@@ -110,14 +110,14 @@ int main(int argc, char *argv[])
      // struct tms tms1, tms2; // Time measurements
      // times(&tms1);
        
-   dcmdir->Load(); // Reads all the files and creates the gdcm::DicomDir
+   dcmdir->Load(); // Reads all the files and creates the GDCM_NAME_SPACE::DicomDir
    
       //times(&tms2);      
       //std::cout 
       //  << (long) ((tms2.tms_utime)  - (tms1.tms_utime)) 
       // << std::endl;
 
-   if ( gdcm::Debug::GetDebugFlag() )
+   if ( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
       std::cout << "======================= End Parsing Directory" << std::endl;
       
     // ----- Check the result
@@ -130,23 +130,23 @@ int main(int argc, char *argv[])
       return 1;
    }
     
-   // ----- Writes the corresponding DICOMDIR file (from the gdcm::DicomDir)
+   // ----- Writes the corresponding DICOMDIR file (from the GDCM_NAME_SPACE::DicomDir)
 
    dcmdir->Write(name);
    dcmdir->Delete();
    
    if (check) 
    {
-      if ( gdcm::Debug::GetDebugFlag() )
+      if ( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "======================= End Writting DICOMDIR" 
                    << std::endl;
 
      // 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( name );
       newDicomDir->Load();
-      if ( gdcm::Debug::GetDebugFlag() )
+      if ( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "======================= End Parsing DICOMDIR" 
                    << std::endl;   
       if( !newDicomDir->IsReadable() )
index adc06698e0a5a82fed885c5db9196a00a732f342..56bd952613e15ac4a1ee1f81fe4125ca4d01e14b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PatchHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/03/01 09:51:56 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -36,7 +36,7 @@
 
 // global variables will be seen inside any function.
 
-gdcm::File *f;
+GDCM_NAME_SPACE::File *f;
 std::fstream *fp;
 
 uint16_t samplesperpixel;
@@ -64,7 +64,7 @@ int bpixelrepresentation;
 void update()
 {
    uint32_t offset;
-   gdcm::DocEntry *d;
+   GDCM_NAME_SPACE::DocEntry *d;
       // 
       //  Fields to replace.
       // 
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
 
    // ----- Initialize Arguments Manager ------
   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage") || argc == 1) 
    {
@@ -262,17 +262,17 @@ int main(int argc, char *argv[])
       pixelrepresentation = am->ArgMgrWantInt("pixelrepresentation",usage);
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
  
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    /* if unused Param we give up */
@@ -291,14 +291,14 @@ int main(int argc, char *argv[])
       // 
       //   Parse the input file.
       // 
-      f = gdcm::File::New( );
+      f = GDCM_NAME_SPACE::File::New( );
       f->SetLoadMode(loadMode);
       f->SetFileName( fileName );
       bool res = f->Load();
 
-      // gdcm::File::IsReadable() is no usable here, because we deal with
-      // any kind of gdcm::Readable *document*
-      // not only gdcm::File (as opposed to gdcm::DicomDir)
+      // GDCM_NAME_SPACE::File::IsReadable() is no usable here, because we deal with
+      // any kind of GDCM_NAME_SPACE::Readable *document*
+      // not only GDCM_NAME_SPACE::File (as opposed to GDCM_NAME_SPACE::DicomDir)
       if ( !res ) 
       {
          std::cout <<std::endl
@@ -330,13 +330,13 @@ int main(int argc, char *argv[])
    else  // ====== Deal with a (single Patient) Directory ======
    {
       std::cout << "dirName [" << dirName << "]" << std::endl;
-      gdcm::DirList dirList(dirName,1); // gets recursively the file list
-      gdcm::DirListType fileList = dirList.GetFilenames();
-      for( gdcm::DirListType::iterator it  = fileList.begin();
+      GDCM_NAME_SPACE::DirList dirList(dirName,1); // gets recursively the file list
+      GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
+      for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
       {
-         f = gdcm::File::New( );
+         f = GDCM_NAME_SPACE::File::New( );
          f->SetLoadMode(loadMode);
          f->SetFileName( it->c_str() );
          bool res = f->Load();
index d8b5f341a624fedbf78e74519fd6198c970155e4..145d33dd01f948dee8abb25f42dbeecb370baafb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 16:03:31 $
-  Version:   $Revision: 1.35 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  Version:   $Revision: 1.36 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -45,7 +45,7 @@ int main(int argc, char* argv[])
    FINISH_USAGE
 
    // Initialize Arguments Manager   
-   gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am= new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage") )
    {
@@ -54,15 +54,15 @@ int main(int argc, char* argv[])
       return 0;
    }
   
-   gdcm::DicomDir *f;
-   gdcm::TSKey v;
-
-   gdcm::DicomDirPatient *pa;
-   gdcm::DicomDirStudy *st;
-   gdcm::DicomDirSerie *se;
-   gdcm::DicomDirVisit *vs;
-   gdcm::DicomDirImage *im;
-   gdcm::DicomDirPrivate *pr;  
+   GDCM_NAME_SPACE::DicomDir *f;
+   GDCM_NAME_SPACE::TSKey v;
+
+   GDCM_NAME_SPACE::DicomDirPatient *pa;
+   GDCM_NAME_SPACE::DicomDirStudy *st;
+   GDCM_NAME_SPACE::DicomDirSerie *se;
+   GDCM_NAME_SPACE::DicomDirVisit *vs;
+   GDCM_NAME_SPACE::DicomDirImage *im;
+   GDCM_NAME_SPACE::DicomDirPrivate *pr;  
    char *fileName;
    fileName  = am->ArgMgrWantString("filein",usage); 
 
@@ -71,10 +71,10 @@ int main(int argc, char* argv[])
    int detailLevel = am->ArgMgrGetInt("detail", 2);
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    if (am->ArgMgrDefined("warning"))
-      gdcm::Debug::WarningOn();
+      GDCM_NAME_SPACE::Debug::WarningOn();
       
    /* if unused Param we give up */
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -86,7 +86,7 @@ int main(int argc, char* argv[])
 
    // new gdcm2 style 
 
-   f = gdcm::DicomDir::New();
+   f = GDCM_NAME_SPACE::DicomDir::New();
    f->SetFileName ( fileName );
    f->Load( );
 
@@ -288,10 +288,10 @@ int main(int argc, char* argv[])
    // Previous code.
    // Kept as an example. Please don't remove
  
-   gdcm::ListDicomDirPatient::const_iterator  itPatient;
-   gdcm::ListDicomDirStudy::const_iterator    itStudy;
-   gdcm::ListDicomDirSerie::const_iterator    itSerie;
-   gdcm::ListDicomDirImage::const_iterator    itImage;
+   GDCM_NAME_SPACE::ListDicomDirPatient::const_iterator  itPatient;
+   GDCM_NAME_SPACE::ListDicomDirStudy::const_iterator    itStudy;
+   GDCM_NAME_SPACE::ListDicomDirSerie::const_iterator    itSerie;
+   GDCM_NAME_SPACE::ListDicomDirImage::const_iterator    itImage;
    cout << std::endl << std::endl
         << " = Liste des PATIENT/STUDY/SERIE/IMAGE ===================================" 
         << std::endl<< std::endl;
index 725dca83c7a0ba5d1c6b1c98cb4be0b2f815a5ab..4225dc9024b45db6a23ee586a3c99df0a190d33e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:57:49 $
-  Version:   $Revision: 1.83 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  Version:   $Revision: 1.84 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 
 // TODO : code factorization, for 'single file' an 'whole directory' processing
 
-void ShowLutData(gdcm::File *f);
+void ShowLutData(GDCM_NAME_SPACE::File *f);
 
      // Nothing is written yet to get LUT Data user friendly
      // The following is to be moved into a PixelReadConvert method
      // Let here, waiting for a clever idea on the way to do it.
 
-void ShowLutData(gdcm::File *f)
+void ShowLutData(GDCM_NAME_SPACE::File *f)
 {  
-   gdcm::SeqEntry *modLutSeq = f->GetSeqEntry(0x0028,0x3000);
+   GDCM_NAME_SPACE::SeqEntry *modLutSeq = f->GetSeqEntry(0x0028,0x3000);
    if ( modLutSeq !=0 )
    {
-      gdcm::SQItem *sqi= modLutSeq->GetFirstSQItem();
+      GDCM_NAME_SPACE::SQItem *sqi= modLutSeq->GetFirstSQItem();
       if ( sqi != 0 )
       {
          std::string lutDescriptor = sqi->GetEntryString(0x0028,0x3002);
@@ -70,7 +70,7 @@ void ShowLutData(gdcm::File *f)
             std::cout << "Wrong LUT descriptor" << std::endl;
          }
          //LUT Data (CTX dependent)    
-         gdcm::DataEntry *b = sqi->GetDataEntry(0x0028,0x3006); 
+         GDCM_NAME_SPACE::DataEntry *b = sqi->GetDataEntry(0x0028,0x3006); 
          if ( b != 0 )
          { 
             int BitsAllocated = f->GetBitsAllocated();
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // Initialize Arguments Manager   
-   gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am= new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage") )
    {
@@ -167,20 +167,20 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    if (am->ArgMgrDefined("warning"))
-      gdcm::Debug::WarningOn();
+      GDCM_NAME_SPACE::Debug::WarningOn();
        
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    int level = am->ArgMgrGetInt("level", 1);
@@ -228,12 +228,12 @@ int main(int argc, char *argv[])
  
    if (ddict)
    {
-      gdcm::Global::GetDicts()->GetDefaultPubDict()->AddDict(dict);   
+      GDCM_NAME_SPACE::Global::GetDicts()->GetDefaultPubDict()->AddDict(dict);   
    }
 
    if ( fileName != 0 ) // ====== Deal with a single file ======
    { 
-      gdcm::File *f = gdcm::File::New();
+      GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
       f->SetLoadMode(loadMode);
       f->SetFileName( fileName );
 
@@ -250,9 +250,9 @@ errno = 0;
 
 
       bool res = f->Load();
-      // gdcm::File::IsReadable() is no usable here, because we deal with
+      // GDCM_NAME_SPACE::File::IsReadable() is no usable here, because we deal with
       // any kind of gdcm-Parsable *document* 
-      // not only gdcm::File (as opposed to gdcm::DicomDir)
+      // not only GDCM_NAME_SPACE::File (as opposed to GDCM_NAME_SPACE::DicomDir)
       if ( !res )
       {
          std::cout << "Cannot process file [" << fileName << "]" << std::endl;
@@ -268,7 +268,7 @@ errno = 0;
       if (nbP == 1)
          f->SetFourthDimensionLocation(FourthDimLoc[0],FourthDimLoc[1]);
 
-      gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+      GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
       fh->SetPrintLevel( level );
 
       fh->Print();
@@ -339,49 +339,49 @@ errno = 0;
 
       std::string strPatientPosition = 
                                       f->GetEntryString(0x0018,0x5100);
-      if ( strPatientPosition != gdcm::GDCM_UNFOUND 
+      if ( strPatientPosition != GDCM_NAME_SPACE::GDCM_UNFOUND 
         && strPatientPosition != "" )  
             std::cout << "PatientPosition (0x0010,0x5100)= [" 
                       << strPatientPosition << "]" << std::endl;
  
       std::string strViewPosition = 
                                       f->GetEntryString(0x0018,0x5101);
-      if ( strViewPosition != gdcm::GDCM_UNFOUND 
+      if ( strViewPosition != GDCM_NAME_SPACE::GDCM_UNFOUND 
         && strViewPosition != "" )  
             std::cout << "View Position (0x0018,0x5101)= [" 
                       << strViewPosition << "]" << std::endl;
       
      std::string strPatientOrientation = 
                                       f->GetEntryString(0x0020,0x0020);
-      if ( strPatientOrientation != gdcm::GDCM_UNFOUND
+      if ( strPatientOrientation != GDCM_NAME_SPACE::GDCM_UNFOUND
         && strPatientOrientation != "")  
          std::cout << "PatientOrientation (0x0020,0x0020)= [" 
                    << strPatientOrientation << "]" << std::endl;
 
       std::string strImageOrientationPatient = 
                                       f->GetEntryString(0x0020,0x0037);  
-      if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND
+      if ( strImageOrientationPatient != GDCM_NAME_SPACE::GDCM_UNFOUND
         && strImageOrientationPatient != "" )  
          std::cout << "ImageOrientationPatient (0x0020,0x0037)= [" 
                    << strImageOrientationPatient << "]" << std::endl;
 
       std::string strImageOrientationRET = 
                                       f->GetEntryString(0x0020,0x0035);
-      if ( strImageOrientationRET != gdcm::GDCM_UNFOUND
+      if ( strImageOrientationRET != GDCM_NAME_SPACE::GDCM_UNFOUND
         && strImageOrientationRET != "" )  
          std::cout << "ImageOrientationRET (0x0020,0x0035)= [" 
                    << strImageOrientationRET << "]" << std::endl;
 
       std::string strImagePositionPatient = 
                                       f->GetEntryString(0x0020,0x0032);  
-      if ( strImagePositionPatient != gdcm::GDCM_UNFOUND
+      if ( strImagePositionPatient != GDCM_NAME_SPACE::GDCM_UNFOUND
         && strImagePositionPatient != "" )  
          std::cout << "ImagePositionPatient (0x0020,0x0032)= [" 
                    << strImagePositionPatient << "]" << std::endl;
 
       std::string strImagePositionPatientRET = 
                                       f->GetEntryString(0x0020,0x0030);
-      if ( strImagePositionPatientRET != gdcm::GDCM_UNFOUND
+      if ( strImagePositionPatientRET != GDCM_NAME_SPACE::GDCM_UNFOUND
         && strImagePositionPatientRET != "" )  
          std::cout << "ImagePositionPatientRET (0x0020,0x0030)= [" 
                    << strImagePositionPatientRET << "]" << std::endl;
@@ -403,13 +403,13 @@ errno = 0;
       // Let's compute 'user friendly' results about 'Orientation'
       // ---------------------------------------------------------
  
-      gdcm::Orientation *o = gdcm::Orientation::New();
+      GDCM_NAME_SPACE::Orientation *o = GDCM_NAME_SPACE::Orientation::New();
 
-      if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND ||
-           strImageOrientationRET     != gdcm::GDCM_UNFOUND )
+      if ( strImageOrientationPatient != GDCM_NAME_SPACE::GDCM_UNFOUND ||
+           strImageOrientationRET     != GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
   
-         gdcm::OrientationType orient = o->GetOrientationType( f );
+         GDCM_NAME_SPACE::OrientationType orient = o->GetOrientationType( f );
  
          std::cout << "TypeOrientation = " << orient << " (-> " 
                    << o->GetOrientationTypeString(orient) << " )" << std::endl;
@@ -434,10 +434,10 @@ errno = 0;
            // Nothing is written yet to get LUT Data user friendly
            // The following is to be moved into a PixelRedaConvert method
   
-            gdcm::SeqEntry *modLutSeq = f->GetSeqEntry(0x0028,0x3000);
+            GDCM_NAME_SPACE::SeqEntry *modLutSeq = f->GetSeqEntry(0x0028,0x3000);
             if ( modLutSeq !=0 )
             {
-               gdcm::SQItem *sqi= modLutSeq->GetFirstSQItem();
+               GDCM_NAME_SPACE::SQItem *sqi= modLutSeq->GetFirstSQItem();
                if ( !sqi )
                {
                   std::string lutDescriptor = sqi->GetEntryString(0x0028,0x3002);
@@ -453,7 +453,7 @@ errno = 0;
                   {
                       std::cout << "Wrong LUT descriptor" << std::endl;
                   }                                                  
-                  gdcm::DataEntry *b = sqi->GetDataEntry(0x0028,0x3006);
+                  GDCM_NAME_SPACE::DataEntry *b = sqi->GetDataEntry(0x0028,0x3006);
                   if ( b != 0 )
                   {
                      if ( b->GetLength() != 0 )
@@ -496,7 +496,7 @@ errno = 0;
          ShowLutData(f);
       }
 
-      // Parsability of the gdcm::Document already checked, after Load() !
+      // Parsability of the GDCM_NAME_SPACE::Document already checked, after Load() !
       
       if ( f->IsReadable() )
       {
@@ -525,18 +525,18 @@ errno = 0;
    else  // ====== Deal with a Directory ======
    {
       std::cout << "dirName [" << dirName << "]" << std::endl;
-      gdcm::DirList dirList(dirName,1); // gets recursively the file list
-      gdcm::DirListType fileList = dirList.GetFilenames();
-      gdcm::File *f;
+      GDCM_NAME_SPACE::DirList dirList(dirName,1); // gets recursively the file list
+      GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
+      GDCM_NAME_SPACE::File *f;
       bool res;
 
-      for( gdcm::DirListType::iterator it  = fileList.begin();
+      for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
       {
          std::cout << std::endl<<" Start processing :[" << it->c_str() << "]"
                    << std::endl;
-         f = gdcm::File::New();
+         f = GDCM_NAME_SPACE::File::New();
          f->SetLoadMode(loadMode);
          f->SetFileName( it->c_str() );
 
@@ -564,7 +564,7 @@ errno = 0;
             continue;
          }
 
-         gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+         GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
          fh->SetPrintLevel( level );
          fh->Print();
 
@@ -575,35 +575,35 @@ errno = 0;
 
          std::string strPatientPosition = 
                                        f->GetEntryString(0x0018,0x5100);
-         if ( strPatientPosition != gdcm::GDCM_UNFOUND 
+         if ( strPatientPosition != GDCM_NAME_SPACE::GDCM_UNFOUND 
          && strPatientPosition != "" )  
                std::cout << "PatientPosition (0x0010,0x5100)= [" 
                         << strPatientPosition << "]" << std::endl;
     
          std::string strViewPosition = 
                                        f->GetEntryString(0x0018,0x5101);
-         if ( strViewPosition != gdcm::GDCM_UNFOUND 
+         if ( strViewPosition != GDCM_NAME_SPACE::GDCM_UNFOUND 
          && strViewPosition != "" )  
                std::cout << "strViewPosition (0x0010,0x5101)= [" 
                         << strViewPosition << "]" << std::endl;
          
          std::string strPatientOrientation = 
                                        f->GetEntryString(0x0020,0x0020);
-         if ( strPatientOrientation != gdcm::GDCM_UNFOUND
+         if ( strPatientOrientation != GDCM_NAME_SPACE::GDCM_UNFOUND
          && strPatientOrientation != "")  
             std::cout << "PatientOrientation (0x0020,0x0020)= [" 
                       << strPatientOrientation << "]" << std::endl;
 
          std::string strImageOrientationPatient = 
                                        f->GetEntryString(0x0020,0x0037);  
-         if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND
+         if ( strImageOrientationPatient != GDCM_NAME_SPACE::GDCM_UNFOUND
          && strImageOrientationPatient != "" )  
             std::cout << "ImageOrientationPatient (0x0020,0x0037)= [" 
                      << strImageOrientationPatient << "]" << std::endl;
 
          std::string strImageOrientationRET = 
                                        f->GetEntryString(0x0020,0x0035);
-         if ( strImageOrientationRET != gdcm::GDCM_UNFOUND
+         if ( strImageOrientationRET != GDCM_NAME_SPACE::GDCM_UNFOUND
          && strImageOrientationRET != "" )
          {
             std::cout << "ImageOrientationRET (0x0020,0x0035)= [" 
@@ -613,14 +613,14 @@ errno = 0;
          // Let's compute 'user friendly' results about 'Orientation'
          // ---------------------------------------------------------
     
-         gdcm::Orientation *o = gdcm::Orientation::New(); 
+         GDCM_NAME_SPACE::Orientation *o = GDCM_NAME_SPACE::Orientation::New(); 
 
 
-         if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND ||
-            strImageOrientationRET     != gdcm::GDCM_UNFOUND )
+         if ( strImageOrientationPatient != GDCM_NAME_SPACE::GDCM_UNFOUND ||
+            strImageOrientationRET     != GDCM_NAME_SPACE::GDCM_UNFOUND )
          {
      
-            gdcm::OrientationType orient = o->GetOrientationType( f );
+            GDCM_NAME_SPACE::OrientationType orient = o->GetOrientationType( f );
     
             std::cout << "TypeOrientation = " << orient << " (-> " 
                      << o->GetOrientationTypeString(orient) << " )" << std::endl;
index e9fa0f66c386c78f0034dacb5244c5f6d52e9222..62710fc7e0f3670476fee4e4b02249f2a30906e2 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: RawToDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:01:47 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
    
 
    // Initialize Arguments Manager   
-   gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am= new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage") )
    {
@@ -109,7 +109,7 @@ int main(int argc, char *argv[])
    char *pixelType = am->ArgMgrWantString("pixeltype", usage);
    
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    /* if unused Param we give up */
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
       return 0;
    }  
 
-   bool bigEndian = gdcm::Util::IsCurrentProcessorBigEndian();
+   bool bigEndian = GDCM_NAME_SPACE::Util::IsCurrentProcessorBigEndian();
 
    std::string strPixelType(pixelType);
    int pixelSign;
@@ -189,10 +189,10 @@ int main(int argc, char *argv[])
    
 // Create an empty FileHelper
 
-   gdcm::FileHelper *fileH = gdcm::FileHelper::New();
+   GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New();
  
  // Get the (empty) image header.  
-   gdcm::File *fileToBuild = fileH->GetFile();
+   GDCM_NAME_SPACE::File *fileToBuild = fileH->GetFile();
      
    
    // If you want to use this program as a template to create
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
    //          keeping the same 'Study Instance UID' for various images
    // The user may add images to a 'Manufacturer Study',
    //          adding new Series to an already existing Study
-   std::string studyUID =  gdcm::Util::CreateUniqueUID(); 
+   std::string studyUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID(); 
    fileToBuild->InsertEntryString(studyUID, 0x0020,0x000d,"UI");
 
    // 'Serie Instance UID'
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
    // keeping the same 'Serie Instance UID' for various images
    // The user shouldn't add any image to a 'Manufacturer Serie'
    // but there is no way no to prevent him for doing that
-   std::string serieUID =  gdcm::Util::CreateUniqueUID();    
+   std::string serieUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();    
    fileToBuild->InsertEntryString(serieUID, 0x0020,0x000e,"UI");   
  
    // end of 'keep out of loop lines  
index 2b374373f29613b211623ee08b5e8448b3c41407..677ebdad637754c45218c8002e674b88d3123f81 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ReWrite.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/29 13:49:32 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -75,24 +75,24 @@ int main(int argc, char *argv[])
 
    const char *mode = am->ArgMgrGetString("mode","X");
 
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
    if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    bool rgb = ( 0 != am->ArgMgrDefined("RGB") );
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    if (am->ArgMgrDefined("warning"))
-      gdcm::Debug::WarningOn();
+      GDCM_NAME_SPACE::Debug::WarningOn();
             
    bool fail = false;
    int *boundVal;
@@ -146,7 +146,7 @@ int main(int argc, char *argv[])
 
    // ----------- End Arguments Manager ---------
 
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    f->SetLoadMode( loadMode );
    f->SetFileName( fileName );
    bool res = f->Load();  
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
    }
  
    
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
    void *imageData; 
    int dataSize;
  
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
    // Since we just ReWrite the image, we know no modification 
    // was performed on the pixels.
    // We don't want this image appears as a 'Secondary Captured image'
-   fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+   fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
    
 
    /// \todo : think about rubbing out a part of a *multiframe* image!
index 1cac05ee8ab32f78efb0c0acc4b5b655c51b9d88..6faf1fbcdbe408d14b19c0c4fb956af26a157354 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ReWriteExtended.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/29 12:02:22 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -72,23 +72,23 @@ int main(int argc, char *argv[])
 
    const char *mode = am->ArgMgrGetString("mode","X");
    
-   int filecontent =  am->ArgMgrGetInt("filecontent", gdcm::UNMODIFIED_PIXELS_IMAGE);
+   int filecontent =  am->ArgMgrGetInt("filecontent", GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
    
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
    if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    bool rgb = ( 0 != am->ArgMgrDefined("RGB") );
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
  
  
  
@@ -130,7 +130,7 @@ int main(int argc, char *argv[])
 
    // ----------- End Arguments Manager ---------
 
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    f->SetLoadMode( loadMode );
    f->SetFileName( fileName );
    bool res = f->Load();  
@@ -176,7 +176,7 @@ int main(int argc, char *argv[])
 
 
    
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
    void *imageData; 
    int dataSize;
  
@@ -257,7 +257,7 @@ int main(int argc, char *argv[])
 
 
    // We trust user. (just an example; *never* trust an user !)  
-   fh->SetContentType((gdcm::ImageContentType)filecontent);
+   fh->SetContentType((GDCM_NAME_SPACE::ImageContentType)filecontent);
    
    /// \todo Here, give the detail of operations a 'decent' user should perform,
    ///       according to what *he* wants to do.
@@ -265,26 +265,26 @@ int main(int argc, char *argv[])
 
    // an user shouldn't add images to a 'native' serie.
    // He is allowed to create his own Serie, within a 'native' Study :
-   // if he wants to do so, he has to call gdcm::Util::GetUniqueUID 
+   // if he wants to do so, he has to call GDCM_NAME_SPACE::Util::GetUniqueUID 
    // only once for a given image set, belonging to a single 'user Serie'
    
    std::string SerieInstanceUID;   
    switch(filecontent)
    {
-      case gdcm::USER_OWN_IMAGE :
-         SerieInstanceUID = gdcm::Util::CreateUniqueUID();
+      case GDCM_NAME_SPACE::USER_OWN_IMAGE :
+         SerieInstanceUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
          f->SetEntryString(SerieInstanceUID,0x0020,0x000e);
       break;
       
-      case gdcm::FILTERED_IMAGE :
+      case GDCM_NAME_SPACE::FILTERED_IMAGE :
       /// \todo : to be finished!
       break;      
 
-      case gdcm::CREATED_IMAGE :
+      case GDCM_NAME_SPACE::CREATED_IMAGE :
       /// \todo : to be finished!
       break;
 
-      case gdcm::UNMODIFIED_PIXELS_IMAGE :
+      case GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE :
       /// \todo : to be finished!
       break;      
    }
index 8cbd611320d60cc2cbd8120452bd9e5e10a23ecc..c2913b6512fb95097d3510a495b025ce4f9de75b 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestValidate.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/18 11:09:06 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -29,10 +29,10 @@ int main(int argc, char *argv[])
 
    const char *filename = argv[1];
 
-   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 );
 
    return 0;
index b95fb1ab3c1db112a00535d70091e7cc9174d363..7ed73f31f212ee9268754d2e21f6ad345ab7bfa6 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToInTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/02/26 08:47:29 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -38,7 +38,7 @@
   *            converted into a Brucker-like Dicom, Intags compliant
   */  
 
-typedef std::map<std::string, gdcm::File*> SortedFiles;
+typedef std::map<std::string, GDCM_NAME_SPACE::File*> SortedFiles;
 
 int main(int argc, char *argv[]) 
 {
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
    
    // ----- Initialize Arguments Manager ------
       
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage")) 
    {
@@ -120,19 +120,19 @@ int main(int argc, char *argv[])
    const char *dirNameout;   
    dirNameout  = am->ArgMgrGetString("dirout",".");  
    
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
    if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
    int verbose  = am->ArgMgrDefined("verbose");
    int split    = am->ArgMgrDefined("split");
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
 
    // ----- Begin Processing -----
    
-   if ( ! gdcm::DirList::IsDirectory(dirNamein) )
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirNamein) )
    {
       std::cout << "KO : [" << dirNamein << "] is not a Directory." << std::endl;
       return 0;
@@ -185,14 +185,14 @@ int main(int argc, char *argv[])
    
    std::cout << "Check for output directory :[" << dirNameout << "]."
              <<std::endl;
-   if ( ! gdcm::DirList::IsDirectory(dirNameout) )    // dirout not found
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirNameout) )    // dirout not found
    {
       std::string strDirNameout(dirNameout);          // to please gcc 4
       systemCommand = "mkdir " +strDirNameout;        // create it!
       if (verbose)
          std::cout << systemCommand << std::endl;
       system (systemCommand.c_str());
-      if ( ! gdcm::DirList::IsDirectory(dirNameout) ) // be sure it worked
+      if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirNameout) ) // be sure it worked
       {
           std::cout << "KO : not a dir : [" << dirNameout << "] (creation failure ?)" << std::endl;
       return 0;
@@ -209,7 +209,7 @@ int main(int argc, char *argv[])
    }
     
    std::string strDirNamein(dirNamein);
-   gdcm::DirList dirList(strDirNamein, true); // get recursively the list of files
+   GDCM_NAME_SPACE::DirList dirList(strDirNamein, true); // get recursively the list of files
    
    if (listonly)
    {
@@ -218,10 +218,10 @@ int main(int argc, char *argv[])
       std::cout << std::endl;
    }
    
-   gdcm::DirListType fileNames;
+   GDCM_NAME_SPACE::DirListType fileNames;
    fileNames = dirList.GetFilenames();
-   gdcm::SerieHelper *s;              // Needed only to may use SerieHelper::AddSeriesDetail()
-   s = gdcm::SerieHelper::New();
+   GDCM_NAME_SPACE::SerieHelper *s;              // Needed only to may use SerieHelper::AddSeriesDetail()
+   s = GDCM_NAME_SPACE::SerieHelper::New();
 
    std::string token = "%%%"; // Hope it's enough!
 /*       
@@ -232,16 +232,16 @@ int main(int argc, char *argv[])
    s->Print();
 */
   
-   gdcm::File *f;
-   gdcm::FileHelper *fh;
+   GDCM_NAME_SPACE::File *f;
+   GDCM_NAME_SPACE::FileHelper *fh;
    std::vector<std::string> tokens;
    std::vector<std::string> tokensForFileName;
    
    // For Siemens pb, we need Station Name
    
-   gdcm::DirListType::iterator it1 = fileNames.begin();
-   f = gdcm::File::New();
-   f->SetLoadMode(gdcm::LD_ALL);
+   GDCM_NAME_SPACE::DirListType::iterator it1 = fileNames.begin();
+   f = GDCM_NAME_SPACE::File::New();
+   f->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( *it1 );
    f->Load();
    std::string stationName = f->GetEntryString(0x0008,0x1010);
@@ -252,13 +252,13 @@ int main(int argc, char *argv[])
              << std::endl;     
    std::string uniqueSeriesIdentifier;
  
-   for (gdcm::DirListType::iterator it) = fileNames.begin();  
+   for (GDCM_NAME_SPACE::DirListType::iterator it) = fileNames.begin();  
                                     it != fileNames.end();
                                   ++it)
    {
       std::cout << "File Name : " << *it << std::endl;
-      f = gdcm::File::New();
-      f->SetLoadMode(gdcm::LD_ALL);
+      f = GDCM_NAME_SPACE::File::New();
+      f->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);
       f->SetFileName( *it );
       f->Load();
         
@@ -288,11 +288,11 @@ int main(int argc, char *argv[])
    //uint8_t *imageData; // Useless : pixels will not be loaded 
                          //          (images are overwritten)
          
-   for (gdcm::DirListType::iterator it = fileNames.begin();  
+   for (GDCM_NAME_SPACE::DirListType::iterator it = fileNames.begin();  
                                     it != fileNames.end();
                                   ++it)
    {
-      f = gdcm::File::New();
+      f = GDCM_NAME_SPACE::File::New();
       f->SetLoadMode(loadMode);
       f->SetFileName( *it );
       f->Load();
@@ -344,7 +344,7 @@ int main(int argc, char *argv[])
 
       userFileIdentifier=s->CreateUserDefinedFileIdentifier(f); 
       tokens.clear();
-      gdcm::Util::Tokenize (userFileIdentifier, tokens, token); 
+      GDCM_NAME_SPACE::Util::Tokenize (userFileIdentifier, tokens, token); 
    
       int imageNum; // Within FileName
       char newName[1024];
@@ -353,10 +353,10 @@ int main(int argc, char *argv[])
       {
          ///this is a trick to build up a lexicographical compliant name :
          ///     eg : fich001.ima vs fich100.ima as opposed to fich1.ima vs fich100.ima
-         std::string name = gdcm::Util::GetName( *it );
+         std::string name = GDCM_NAME_SPACE::Util::GetName( *it );
          if (hasSkel)
          {
-            gdcm::Util::Tokenize (name, tokensForFileName, skel);
+            GDCM_NAME_SPACE::Util::Tokenize (name, tokensForFileName, skel);
             imageNum = atoi ( tokensForFileName[0].c_str() );
             // probabely we could write something much more complicated using C++ !
             sprintf (newName, "%s%06d%s", skel, imageNum, extent);
@@ -397,7 +397,7 @@ int main(int argc, char *argv[])
    std::string fullWriteFilename;
    std::string strExtent(extent); 
            
-   writeDir = gdcm::Util::NormalizePath(dirNameout);     
+   writeDir = GDCM_NAME_SPACE::Util::NormalizePath(dirNameout);     
    SortedFiles::iterator it2;
  
    previousPatientName            = "";
@@ -415,9 +415,9 @@ int main(int argc, char *argv[])
               
    int flag       = 0;
        
-   gdcm::File *currentFile;
+   GDCM_NAME_SPACE::File *currentFile;
 
-   std::string defaultStudyUID =  gdcm::Util::CreateUniqueUID();
+   std::string defaultStudyUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();
    std::string defaultSerieUID;
      
    for (it2 = sf.begin() ; it2 != sf.end(); ++it2)
@@ -425,12 +425,12 @@ int main(int argc, char *argv[])
       currentFile = it2->second;
        
       fullFilename =  currentFile->GetFileName();
-      lastFilename =  gdcm::Util::GetName( fullFilename ); 
+      lastFilename =  GDCM_NAME_SPACE::Util::GetName( fullFilename ); 
       std::cout << " --------------------------------------------------"
                 << " Rewrite [" <<lastFilename << "]" << std::endl;
      
       tokens.clear();
-      gdcm::Util::Tokenize (it2->first, tokens, token);
+      GDCM_NAME_SPACE::Util::Tokenize (it2->first, tokens, token);
       
       currentPatientName            = tokens[0];
       currentSerieInstanceUID       = tokens[1];
@@ -445,26 +445,26 @@ int main(int argc, char *argv[])
           currentImagePosition[0] = 'P'; 
 
       // Add a default ImagePositionPatient to avoid confusion at post processing time
-      if ( currentFile->GetEntryString(0x0020,0x0032) == gdcm::GDCM_UNFOUND && 
-           currentFile->GetEntryString(0x0020,0x0030) == gdcm::GDCM_UNFOUND )
+      if ( currentFile->GetEntryString(0x0020,0x0032) == GDCM_NAME_SPACE::GDCM_UNFOUND && 
+           currentFile->GetEntryString(0x0020,0x0030) == GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
          currentFile->InsertEntryString("0.\\0.\\0.",0x0020, 0x0032, "DS" );
       }
 
       // Add a default ImagePositionPatient to avoid confusion at post processing time
-      if ( currentFile->GetEntryString(0x0020,0x0037) == gdcm::GDCM_UNFOUND && 
-           currentFile->GetEntryString(0x0020,0x0035) == gdcm::GDCM_UNFOUND )
+      if ( currentFile->GetEntryString(0x0020,0x0037) == GDCM_NAME_SPACE::GDCM_UNFOUND && 
+           currentFile->GetEntryString(0x0020,0x0035) == GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
          currentFile->InsertEntryString("1.\\0.\\0.\\0.\\1.\\0.",0x0020, 0x0037, "DS" );
       }
       
       if (previousPatientName != currentPatientName)
       {      
-         if ( currentFile->GetEntryString(0x0020,0x000d) == gdcm::GDCM_UNFOUND)
+         if ( currentFile->GetEntryString(0x0020,0x000d) == GDCM_NAME_SPACE::GDCM_UNFOUND)
          {
             if (verbose)   
                std::cout << "--- new  Study UID created" << std::endl;
-            defaultStudyUID =  gdcm::Util::CreateUniqueUID();
+            defaultStudyUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();
             currentFile->InsertEntryString(defaultStudyUID, 0x0020, 0x000d, "UI" );
          }
   
@@ -479,7 +479,7 @@ int main(int argc, char *argv[])
          previousPhaseEncodingDirection = ""; //currentPhaseEncodingDirection;
   
          currentPatientWriteDir = writeDir + currentPatientName;
-         //if ( ! gdcm::DirList::IsDirectory(currentPatientWriteDir) )
+         //if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(currentPatientWriteDir) )
            {
               systemCommand   = "mkdir " + currentPatientWriteDir;
               if (verbose)
@@ -496,17 +496,17 @@ int main(int argc, char *argv[])
             std::cout << "==== === new Serie [" << currentSerieInstanceUID << "]"
                       << std::endl;
       
-         if ( currentFile->GetEntryString(0x0020,0x000e) == gdcm::GDCM_UNFOUND)
+         if ( currentFile->GetEntryString(0x0020,0x000e) == GDCM_NAME_SPACE::GDCM_UNFOUND)
          {
             if (verbose)   
                std::cout << "--- --- new  Serie UID created" << std::endl;
-            defaultSerieUID =  gdcm::Util::CreateUniqueUID();
+            defaultSerieUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();
             currentFile->InsertEntryString(defaultSerieUID, 0x0020, 0x000e, "UI" );
          }       
       
          if (split)
          {
-             currentSerieWriteDir  = currentPatientWriteDir + gdcm::GDCM_FILESEPARATOR
+             currentSerieWriteDir  = currentPatientWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
                              + currentSerieInstanceUID;
              systemCommand   = "mkdir " + currentSerieWriteDir;  
              system (systemCommand.c_str());
@@ -526,7 +526,7 @@ int main(int argc, char *argv[])
                       << std::endl;
          if (split)
          {
-             currentPositionWriteDir  = currentSerieWriteDir + gdcm::GDCM_FILESEPARATOR
+             currentPositionWriteDir  = currentSerieWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
                              + currentImagePosition;
              systemCommand   = "mkdir " + currentPositionWriteDir;     
              system (systemCommand.c_str()); 
@@ -552,7 +552,7 @@ int main(int argc, char *argv[])
          if (split)
          {
              currentPhaseEncodingDirectionWriteDir  = currentPositionWriteDir 
-                             + gdcm::GDCM_FILESEPARATOR
+                             + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
                              + currentPhaseEncodingDirection;
              systemCommand   = "mkdir " + currentPhaseEncodingDirectionWriteDir;     
              system (systemCommand.c_str());     
@@ -566,10 +566,10 @@ int main(int argc, char *argv[])
          std::cout << "--- --- --- --- --- " << (it2->second)->GetFileName() 
                    << std::endl;
    
-      if ( gdcm::Debug::GetDebugFlag())
+      if ( GDCM_NAME_SPACE::Debug::GetDebugFlag())
          std::cout << "--- --- --- --- --- " << it2->first << "  " 
                    << (it2->second)->GetFileName() << " " 
-                   << gdcm::Util::GetName( fullFilename ) << std::endl;           
+                   << GDCM_NAME_SPACE::Util::GetName( fullFilename ) << std::endl;           
       
       // Transform the image to be 'Brucker-Like'
       // ----------------------------------------   
@@ -660,7 +660,7 @@ int main(int argc, char *argv[])
  
  
       std::string strImagePositionPatient    = currentFile->GetEntryString(0x0020, 0x0032 );
-      if (strImagePositionPatient == gdcm::GDCM_UNFOUND)
+      if (strImagePositionPatient == GDCM_NAME_SPACE::GDCM_UNFOUND)
       {
          if (verbose)
             std::cout << "Duplicate ImagePosition into ImagePositionPatient" << std::endl;
@@ -668,7 +668,7 @@ int main(int argc, char *argv[])
       }  
       
       std::string strImageOrientationPatient = f->GetEntryString(0x0020, 0x0037 );
-      if (strImageOrientationPatient == gdcm::GDCM_UNFOUND)
+      if (strImageOrientationPatient == GDCM_NAME_SPACE::GDCM_UNFOUND)
       {
          if (verbose)
             std::cout << "Duplicate ImageOrientation into ImageOrientationPatient" << std::endl;      
@@ -694,12 +694,12 @@ int main(int argc, char *argv[])
                  
       if (split)
       
-         //fullWriteFilename = currentPhaseEncodingDirectionWriteDir + gdcm::GDCM_FILESEPARATOR 
+         //fullWriteFilename = currentPhaseEncodingDirectionWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
          //                                + lastFilename + strExtent;      
-         fullWriteFilename = currentPositionWriteDir + gdcm::GDCM_FILESEPARATOR 
+         fullWriteFilename = currentPositionWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
                                          + lastFilename + strExtent; 
       else
-         fullWriteFilename = currentPatientWriteDir + gdcm::GDCM_FILESEPARATOR 
+         fullWriteFilename = currentPatientWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
                                          + lastFilename + strExtent; 
       
       /*           
@@ -710,7 +710,7 @@ int main(int argc, char *argv[])
             
       // Load the pixels in RAM.    
       
-      fh = gdcm::FileHelper::New(currentFile);     
+      fh = GDCM_NAME_SPACE::FileHelper::New(currentFile);     
       uint8_t *imageData = fh->GetImageDataRaw(); // Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!?
       fh->SetWriteTypeToDcmExplVR();
       // We didn't modify pixels -> keep unchanged the following :
@@ -726,7 +726,7 @@ int main(int argc, char *argv[])
          for(int x=nX/3; x<nX/2+50; x++)
            imageData[ y*nX*2 + x ] = 0;   
         
-      fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+      fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
       if (!fh->Write(fullWriteFilename))
       {
          std::cout << "Fail to write :[" << fullWriteFilename << "]"
index 536208b94655718ab3e567ab6d5768c5a6978c62..fd65238e38e80e9ee0bc0f4e73888eebfb8666da 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToMRIregister.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:01:48 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -27,9 +27,9 @@
 #include <iostream>
 #include <sstream>
 
-bool AquisitionTime_0008_0032_Compare(gdcm::File *file1, gdcm::File *file2);
+bool AquisitionTime_0008_0032_Compare(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *file2);
 
-bool AquisitionTime_0008_0032_Compare(gdcm::File *file1, gdcm::File *file2)
+bool AquisitionTime_0008_0032_Compare(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *file2)
 {
    return file1->GetEntryString(0x0008,0x0032) < file2->GetEntryString(0x0008,0x0032);
 }
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
    "\n ToMriregister :\n                                                      ",
    " - Converts the Siemens Sonata MRI '*tfl2d1'                              ",
    " to be processable by MriRegister software                                ",
-   " - May be used as a template for gdcm::SerieHelper use.                   ",
+   " - May be used as a template for GDCM_NAME_SPACE::SerieHelper use.                   ",
    "                                                                          ",
    "usage: ToMriRegister dirin=inputDirectoryName                             ",
    "                     dirout=outputDirectoryName                           ",
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
    
    // ----- Initialize Arguments Manager ------
   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage") || argc == 1) 
    {
@@ -68,19 +68,19 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
    int verbose  = am->ArgMgrDefined("verbose");
          
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    const char *dirIn  = am->ArgMgrGetString("dirin");
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
    
    // ======================== more checking on the params ==============
 
-   if ( ! gdcm::DirList::IsDirectory(dirIn) )
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirIn) )
    {
       std::cout << "KO : [" << dirIn << "] is not a Directory." << std::endl;
       return 0;
@@ -134,13 +134,13 @@ int main(int argc, char *argv[])
    if (verbose)
       std::cout << "Check for output directory :[" << dirOut << "]."
              <<std::endl;
-   if ( ! gdcm::DirList::IsDirectory(dirOut) )    // dirout not found
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) )    // dirout not found
    {
       systemCommand = "mkdir " + strDirNameout;   // create it!
       if (verbose)
          std::cout << systemCommand << std::endl;
       system (systemCommand.c_str());
-      if ( ! gdcm::DirList::IsDirectory(dirOut) ) // be sure it worked
+      if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) ) // be sure it worked
       {
           std::cout << "KO : not a dir : [" << dirOut 
                     << "] (creation failure ?)" << std::endl;
@@ -164,24 +164,24 @@ int main(int argc, char *argv[])
                  
    // Just to see *all* the file names:
    
-   gdcm::DirList dirList(dirIn,true); // gets (recursively) the file list
-   gdcm::DirListType fileList = dirList.GetFilenames();
-   for( gdcm::DirListType::iterator it  = fileList.begin();
+   GDCM_NAME_SPACE::DirList dirList(dirIn,true); // gets (recursively) the file list
+   GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
+   for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
    {
       std::cout << "file [" << it->c_str() << "]" << std::endl;  
    }
    
-   gdcm::SerieHelper *s;
+   GDCM_NAME_SPACE::SerieHelper *s;
   
-   s = gdcm::SerieHelper::New();
-   s->SetLoadMode(gdcm::LD_NOSEQ);     // Don't load Sequences
+   s = GDCM_NAME_SPACE::SerieHelper::New();
+   s->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ);     // Don't load Sequences
  
    // we could choose to ignore some Files  
-   //gdcm::TagKey t(0x0010,0x0024);  // [Sequence Name]
+   //GDCM_NAME_SPACE::TagKey t(0x0010,0x0024);  // [Sequence Name]
    // Keep only files where restriction is true
-   //s->AddRestriction(t, "*tfl2d1 ", gdcm::GDCM_EQUAL); 
+   //s->AddRestriction(t, "*tfl2d1 ", GDCM_NAME_SPACE::GDCM_EQUAL); 
                                                     
    s->SetDirectory(dirIn, true); // true : recursive exploration
 
@@ -200,8 +200,8 @@ int main(int argc, char *argv[])
 
    std::ostringstream str;
   
-   gdcm::XCoherentFileSetmap xcm;
-   gdcm::FileHelper *fh;
+   GDCM_NAME_SPACE::XCoherentFileSetmap xcm;
+   GDCM_NAME_SPACE::FileHelper *fh;
    
    // will be used for ordering.
    s->SetUserLessThanFunction(AquisitionTime_0008_0032_Compare);
@@ -209,8 +209,8 @@ int main(int argc, char *argv[])
    int sliceNumber = 0;
    int imageNumber = 0;
          
-   // For all the Single SerieUID Files Sets of the gdcm::Serie
-   gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet();
+   // For all the Single SerieUID Files Sets of the GDCM_NAME_SPACE::Serie
+   GDCM_NAME_SPACE::FileList *l = s->GetFirstSingleSerieUIDFileSet();
    
    char numero[5];
    while (l)
@@ -237,7 +237,7 @@ int main(int argc, char *argv[])
          float position =0.0;
          char charPosition[10];
          
-         for (gdcm::XCoherentFileSetmap::iterator i = xcm.begin();
+         for (GDCM_NAME_SPACE::XCoherentFileSetmap::iterator i = xcm.begin();
                                                   i != xcm.end();
                                                 ++i)
          {
@@ -250,7 +250,7 @@ int main(int argc, char *argv[])
             sprintf(charPosition, "%f", position);
             
             //int imageNumber = 0;    
-            for ( gdcm::FileList::iterator it =  ((*i).second)->begin();
+            for ( GDCM_NAME_SPACE::FileList::iterator it =  ((*i).second)->begin();
                                            it != ((*i).second)->end();
                                          ++it)
             {
@@ -290,21 +290,21 @@ int main(int argc, char *argv[])
  
             // Load the pixels in RAM.    
       
-               fh = gdcm::FileHelper::New(*it);     
+               fh = GDCM_NAME_SPACE::FileHelper::New(*it);     
                uint8_t *imageData = fh->GetImageDataRaw(); // Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!?
                if (!imageData)
                   std::cout << "fail to read [" << (*it)->GetFileName() << std::endl;
                fh->SetWriteTypeToAcr();  
-               fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+               fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
     
                // forge the file name
       
                fullFilename = (*it)->GetFileName();
-               lastFilename =  gdcm::Util::GetName( fullFilename );
-               //fullWriteFilename = strDirNameout + gdcm::GDCM_FILESEPARATOR 
+               lastFilename =  GDCM_NAME_SPACE::Util::GetName( fullFilename );
+               //fullWriteFilename = strDirNameout + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
                //                                  + lastFilename;
                sprintf(fullWriteFilename, "%s%c%04d-%04d-%04d.dcm", 
-                                      dirOut, gdcm::GDCM_FILESEPARATOR,
+                                      dirOut, GDCM_NAME_SPACE::GDCM_FILESEPARATOR,
                                       serieNumber, sliceNumber, imageNumber);
 
                if (verbose)
@@ -312,7 +312,7 @@ int main(int argc, char *argv[])
                  // show [sliceLocation 0x0020,1041 (if any)] old name, -> newname
                  std::string strSliceLocation;
                  /*  
-                 gdcm::DataEntry e = (*it)->GetDataEntry(0x0020,0x1041);
+                 GDCM_NAME_SPACE::DataEntry e = (*it)->GetDataEntry(0x0020,0x1041);
                  if (e)
                     strSliceLocation = e->GetString();
                  else
index 1f271ee19b8fa2137fa273e2a773e06fc855569d..8ab620852e5f82f5603f2a90e3bfc24472ce5ac5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Volume2Dicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/27 10:03:23 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -103,12 +103,12 @@ int main( int argc, char *argv[] )
    ////////////////////////////////////////////////////////////
    // Create a new dicom header and fill in some info        //
    ////////////////////////////////////////////////////////////
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
 
    ////////////////////////////////////////////////////////////
    // Create a new dicom file object from the header         //
    ////////////////////////////////////////////////////////////
-   gdcm::FileHelper  *fh = gdcm::FileHelper::New(f);
+   GDCM_NAME_SPACE::FileHelper  *fh = GDCM_NAME_SPACE::FileHelper::New(f);
    uint8_t *myData = fh->GetImageData(); // Get an Image pointer
    fh->SetImageData( myData, sliceSize); // This callback ensures that the internal
                                         // Pixel_Data of fh is set correctly
@@ -127,7 +127,7 @@ int main( int argc, char *argv[] )
       memcpy(myData,imageData+z*sizex*sizey,sliceSize);
 
       // write the image
-      std::string filename = directory + gdcm::Util::Format("%Image_%05d.dcm", z);
+      std::string filename = directory + GDCM_NAME_SPACE::Util::Format("%Image_%05d.dcm", z);
       std::cout << "Writing file " << filename;
       fh->WriteDcmExplVR(filename);
       std::cout << " OK" << std::endl;
index 1681047023b12e10a8bd6bdb41668dcbe3d7c3e5..9c6e7fa36879a85fce7f101cc5823c2620c2cb7b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteDicomAsJPEG.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/08/18 16:08:16 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -50,15 +50,15 @@ void WriteDICOMItems(std::ostream *fp, JpegVector &v)
   // Item tag:
   uint16_t group = 0xfffe;
   uint16_t elem  = 0xe000;
-  gdcm::binary_write(*fp, group);
-  gdcm::binary_write(*fp, elem);
+  GDCM_NAME_SPACE::binary_write(*fp, group);
+  GDCM_NAME_SPACE::binary_write(*fp, elem);
   // Item Length
   uint32_t dummy = 0x12345678;
   size_t offset = fp->tellp();
   JpegPair jp;
   jp.first = offset;
   v.push_back(jp);
-  gdcm::binary_write(*fp, dummy);
+  GDCM_NAME_SPACE::binary_write(*fp, dummy);
 }
 
 // PS 3.5, page 66
@@ -69,11 +69,11 @@ void EncodeWithoutBasicOffsetTable(std::ostream *fp, int numFrag)// JpegVector&
   // Item tag:
   uint16_t group = 0xfffe;
   uint16_t elem  = 0xe000;
-  gdcm::binary_write(*fp, group);
-  gdcm::binary_write(*fp, elem);
+  GDCM_NAME_SPACE::binary_write(*fp, group);
+  GDCM_NAME_SPACE::binary_write(*fp, elem);
   // Item Length
   uint32_t item_length = 0x0000;
-  gdcm::binary_write(*fp, item_length);
+  GDCM_NAME_SPACE::binary_write(*fp, item_length);
 
 }
 
@@ -83,18 +83,18 @@ void EncodeWithBasicOffsetTable(std::ostream *fp, int numFrag, size_t &start)
   // Item tag:
   uint16_t group = 0xfffe;
   uint16_t elem  = 0xe000;
-  gdcm::binary_write(*fp, group);
-  gdcm::binary_write(*fp, elem);
+  GDCM_NAME_SPACE::binary_write(*fp, group);
+  GDCM_NAME_SPACE::binary_write(*fp, elem);
   // Item Length
   uint32_t item_length = numFrag*4; // sizeof(uint32_t)
-  gdcm::binary_write(*fp, item_length);
+  GDCM_NAME_SPACE::binary_write(*fp, item_length);
 
   // Just prepare the space
   start = fp->tellp(); //to be able to rewind
   for(int i=0; i<numFrag;++i)
     {
     uint32_t dummy = 0x0000;
-    gdcm::binary_write(*fp, dummy);
+    GDCM_NAME_SPACE::binary_write(*fp, dummy);
     }
 }
 
@@ -108,7 +108,7 @@ void UpdateBasicOffsetTable(std::ostream *fp, JpegVector const &v, size_t pos)
     const JpegPair &jp = *i;
     if(i == v.begin() ){ assert( jp.first - first.first == 0); }
     uint32_t offset = jp.first - first.first;
-    gdcm::binary_write(*fp, offset);
+    GDCM_NAME_SPACE::binary_write(*fp, offset);
     //std::cerr << "Updating Table:" << jp.first - first.first << std::endl;
     }
 }
@@ -121,7 +121,7 @@ void UpdateJpegFragmentSize(std::ostream *fp, JpegVector const &v)
     const JpegPair &jp = *i;
     fp->seekp( jp.first );
     uint32_t length = jp.second;
-    gdcm::binary_write(*fp, length );
+    GDCM_NAME_SPACE::binary_write(*fp, length );
     //std::cerr << "Updating:" << jp.first << "," << jp.second << std::endl;
     }
 }
@@ -131,11 +131,11 @@ void CloseJpeg(std::ostream *fp, JpegVector &v)
   // sequence terminator
   uint16_t group = 0xfffe;
   uint16_t elem  = 0xe000;
-  gdcm::binary_write(*fp, group);
-  gdcm::binary_write(*fp, elem);
+  GDCM_NAME_SPACE::binary_write(*fp, group);
+  GDCM_NAME_SPACE::binary_write(*fp, elem);
 
   uint32_t length = 0x0;
-  gdcm::binary_write(*fp, length);
+  GDCM_NAME_SPACE::binary_write(*fp, length);
 
   // Jpeg is done, now update the frag length
   UpdateJpegFragmentSize(fp, v);
@@ -369,12 +369,12 @@ int main(int argc, char *argv[])
    std::cerr << "Using quality: " << quality << std::endl;
 
 // Step 1 : Create the header of the image
-   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();
 
-   gdcm::FileHelper *tested = gdcm::FileHelper::New( f );
+   GDCM_NAME_SPACE::FileHelper *tested = GDCM_NAME_SPACE::FileHelper::New( f );
    std::string PixelType = tested->GetFile()->GetPixelType();
    int xsize = f->GetXSize();
    int ysize = f->GetYSize();
@@ -439,7 +439,7 @@ int main(int argc, char *argv[])
 
 // Step 1 : Create the header of the image
 
-   gdcm::File *fileToBuild = gdcm::File::New();
+   GDCM_NAME_SPACE::File *fileToBuild = GDCM_NAME_SPACE::File::New();
    std::ostringstream str;
 
    // Set the image size
@@ -490,7 +490,7 @@ int main(int argc, char *argv[])
                * samplesPerPixel /* * img.componentSize / 8*/;
 
    uint8_t *imageData = new uint8_t[size];
-   gdcm::FileHelper *fileH = gdcm::FileHelper::New(fileToBuild);
+   GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New(fileToBuild);
    //fileH->SetImageData(imageData,size);
    assert( size == testedDataSize );
    size = of->str().size();
index 846d0b75df249453572fd21cfb5a71d391a746c3..d294697835f7b8c4127339c179975c4b0c9f73dc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteDicomSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/07 10:33:47 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/05/23 14:18:04 $
+  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
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // Initialize Arguments Manager   
-   gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am= new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (argc == 1 || am->ArgMgrDefined("usage") )
    {
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
    std::string fileOut = am->ArgMgrGetString("fileout",(char *)"WriteDicomSimple.dcm");   
    SIZE_X = am->ArgMgrGetInt("NX", 128);
@@ -83,13 +83,13 @@ int main(int argc, char *argv[])
    // ----------- End Arguments Manager ---------
    
    
-// Step 1 : Create an empty gdcm::FileHelper for the image
+// Step 1 : Create an empty GDCM_NAME_SPACE::FileHelper for the image
 //          (it deals with the acces to the pixels)
-   gdcm::FileHelper *fileH = gdcm::FileHelper::New();
+   GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New();
    
-//         Get the empty gdcm::File of the image 
+//         Get the empty GDCM_NAME_SPACE::File of the image 
 //         (it deals with the 'entries' od the image header)  
-   gdcm::File *header = fileH->GetFile();
+   GDCM_NAME_SPACE::File *header = fileH->GetFile();
     
    std::ostringstream str;
 
index 46634fde8cc98fb6c19d2395ee3e80fab6db8172..c08e791b864f86ccaa5e14fc55d7fa74ed42994a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteRead.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -24,10 +24,10 @@ int main(int argc, char *argv[])
 {  
    std::string fileNameToWrite;
 
-   gdcm::File *e1;
-   gdcm::File *e2;
-   gdcm::FileHelper *f1;
-   gdcm::FileHelper *f2;
+   GDCM_NAME_SPACE::File *e1;
+   GDCM_NAME_SPACE::File *e2;
+   GDCM_NAME_SPACE::FileHelper *f1;
+   GDCM_NAME_SPACE::FileHelper *f2;
    uint8_t* imageData, *imageData2;
    int dataSize, dataSize2;
      
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
 // --------------------- we read the input image
 
    std::cout << argv[1] << std::endl;
-   e1 = gdcm::File::New( );
+   e1 = GDCM_NAME_SPACE::File::New( );
    e1->SetFileName( fileName );
    e1->Load();
    if (!e1->IsReadable()) 
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
       return 1;
    }
    
-   f1 = gdcm::FileHelper::New(e1);
+   f1 = GDCM_NAME_SPACE::FileHelper::New(e1);
    imageData= f1->GetImageData();
    dataSize = f1->GetImageDataSize();
 
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
    f1->WriteDcmExplVR(fileNameToWrite);
 
 // --------------------- we read the written image
-   e2 = gdcm::File::New( );
+   e2 = GDCM_NAME_SPACE::File::New( );
    e2->SetFileName( fileNameToWrite );
    e2->Load();
    if (!e2->IsReadable()) 
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
       f1->Delete();
       return 1;
    }
-   f2 = gdcm::FileHelper::New(e2);
+   f2 = GDCM_NAME_SPACE::FileHelper::New(e2);
    imageData2= f2->GetImageData();
    dataSize2 = f2->GetImageDataSize();
 
index 38ad5bbcacceb3ce7f0b73d7799eca3b2a813d73..bcb52c8e2ce894d41de577cc65c1ef4a88ab3cf0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exCTPET.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/02 22:02:50 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -49,28 +49,28 @@ int main(int argc, char *argv[])
   // No -> Return
   // Yes: We found a match
 
-  gdcm::File *fileRef = gdcm::File::New();
+  GDCM_NAME_SPACE::File *fileRef = GDCM_NAME_SPACE::File::New();
   fileRef->SetFileName( reference );
-  fileRef->SetLoadMode(gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ);
+  fileRef->SetLoadMode(GDCM_NAME_SPACE::LD_NOSHADOW | GDCM_NAME_SPACE::LD_NOSEQ);
   fileRef->Load();
   // 0008 0060 CS 1 Modality
   std::string modalityRef = fileRef->GetEntryString(0x0008,0x0060);
-  if( modalityRef == gdcm::GDCM_UNFOUND ) return 1;
-  if ( !gdcm::Util::DicomStringEqual(modalityRef, "CT") ) return 1;
+  if( modalityRef == GDCM_NAME_SPACE::GDCM_UNFOUND ) return 1;
+  if ( !GDCM_NAME_SPACE::Util::DicomStringEqual(modalityRef, "CT") ) return 1;
   // 0020 000d UI 1 Study Instance UID
   // 0020 000e UI REL Series Instance UID
   std::string series_uid_ref = fileRef->GetEntryString(0x0020, 0x000e);
   // 0020 0052 UI 1 Frame of Reference UID
   std::string frame_uid_ref = fileRef->GetEntryString(0x0020, 0x0052);
   // 0020 0032 DS 3 Image Position (Patient)
-  gdcm::DataEntry *imagePosRef = fileRef->GetDataEntry(0x0020,0x0032);
+  GDCM_NAME_SPACE::DataEntry *imagePosRef = fileRef->GetDataEntry(0x0020,0x0032);
   assert( imagePosRef->GetValueCount() == 3 );
 
-  gdcm::DirList dirList( directory, true );
-  const gdcm::DirListType filenames = dirList.GetFilenames();
-  gdcm::DirListType::const_iterator it = filenames.begin();
-  gdcm::File *file = gdcm::File::New();
-  file->SetLoadMode(gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ);
+  GDCM_NAME_SPACE::DirList dirList( directory, true );
+  const GDCM_NAME_SPACE::DirListType filenames = dirList.GetFilenames();
+  GDCM_NAME_SPACE::DirListType::const_iterator it = filenames.begin();
+  GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New();
+  file->SetLoadMode(GDCM_NAME_SPACE::LD_NOSHADOW | GDCM_NAME_SPACE::LD_NOSEQ);
   for( ; it != filenames.end(); ++it)
     {
     file->SetFileName( *it );
@@ -78,13 +78,13 @@ int main(int argc, char *argv[])
     std::string modality   = file->GetEntryString(0x0008,0x0060);
     // This is a dual modality: modality should be *different*
     if( modality == modalityRef ) continue;
-    if ( !gdcm::Util::DicomStringEqual(modality, "PT") ) continue;
+    if ( !GDCM_NAME_SPACE::Util::DicomStringEqual(modality, "PT") ) continue;
     std::string series_uid = file->GetEntryString(0x0020, 0x000e);
     // Not same series !
     if( series_uid == series_uid_ref ) continue;
     std::string frame_uid = file->GetEntryString(0x0020, 0x0052);
     if( frame_uid_ref != frame_uid ) continue;
-    gdcm::DataEntry *imagePos = file->GetDataEntry(0x0020,0x0032);
+    GDCM_NAME_SPACE::DataEntry *imagePos = file->GetDataEntry(0x0020,0x0032);
     assert( imagePos->GetValueCount() == 3 );
     if( imagePos->GetValue(0) == imagePosRef->GetValue(0)
      && imagePos->GetValue(1) == imagePosRef->GetValue(1)
index 6d547945963f4d9a09b5e37f2b46b89dcc8916fc..e056b039dd5dccae467d09481bd03646dab603cf 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exColorToRGB.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -47,12 +47,12 @@ int main(int argc, char *argv[])
 // ============================================================
 //   Read the input image.
 // ============================================================
-   // a gdcm::File contains all the Dicom Field but the Pixels Element
+   // a GDCM_NAME_SPACE::File contains all the Dicom Field but the Pixels Element
 
    std::cout << argv[1] << std::endl;
 
-   gdcm::File *f = gdcm::File::New();
-   f->SetLoadMode( gdcm::LD_ALL);
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( fileName );
    bool res = f->Load();        
 
@@ -81,8 +81,8 @@ int main(int argc, char *argv[])
 //   Load the pixels in memory.
 // ============================================================
 
-   // We need a gdcm::FileHelper, since we want to load the pixels        
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   // We need a GDCM_NAME_SPACE::FileHelper, since we want to load the pixels        
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
 
    // uint8_t DOESN'T mean it's mandatory for the image to be a 8 bits one !
    // It's just for prototyping.
@@ -103,20 +103,20 @@ int main(int argc, char *argv[])
    // ------                              without Sequences     -------------
 
  
-   gdcm::FileHelper *copy = gdcm::FileHelper::New( );
+   GDCM_NAME_SPACE::FileHelper *copy = GDCM_NAME_SPACE::FileHelper::New( );
    copy->SetFileName( output );
    copy->Load();
  
-   gdcm::DocEntry *d = f->GetFirstEntry();
+   GDCM_NAME_SPACE::DocEntry *d = f->GetFirstEntry();
    while(d)
    {
       // We skip SeqEntries, since user cannot do much with them
-      if ( !(dynamic_cast<gdcm::SeqEntry*>(d))
+      if ( !(dynamic_cast<GDCM_NAME_SPACE::SeqEntry*>(d))
       // We skip Shadow Groups, since nobody knows what they mean
            && !( d->GetGroup()%2 ) )
       { 
 
-         if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
+         if ( GDCM_NAME_SPACE::DataEntry *de = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
          {              
             copy->GetFile()->InsertEntryBinArea( de->GetBinArea(),de->GetLength(),
                                                  de->GetGroup(),de->GetElement(),
@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
          }
          else
          {
-          // We skip gdcm::SeqEntries
+          // We skip GDCM_NAME_SPACE::SeqEntries
          }
       }
       d = f->GetNextEntry();
index ce1c5293d0f7cc93ee5b45436deb2167a15a94be..f7244b621db468dc9a16065b32676d0bb2503365 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exCurveData.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -76,12 +76,12 @@ inline size_t PrintCurveData(DataValueRepresentation* data, unsigned short numPt
  * V 5004|0020 [CS]                  [Type of Data] [PHYSIO]
  * V 5004|0022 [LO]             [Curve Description] []
  * V 5004|0103 [US]     [Data Value Representation] [0] x(0)
- * B 5004|3000 [OW]                    [Curve Data] [gdcm::Binary data loaded;length = 1938]
+ * B 5004|3000 [OW]                    [Curve Data] [GDCM_NAME_SPACE::Binary data loaded;length = 1938]
  */
  
 int main(int argc, char *argv[])
 {  
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
  
    std::cout << "------------------------------------------------" << std::endl;
    std::cout << "Gets the 'Curve Data' from a full gdcm-readable DICOM " << std::endl;
@@ -101,13 +101,13 @@ int main(int argc, char *argv[])
 //   Read the input image.
 // ============================================================
 
-   f = gdcm::File::New( );
+   f = GDCM_NAME_SPACE::File::New( );
 
-   f->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+   f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);
    f->SetFileName( fileName );
    bool res = f->Load();  
 
-   if( gdcm::Debug::GetDebugFlag() )
+   if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
    {
       std::cout << "---------------------------------------------" << std::endl;
       f->Print();
@@ -126,9 +126,9 @@ int main(int argc, char *argv[])
 //   Check whether image contains Overlays ACR-NEMA style.
 // ============================================================
 
-   //* B 5004|3000 [OW]                    [Curve Data] [gdcm::Binary data loaded;length = 1938]
+   //* B 5004|3000 [OW]                    [Curve Data] [GDCM_NAME_SPACE::Binary data loaded;length = 1938]
    std::string curve_data_str = f->GetEntryString(0x5004, 0x3000);
-   if (curve_data_str == gdcm::GDCM_UNFOUND)
+   if (curve_data_str == GDCM_NAME_SPACE::GDCM_UNFOUND)
    {
       std::cout << " Image doesn't contain any Curve Data" << std::endl;
       f->Delete();
@@ -169,8 +169,8 @@ int main(int argc, char *argv[])
    convert >> data_rep;
 
 
-   gdcm::DocEntry *pCurveDataDoc = f->GetDocEntry(0x5004, 0x3000);
-   gdcm::DataEntry *pCurveData = dynamic_cast<gdcm::DataEntry *>(pCurveDataDoc);
+   GDCM_NAME_SPACE::DocEntry *pCurveDataDoc = f->GetDocEntry(0x5004, 0x3000);
+   GDCM_NAME_SPACE::DataEntry *pCurveData = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(pCurveDataDoc);
    uint8_t *curve_data = pCurveData->GetBinArea();
    
    // From Part3, C.10.2.1.2 Data value representation (p668)
index e475ff868e7d396fd05bd304daef54f1abdd4b22..223e4652269d30c5463cfea079e29c2f18709d28 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exExtractDicomTags.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/09 08:34:29 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
 
    // ----- Initialize Arguments Manager ------
    
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage")) 
    {
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
  
    // if unused Params we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
 
 
    int loadMode = 0x0; // load everything
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    f->SetLoadMode( loadMode );
    f->SetFileName( fileName );
    bool res = f->Load();  
index 07843925e4faf3c9c7df4a195dffc5accb520512..d6006f62ca91b3d3affa33fb2e46240b4356b892 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exExtractTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -26,7 +26,7 @@
 
 int main(int argc, char *argv[])
 {  
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
  
    if( argc < 5 )
    {
@@ -41,13 +41,13 @@ int main(int argc, char *argv[])
 //   Read the input image.
 // ============================================================
 
-   f = gdcm::File::New( );
+   f = GDCM_NAME_SPACE::File::New( );
 
-   //f->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+   //f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);
    f->SetFileName( fileName );
    bool res = f->Load();  
 
-   if( gdcm::Debug::GetDebugFlag() )
+   if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
    {
       std::cout << "---------------------------------------------" << std::endl;
       f->Print();
@@ -73,16 +73,16 @@ int main(int argc, char *argv[])
    std::cout << "Extracting tag: (0x" << std::hex << std::setw(4) << std::setfill('0')
      << group << ",0x" << std::setw(4) << std::setfill('0') << elem << ")" << std::endl;
    std::string dicom_tag_value = f->GetEntryString(group, elem);
-   if (dicom_tag_value == gdcm::GDCM_UNFOUND)
+   if (dicom_tag_value == GDCM_NAME_SPACE::GDCM_UNFOUND)
    {
-     gdcm::DictEntry *dictEntry = f->GetPubDict()->GetEntry( group, elem);
+     GDCM_NAME_SPACE::DictEntry *dictEntry = f->GetPubDict()->GetEntry( group, elem);
      std::cerr << "Image doesn't contain any tag: " << dictEntry->GetName() << std::endl;
      f->Delete();
      return 1;
    }
 
-   gdcm::DocEntry *dicom_tag_doc = f->GetDocEntry(group, elem);
-   gdcm::DataEntry *dicom_tag = dynamic_cast<gdcm::DataEntry *>(dicom_tag_doc);
+   GDCM_NAME_SPACE::DocEntry *dicom_tag_doc = f->GetDocEntry(group, elem);
+   GDCM_NAME_SPACE::DataEntry *dicom_tag = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(dicom_tag_doc);
    if( !dicom_tag )
    {
       std::cerr << "Sorry DataEntry only please" << std::endl;
index 8a55ded29cf6604e52d8ccac5e114b6e4d58b714..513232998285ea801561c9644390176f48e70078 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exGC.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -70,12 +70,12 @@ int main(int argc, char *argv[])
 // ============================================================
 //   Read the input image.
 // ============================================================
-   // a gdcm::File contains all the Dicom Field but the Pixels Element
+   // a GDCM_NAME_SPACE::File contains all the Dicom Field but the Pixels Element
 
    std::cout << argv[1] << std::endl;
 
-   gdcm::File *f = gdcm::File::New();
-   f->SetLoadMode( gdcm::LD_ALL);
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( fileName );
    bool res = f->Load();        
 
@@ -101,8 +101,8 @@ int main(int argc, char *argv[])
 //   Load the pixels in memory.
 // ============================================================
 
-   // We need a gdcm::FileHelper, since we want to load the pixels        
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   // We need a GDCM_NAME_SPACE::FileHelper, since we want to load the pixels        
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
 
    // (unit8_t DOESN'T mean it's mandatory for the image to be a 8 bits one) 
 
@@ -121,20 +121,20 @@ int main(int argc, char *argv[])
    // ------                              without Sequences     -------------
 
  
-   gdcm::FileHelper *copy = gdcm::FileHelper::New( );
+   GDCM_NAME_SPACE::FileHelper *copy = GDCM_NAME_SPACE::FileHelper::New( );
    copy->SetFileName( output );
    copy->Load();
  
-   gdcm::DocEntry *d = f->GetFirstEntry();
+   GDCM_NAME_SPACE::DocEntry *d = f->GetFirstEntry();
    while(d)
    {
       // We skip SeqEntries, since user cannot do much with them
-      if ( !(dynamic_cast<gdcm::SeqEntry*>(d))
+      if ( !(dynamic_cast<GDCM_NAME_SPACE::SeqEntry*>(d))
       // We skip Shadow Groups, since nobody knows what they mean
            && !( d->GetGroup()%2 ) )
       { 
 
-         if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
+         if ( GDCM_NAME_SPACE::DataEntry *de = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
          {              
             copy->GetFile()->InsertEntryBinArea( de->GetBinArea(),de->GetLength(),
                                                  de->GetGroup(),de->GetElement(),
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
          }
          else
          {
-          // We skip gdcm::SeqEntries
+          // We skip GDCM_NAME_SPACE::SeqEntries
          }
       }
       d = f->GetNextEntry();
index 2fba62d49b35077e058312dd16d0525c8f695a58..7fc2846a217653afd2d09c4220ed9a3bebf57f69 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exGrey2RGB.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:28 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
       return 1;
    }
 
-   //gdcm::Debug::DebugOn();
+   //GDCM_NAME_SPACE::Debug::DebugOn();
 
    std::string filename = argv[1];
    std::string output   = argv[2];
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
       }
    }
  
-   gdcm::FileHelper *fh = gdcm::FileHelper::New( );
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New( );
    fh->SetFileName( filename );
    fh->Load();
       
index 7ee9e264875e33a5b232724ea78b46c1047ece93..ba11866493649c960068416adc12ab50fc48e8db 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exImageLighten.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:28 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -55,8 +55,8 @@ int main(int argc, char *argv[])
 
    std::cout << argv[1] << std::endl;
 
-   gdcm::File *f = gdcm::File::New();
-   f->SetLoadMode( gdcm::LD_ALL);
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( fileName );
    bool res = f->Load();        
 
@@ -77,8 +77,8 @@ int main(int argc, char *argv[])
    // Pixel Reading must be done here, to be sure 
    // to load the Palettes Color (if any)
 
-   // First, create a gdcm::FileHelper
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f);
+   // First, create a GDCM_NAME_SPACE::FileHelper
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
 
    // Load the pixels, DO NOT transform LUT (if any) into RGB Pixels 
    uint8_t *imageDataRaw = fh->GetImageDataRaw();
@@ -86,10 +86,10 @@ int main(int argc, char *argv[])
    size_t dataRawSize    = fh->GetImageDataRawSize();
 
 // ============================================================
-//   Create a new gdcm::Filehelper, to hold new image.
+//   Create a new GDCM_NAME_SPACE::Filehelper, to hold new image.
 // ============================================================
 
-   gdcm::FileHelper *copy = gdcm::FileHelper::New( );
+   GDCM_NAME_SPACE::FileHelper *copy = GDCM_NAME_SPACE::FileHelper::New( );
    copy->SetFileName( output );
    copy->Load();
 
@@ -97,16 +97,16 @@ int main(int argc, char *argv[])
 //   Selective copy of the entries (including Pixel Element).
 // ============================================================
 
-   gdcm::DocEntry *d = f->GetFirstEntry();
+   GDCM_NAME_SPACE::DocEntry *d = f->GetFirstEntry();
    while(d)
    {
       // We skip SeqEntries, since user cannot do much with them
-      if ( !(dynamic_cast<gdcm::SeqEntry*>(d))
+      if ( !(dynamic_cast<GDCM_NAME_SPACE::SeqEntry*>(d))
       // We skip Shadow Groups, since nobody knows what they mean
            && !( d->GetGroup()%2 ) )
       { 
 
-         if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
+         if ( GDCM_NAME_SPACE::DataEntry *de = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
          {              
             copy->GetFile()->InsertEntryBinArea( de->GetBinArea(),de->GetLength(),
                                                  de->GetGroup(),de->GetElement(),
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
          }
          else
          {
-          // We skip gdcm::SeqEntries
+          // We skip GDCM_NAME_SPACE::SeqEntries
          }
       }
       d = f->GetNextEntry();
index d3504c232be4e9f729efe3520556fdc908f1c1a4..8e35c7970f3ab87684271df027fad9fa161b3810 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exMoveImagesToSingleSerieUID.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/27 11:38:02 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
    
      // ----- Initialize Arguments Manager ------
   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage") || argc == 1) 
    {
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn(); 
+      GDCM_NAME_SPACE::Debug::DebugOn(); 
    int verbose  = am->ArgMgrDefined("verbose");
    
    std::string patName = am->ArgMgrGetString("patname", "g^PatientName");
@@ -130,15 +130,15 @@ int main(int argc, char *argv[])
    int userDefinedSerie = am->ArgMgrDefined("serieUID");   
    const char *serieUID  = am->ArgMgrGetString("serieUID");      
  
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
    if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
         
    /* if unused Param we give up */
@@ -155,7 +155,7 @@ int main(int argc, char *argv[])
  
  
    //std::cout << "dirIn [" << dirIn << "]" << std::endl;
-   if ( ! gdcm::DirList::IsDirectory(dirIn) )
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirIn) )
    {
       std::cout << "KO : [" << dirIn << "] is not a Directory." << std::endl;
       return 0;
@@ -171,13 +171,13 @@ int main(int argc, char *argv[])
    std::string strDirNameout(dirOut);          // to please gcc 4   
    std::cout << "Check for output directory :[" << dirOut << "]."
              <<std::endl;
-   if ( ! gdcm::DirList::IsDirectory(dirOut) )    // dirout not found
+   if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) )    // dirout not found
    {
       systemCommand = "mkdir " +strDirNameout;        // create it!
       if (verbose)
          std::cout << systemCommand << std::endl;
       system (systemCommand.c_str());
-      if ( ! gdcm::DirList::IsDirectory(dirOut) ) // be sure it worked
+      if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) ) // be sure it worked
       {
           std::cout << "KO : not a dir : [" << dirOut << "] (creation failure ?)" << std::endl;
       return 0;
@@ -194,8 +194,8 @@ int main(int argc, char *argv[])
       std::cout << "Output Directory [" << dirOut << "] already exists; Used as is." << std::endl;
    }  
 
-   gdcm::DirList dirList(dirIn,false); // gets (at single level) the file list
-   gdcm::DirListType fileList = dirList.GetFilenames();
+   GDCM_NAME_SPACE::DirList dirList(dirIn,false); // gets (at single level) the file list
+   GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
 
    // 'Study Instance UID'
    // The user is allowed to create his own Study, 
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
    //          adding new Series to an already existing Study
    std::string strStudyUID;
    if ( !userDefinedStudy)
-      strStudyUID =  gdcm::Util::CreateUniqueUID();
+      strStudyUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();
    else
       strStudyUID = studyUID;
 
@@ -217,21 +217,21 @@ int main(int argc, char *argv[])
    
    std::string strSerieUID; 
    if ( !userDefinedSerie)   
-      strSerieUID =  gdcm::Util::CreateUniqueUID();
+      strSerieUID =  GDCM_NAME_SPACE::Util::CreateUniqueUID();
    else      
       strSerieUID = serieUID;
         
-   gdcm::File *f;
-   gdcm::FileHelper *fh;
+   GDCM_NAME_SPACE::File *f;
+   GDCM_NAME_SPACE::FileHelper *fh;
    std::string fullFilename, lastFilename;
    float zPositionComponent = 0.0;
    
-   for( gdcm::DirListType::iterator it  = fileList.begin();
+   for( GDCM_NAME_SPACE::DirListType::iterator it  = fileList.begin();
                                  it != fileList.end();
                                  ++it )
    {
       fullFilename = *it;
-      f = gdcm::File::New( );
+      f = GDCM_NAME_SPACE::File::New( );
       f->SetLoadMode(loadMode);
       f->SetFileName( it->c_str() );
 
@@ -247,7 +247,7 @@ int main(int argc, char *argv[])
 
       // Load the pixels in RAM.    
       
-      fh = gdcm::FileHelper::New(f);     
+      fh = GDCM_NAME_SPACE::FileHelper::New(f);     
       uint8_t *imageData = fh->GetImageDataRaw(); // Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!?
       if (!imageData)
          std::cout << "fail to read [" << it->c_str() << std::endl;
@@ -292,10 +292,10 @@ int main(int argc, char *argv[])
 // ==================================================================================================
 
               
-      fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+      fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
       
-      lastFilename =  gdcm::Util::GetName( fullFilename );
-      std::string fullWriteFilename = strDirNameout + gdcm::GDCM_FILESEPARATOR 
+      lastFilename =  GDCM_NAME_SPACE::Util::GetName( fullFilename );
+      std::string fullWriteFilename = strDirNameout + GDCM_NAME_SPACE::GDCM_FILESEPARATOR 
                                         + lastFilename;
       if (verbose)
          std::cout << "Write : [" << fullWriteFilename << "]" << std::endl;
index 21d69bc3a4707652d89fca7648d22544c2fb3670..8ede8c90a7bc20c999dcbd6c2a18d307c1654db5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exOverlaysACR.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/06/30 09:52:53 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -59,9 +59,9 @@ V 6006|0102[US] [Overlay Bit Position] [15] x(f)
  
 int main(int argc, char *argv[])
 {  
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
  
-   //gdcm::Debug::DebugOn();
+   //GDCM_NAME_SPACE::Debug::DebugOn();
 
    std::cout << "------------------------------------------------" << std::endl;
    std::cout << "Gets the 'Overlays' from a full gdcm-readable ACR-NEMA "
@@ -86,13 +86,13 @@ int main(int argc, char *argv[])
 
    //std::cout << argv[1] << std::endl;
 
-   f = gdcm::File::New( );
+   f = GDCM_NAME_SPACE::File::New( );
 
-   f->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+   f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);
    f->SetFileName( fileName );
    bool res = f->Load();  
 
-   if( gdcm::Debug::GetDebugFlag() )
+   if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
    {
       std::cout << "---------------------------------------------" << std::endl;
       f->Print();
@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
       return 0;
    }
    std::string s1 = f->GetEntryString(0x6000, 0x0102);
-   if (s1 == gdcm::GDCM_UNFOUND)
+   if (s1 == GDCM_NAME_SPACE::GDCM_UNFOUND)
    {
       std::cout << " Image doesn't contain any Overlay " << std::endl;
       f->Delete();
@@ -132,7 +132,7 @@ int main(int argc, char *argv[])
 //   Load the pixels in memory.
 // ============================================================
 
-   // We don't use a gdcm::FileHelper, since it rubs out 
+   // We don't use a GDCM_NAME_SPACE::FileHelper, since it rubs out 
    // the 'non image' bits of the pixels...
    
    /// \todo : Previous remark doesn't work if pixels are compressed !
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
  
    std::cout << "Dimensions " << ny << "  " <<ny << std::endl;
 
-   gdcm::DocEntry *p = f->GetDocEntry(f->GetGrPixel(), f->GetNumPixel());
+   GDCM_NAME_SPACE::DocEntry *p = f->GetDocEntry(f->GetGrPixel(), f->GetNumPixel());
    if (p == 0)
       std::cout << "Pixels element  not found" << std::endl;
    else
@@ -197,16 +197,16 @@ int main(int argc, char *argv[])
    uint16_t overlayLocation;
    std::ostringstream str;
    std::string strOverlayLocation;
-   gdcm::File *fileToBuild = 0;
-   gdcm::FileHelper *fh = 0;
+   GDCM_NAME_SPACE::File *fileToBuild = 0;
+   GDCM_NAME_SPACE::FileHelper *fh = 0;
 
       
    while ( (strOvlBitPosition = f->GetEntryString(currentOvlGroup, 0x0102)) 
-            != gdcm::GDCM_UNFOUND )
+            != GDCM_NAME_SPACE::GDCM_UNFOUND )
    {
 
       strOverlayLocation = f->GetEntryString(currentOvlGroup, 0x0200);
-      if ( strOverlayLocation != gdcm::GDCM_UNFOUND )
+      if ( strOverlayLocation != GDCM_NAME_SPACE::GDCM_UNFOUND )
       {
          overlayLocation = atoi(strOverlayLocation.c_str());
          if ( overlayLocation != f->GetGrPixel() )
@@ -224,7 +224,7 @@ int main(int argc, char *argv[])
       std::cout << "Mask :[" <<std::hex << mask << "]" << std::endl;          
       for (int j=0; j<nx*ny ; j++)
       {
-         if( gdcm::Debug::GetDebugFlag() )
+         if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
             if (pixels[j] >= 0x1000)// if it contains at least one overlay bit
                printf("%d : %04x\n",j, pixels[j]);
 
@@ -233,12 +233,12 @@ int main(int argc, char *argv[])
          else
             tabPixels[j] = 128;
       }
-      if( gdcm::Debug::GetDebugFlag() )
+      if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "About to built empty file"  << std::endl;
 
-      fileToBuild = gdcm::File::New();
+      fileToBuild = GDCM_NAME_SPACE::File::New();
 
-      if( gdcm::Debug::GetDebugFlag() )
+      if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "Finish to built empty file"  << std::endl;
 
       str.str("");
@@ -258,12 +258,12 @@ int main(int argc, char *argv[])
       // Other mandatory fields will be set automatically,
       // just before Write(), by FileHelper::CheckMandatoryElements()
 
-      if( gdcm::Debug::GetDebugFlag() )
+      if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "-------------About to built FileHelper"  << std::endl;
 
-      fh = gdcm::FileHelper::New(fileToBuild);
+      fh = GDCM_NAME_SPACE::FileHelper::New(fileToBuild);
 
-      if( gdcm::Debug::GetDebugFlag() )
+      if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "-------------Finish to built FileHelper"  << std::endl;
 
       fh->SetImageData(tabPixels,nx*ny);
index 956d9ae031af6b9134697989f4a4a2956abe6702..8efa49ebca0c18e4462ac5c39558f6729e461676 100755 (executable)
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
    FINISH_USAGE
 
    // ----- Initialize Arguments Manager ------
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
 
    if (argc == 1 || am->ArgMgrDefined("usage"))
    {
@@ -76,10 +76,10 @@ int main(int argc, char *argv[])
       return 0;
    }
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
    if (am->ArgMgrDefined("warning"))
-      gdcm::Debug::WarningOn();
+      GDCM_NAME_SPACE::Debug::WarningOn();
       
    // if unused Param we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -95,10 +95,10 @@ int main(int argc, char *argv[])
    //   Read the input file.
    // ============================================================
 
-   gdcm::File *f;
+   GDCM_NAME_SPACE::File *f;
 
-   f = gdcm::File::New(  );
-   f->SetLoadMode( gdcm::LD_ALL );
+   f = GDCM_NAME_SPACE::File::New(  );
+   f->SetLoadMode( GDCM_NAME_SPACE::LD_ALL );
    f->SetFileName( fileName );
    f->AddForceLoadElement(0x6000,0x3000);  // Overlay Data
    int res = f->Load();
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
    //   Load the Overlays in memory (the first one)
    // ============================================================
 
-   gdcm::DataEntry *e = f->GetDataEntry(0x6000, 0x3000);  
+   GDCM_NAME_SPACE::DataEntry *e = f->GetDataEntry(0x6000, 0x3000);  
    if (e == 0)
    {
       std::cout << " Image doesn't contain any Overlay " << std::endl;
@@ -157,8 +157,8 @@ int main(int argc, char *argv[])
    // ============================================================
    //   Write a new file
    // ============================================================
-   gdcm::File *f2;
-   f2 = gdcm::File::New(  );
+   GDCM_NAME_SPACE::File *f2;
+   f2 = GDCM_NAME_SPACE::File::New(  );
    
    char temp[256];
    
@@ -177,7 +177,7 @@ int main(int argc, char *argv[])
 
    // feel free to add any field (Dicom Data Entry) you like, here.
    // ...
-   gdcm::FileHelper *fh = gdcm::FileHelper::New(f2);
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f2);
        
    fh->SetImageData(outputData,dimXY);
    fh->WriteDcmExplVR(outputFileName);
index dcde6b828afa596745c3cfaf973ed7d6f34a52e4..61a877d193ed555ef3167d7aef01c08c4bf3fbf9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exReadPapyrus.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/08/29 14:39:45 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -63,7 +63,7 @@ bool RemoveFile(const char *source)
 }
 
 // ----------------------------------------------------------------------
-// Here we load a supposed to be Papyrus File (gdcm::File compliant)
+// Here we load a supposed to be Papyrus File (GDCM_NAME_SPACE::File compliant)
 // and then try to get the pixels, using low-level SeqEntry accessors.
 // Since it's not a general purpose Papyrus related program
 // (just a light example) we suppose *everything* is clean
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
 
    // ----- Initialize Arguments Manager ------
    
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage")) 
    {
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
  
    // if unused Params we give up
    if ( am->ArgMgrPrintUnusedLabels() )
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
    }
 
    int loadMode = 0x0; // load everything
-   gdcm::File *f = gdcm::File::New();
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
    f->SetLoadMode( loadMode );
    f->SetFileName( fileName );
    bool res = f->Load();  
@@ -147,7 +147,7 @@ int main(int argc, char *argv[])
    }
 
    // Look for private Papyrus Sequence
-   gdcm::SeqEntry *seqPapyrus= f->GetSeqEntry(0x0041, 0x1050);
+   GDCM_NAME_SPACE::SeqEntry *seqPapyrus= f->GetSeqEntry(0x0041, 0x1050);
    if (!seqPapyrus)
    {
       std::cout << "NOT a Papyrus File : " << fileName <<std::endl;
@@ -155,11 +155,11 @@ int main(int argc, char *argv[])
       return 1;
    }
 
-//   gdcm::FileHelper *original = new gdcm::FileHelper( fileName );
-//   gdcm::File *h = original->GetFile();
+//   GDCM_NAME_SPACE::FileHelper *original = new GDCM_NAME_SPACE::FileHelper( fileName );
+//   GDCM_NAME_SPACE::File *h = original->GetFile();
 
-   //gdcm::FileHelper *f1 = new gdcm::FileHelper(f);
-   gdcm::SQItem *sqi = seqPapyrus->GetFirstSQItem();
+   //GDCM_NAME_SPACE::FileHelper *f1 = new GDCM_NAME_SPACE::FileHelper(f);
+   GDCM_NAME_SPACE::SQItem *sqi = seqPapyrus->GetFirstSQItem();
    if (sqi == 0)
    {
       std::cout << "NO SQItem found within private Papyrus Sequence"
@@ -226,7 +226,7 @@ int main(int argc, char *argv[])
    //  allocate enough room to get the pixels of all images.
    uint8_t *PixelArea = new uint8_t[lgrImage*nbImages];
    uint8_t *currentPosition = PixelArea;
-   gdcm::DataEntry *pixels;
+   GDCM_NAME_SPACE::DataEntry *pixels;
 
    // declare and open the file
    std::ifstream *Fp;
@@ -274,9 +274,9 @@ int main(int argc, char *argv[])
 
    // build up a new File, with file info + images info + global pixel area.
 
-   std::string NumberOfFrames = gdcm::Util::Format("%d", nbImages); 
+   std::string NumberOfFrames = GDCM_NAME_SPACE::Util::Format("%d", nbImages); 
 
-   gdcm::File *n = gdcm::File::New();
+   GDCM_NAME_SPACE::File *n = GDCM_NAME_SPACE::File::New();
 
    n->InsertEntryString(MediaStSOPinstUID,  0x0002,0x0002);
   // Whe keep default gdcm Transfer Syntax (Explicit VR Little Endian)
@@ -297,7 +297,7 @@ int main(int argc, char *argv[])
    n->InsertEntryString(PixelRepresentation,0x0028,0x0103);
 
    // create the file
-   gdcm::FileHelper *file = gdcm::FileHelper::New(n);
+   GDCM_NAME_SPACE::FileHelper *file = GDCM_NAME_SPACE::FileHelper::New(n);
 
    file->SetImageData(PixelArea,lgrImage*nbImages);
    file->SetWriteTypeToDcmExplVR();
index 7599959c0b7a2d03a79dd05cb881ffd5b2941446..3d53160b1a63617565ff17c7c6b751b9f1723c39 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exReadWriteFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:28 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -56,10 +56,10 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
    std::string filename = argv[1];
    std::string output   = argv[2];
 
-   // First, let's create a gdcm::File
+   // First, let's create a GDCM_NAME_SPACE::File
    // that will contain all the Dicom fields but the Pixels Element
 
-   gdcm::File *f1= gdcm::File::New( );
+   GDCM_NAME_SPACE::File *f1= GDCM_NAME_SPACE::File::New( );
    f1->SetFileName( filename );
    f1->Load();
 
@@ -79,18 +79,18 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
              << "--- Display only human readable values -----------------------"
              << std::endl;
 
-   gdcm::DataEntry *dataEntry;
+   GDCM_NAME_SPACE::DataEntry *dataEntry;
    std::string value;
-   gdcm::VRKey vr;   // value representation
+   GDCM_NAME_SPACE::VRKey vr;   // value representation
    std::string vm;   // value multiplicity
    std::string name; // held in the Dicom Dictionary
 
 
-   gdcm::DocEntry *d = f1->GetFirstEntry();
+   GDCM_NAME_SPACE::DocEntry *d = f1->GetFirstEntry();
    while( d )
    {
       // We skip SeqEntries, since user cannot do much with them
-      if ( !(dynamic_cast<gdcm::SeqEntry*>(d))
+      if ( !(dynamic_cast<GDCM_NAME_SPACE::SeqEntry*>(d))
       // We skip Shadow Groups, since nobody knows what they mean
            && !( d->GetGroup()%2 ) )
      {      
@@ -100,7 +100,7 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
 
          // If user wants to get info about the entry
          // (he is sure, here that DocEntry is a DataEntry)
-         dataEntry = dynamic_cast<gdcm::DataEntry *>(d);
+         dataEntry = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d);
          // Let's be carefull -maybe he commented out some previous line-
          if (!dataEntry)
             continue;
@@ -217,8 +217,8 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
    
    // Hope now he knows enought about the image ;-)
 
-   // First, create a gdcm::FileHelper
-   gdcm::FileHelper *fh1 = gdcm::FileHelper::New(f1);
+   // First, create a GDCM_NAME_SPACE::FileHelper
+   GDCM_NAME_SPACE::FileHelper *fh1 = GDCM_NAME_SPACE::FileHelper::New(f1);
 
    // Load the pixels, transforms LUT (if any) into RGB Pixels 
    uint8_t *imageData = fh1->GetImageData();
@@ -253,7 +253,7 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
  
    // ------ User wants write a new image without shadow groups -------------
 
-   gdcm::FileHelper *copy = gdcm::FileHelper::New( );
+   GDCM_NAME_SPACE::FileHelper *copy = GDCM_NAME_SPACE::FileHelper::New( );
    copy->SetFileName( output );
    copy->Load();
  
@@ -261,12 +261,12 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
    while(d)
    {
       // We skip SeqEntries, since user cannot do much with them
-      if ( !(dynamic_cast<gdcm::SeqEntry*>(d))
+      if ( !(dynamic_cast<GDCM_NAME_SPACE::SeqEntry*>(d))
       // We skip Shadow Groups, since nobody knows what they mean
            && !( d->GetGroup()%2 ) )
       { 
 
-         if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
+         if ( GDCM_NAME_SPACE::DataEntry *de = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(d) )
          {              
             copy->GetFile()->InsertEntryBinArea( de->GetBinArea(),de->GetLength(),
                                                  de->GetGroup(),de->GetElement(),
@@ -274,7 +274,7 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <<std::endl;
          }
          else
          {
-          // We skip gdcm::SeqEntries
+          // We skip GDCM_NAME_SPACE::SeqEntries
          }
       }
       d = f1->GetNextEntry();
index fb48ad03075a4d189f254810546fa9216435c5b3..e20309d406bd3e881ce8d15a531c10a1395670fe 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/14 15:55:17 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -22,7 +22,7 @@
 
 int main(int argc, char *argv[])
 {  
-   gdcm::SerieHelper *s;
+   GDCM_NAME_SPACE::SerieHelper *s;
   
    std::string dirName; 
    if (argc > 1) 
@@ -33,15 +33,15 @@ int main(int argc, char *argv[])
    }
 
    if (argc > 2)
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
 
   
    std::cout << "Dir Name :[" << dirName << "]" << std::endl;
 
-   s = gdcm::SerieHelper::New();
-   s->SetLoadMode(gdcm::LD_ALL);     // Load everything for each File
-   //gdcm::TagKey t(0x0020,0x0013);
-   //s->AddRestriction(t, "340", gdcm::GDCM_LESS); // Keep only files where
+   s = GDCM_NAME_SPACE::SerieHelper::New();
+   s->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);     // Load everything for each File
+   //GDCM_NAME_SPACE::TagKey t(0x0020,0x0013);
+   //s->AddRestriction(t, "340", GDCM_NAME_SPACE::GDCM_LESS); // Keep only files where
                                               // restriction is true
    s->SetDirectory(dirName, true); // true : recursive exploration
 
@@ -53,8 +53,8 @@ int main(int argc, char *argv[])
              << std::endl;
 
    int nbFiles;
-   // For all the Single SerieUID Files Sets of the gdcm::Serie
-   gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet();
+   // For all the Single SerieUID Files Sets of the GDCM_NAME_SPACE::Serie
+   GDCM_NAME_SPACE::FileList *l = s->GetFirstSingleSerieUIDFileSet();
    while (l)
    { 
       nbFiles = l->size() ;
@@ -78,7 +78,7 @@ int main(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 5f0dcfb7f2bca0b856815ef6b74373cdad58e0f8..37daea6a4d5a6f4036c3e1f0cd9c09c7b684f804 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exXCoherentFileSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/07/26 17:05:25 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  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
@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
    
    // ----- Initialize Arguments Manager ------
   
-   gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+   GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
   
    if (am->ArgMgrDefined("usage") || argc == 1) 
    {
@@ -58,17 +58,17 @@ int main(int argc, char *argv[])
    }
 
    if (am->ArgMgrDefined("debug"))
-      gdcm::Debug::DebugOn();
+      GDCM_NAME_SPACE::Debug::DebugOn();
       
-   int loadMode = gdcm::LD_ALL;
+   int loadMode = GDCM_NAME_SPACE::LD_ALL;
    if ( am->ArgMgrDefined("noshadowseq") )
-      loadMode |= gdcm::LD_NOSHADOWSEQ;
+      loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
    else 
    {
       if ( am->ArgMgrDefined("noshadow") )
-         loadMode |= gdcm::LD_NOSHADOW;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
       if ( am->ArgMgrDefined("noseq") )
-         loadMode |= gdcm::LD_NOSEQ;
+         loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
    }
 
    const char *dirName  = am->ArgMgrGetString("dirin");
@@ -113,15 +113,20 @@ int main(int argc, char *argv[])
    delete am;  // ------ we don't need Arguments Manager any longer ------
    
                  
-   gdcm::SerieHelper *s;
+   GDCM_NAME_SPACE::SerieHelper *s;
   
-   s = gdcm::SerieHelper::New();
-   s->SetLoadMode(gdcm::LD_ALL);     // Load everything for each File
-   //gdcm::TagKey t(0x0020,0x0013);
-   //s->AddRestriction(t, "340", gdcm::GDCM_LESS); // Keep only files where
+   s = GDCM_NAME_SPACE::SerieHelper::New();
+   s->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);     // Load everything for each File
+   //GDCM_NAME_SPACE::TagKey t(0x0020,0x0013);
+   //s->AddRestriction(t, "340", GDCM_NAME_SPACE::GDCM_LESS); // Keep only files where
                                               // restriction is true
    s->SetDirectory(dirName, true); // true : recursive exploration
 
+   // The Dicom file set is splitted into several 'Single SerieUID Files Sets'
+   // (a 'Single SerieUID Files Set' per SerieUID)
+   // In some cases, it's not enough, since, in some cases
+   // we can find scout view with the same SerieUID
+   
 /*
    std::cout << " ---------------------------------------- "
              << "'Single UID' Filesets found in :["
@@ -133,11 +138,11 @@ int main(int argc, char *argv[])
 */
    int nbFiles;
    std::string fileName;
-   // For all the Single SerieUID Files Sets of the gdcm::Serie
-   gdcm::FileList *l = s->GetFirstSingleSerieUIDFileSet();
+   // For all the Single SerieUID Files Sets of the GDCM_NAME_SPACE::Serie
+   GDCM_NAME_SPACE::FileList *l = s->GetFirstSingleSerieUIDFileSet();
    
-   gdcm::XCoherentFileSetmap xcm;
-   while (l)
+   GDCM_NAME_SPACE::XCoherentFileSetmap xcm;
+   while (l) // for each 'Single SerieUID FileSet'
    { 
       nbFiles = l->size() ;
       if ( l->size() > 3 ) // Why not ? Just an example, for testing
@@ -154,7 +159,7 @@ int main(int argc, char *argv[])
          if (groupelem != 0)
             xcm = s->SplitOnTagValue(l, groupelem[0],groupelem[1] );
     
-         for (gdcm::XCoherentFileSetmap::iterator i = xcm.begin();
+         for (GDCM_NAME_SPACE::XCoherentFileSetmap::iterator i = xcm.begin();
                                                   i != xcm.end();
                                                 ++i)
          {
@@ -175,7 +180,7 @@ int main(int argc, char *argv[])
    
            //s->OrderFileList((*i).second);  // sort the XCoherent Fileset
     
-            for (gdcm::FileList::iterator it =  ((*i).second)->begin();
+            for (GDCM_NAME_SPACE::FileList::iterator it =  ((*i).second)->begin();
                                           it != ((*i).second)->end();
                                         ++it)
             {
index 7a8d88da775953c1d80980273d47ec2f3cb846c9..11231874409f3f763b271cf980ce01cf473ddf49 100644 (file)
--- a/PACKAGER
+++ b/PACKAGER
@@ -35,7 +35,7 @@ Here is the checklist when freezing a version of gdcm:
        - Binary distribution:
          cd $GDCMHOME
          make clean
-            [ or you migth get some complains about the function 
+            [ or you might get some complains about the function 
               PyVTKClass_vtkGdcmReaderNew being multiply defined: this is
               because of the loose definition of vtkSources in setup.py
               in which the usage of the glob function will produce a link
index 8f810d18d872e07ef247d93937fcb65b24e492ca..959b5f1ab03f24f9a6d72b5ba9f1a0931698034d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestBug.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:03:00 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2007/05/23 14:18:06 $
+  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
@@ -24,8 +24,8 @@
 int TestBug(int argc, char *argv[])
 {  
 std::cout << "==========test" <<std::endl;
-  gdcm::File *f;
-  f = gdcm::File::New();
+  GDCM_NAME_SPACE::File *f;
+  f = GDCM_NAME_SPACE::File::New();
   
    if (argc > 1)
       f->SetFileName( argv[1] );
index f98786603d86b14575a4bb6a01d07b5671c4870a..642d5c0c72bfac99f9118029648620f2ea3c010e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCommand.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/30 08:48:15 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18: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
@@ -22,7 +22,7 @@
 #include <iostream>
 #include <typeinfo>
 
-class CommandTest : public gdcm::Command
+class CommandTest : public GDCM_NAME_SPACE::Command
 {
    gdcmTypeMacro(CommandTest);
    gdcmNewMacro(CommandTest);
@@ -46,7 +46,7 @@ private:
 };
 
 static bool fctExecuted = false;
-void CallbackTest(gdcm::CallbackCommand *cmd)
+void CallbackTest(GDCM_NAME_SPACE::CallbackCommand *cmd)
 {
    std::cout << "Test class command... for "
              << typeid(cmd->GetObject()).name()
@@ -60,31 +60,31 @@ int TestCommand(int , char *[])
 {
    int error=0;
 
-   gdcm::CallbackCommand *cbk = gdcm::CallbackCommand::New();
+   GDCM_NAME_SPACE::CallbackCommand *cbk = GDCM_NAME_SPACE::CallbackCommand::New();
    cbk->SetCallback(CallbackTest);
-   gdcm::CommandManager::SetCommand(NULL,1,cbk);
+   GDCM_NAME_SPACE::CommandManager::SetCommand(NULL,1,cbk);
    cbk->Delete();
 
    CommandTest *cmd = CommandTest::New();
-   gdcm::CommandManager::SetCommand(NULL,2,cmd);
+   GDCM_NAME_SPACE::CommandManager::SetCommand(NULL,2,cmd);
    cmd->Delete();
 
    std::cout << "Test on callback function execution\n";
-   gdcm::CommandManager::ExecuteCommand(NULL,1,"Test on callback function");
+   GDCM_NAME_SPACE::CommandManager::ExecuteCommand(NULL,1,"Test on callback function");
    if(!fctExecuted)
       std::cout<<"... Failed\n";
    error+=!fctExecuted;
    std::cout << std::endl;
 
    std::cout << "Test on command class execution\n";
-   gdcm::CommandManager::ExecuteCommand(NULL,2,"Test on command class");
+   GDCM_NAME_SPACE::CommandManager::ExecuteCommand(NULL,2,"Test on command class");
    if(!cmd->IsExecuted())
       std::cout<<"... Failed\n";
    error+=!cmd->IsExecuted();
    std::cout << std::endl;
 
    std::cout << "Test on unset command execution\n";
-   gdcm::CommandManager::ExecuteCommand(NULL,3,"Test on callback function");
+   GDCM_NAME_SPACE::CommandManager::ExecuteCommand(NULL,3,"Test on callback function");
    std::cout << std::endl;
 
    return error;
index 7eb6a17ffc6b04a8daee99af329c76f046f901a8..8eed45308d82228ce4d9943ab3d0034ce167d4e6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDicomDirElement.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:30 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2007/05/23 14:18:06 $
+  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
@@ -23,7 +23,7 @@
 
 int TestDicomDirElement(int , char *[])
 {
-   gdcm::DicomDirElement *ddElt = gdcm::DicomDirElement::New();
+   GDCM_NAME_SPACE::DicomDirElement *ddElt = GDCM_NAME_SPACE::DicomDirElement::New();
    if (ddElt == 0)
    {
       std::cout << "new DicomDirElement failed" << std::endl;
index 2a85a6c85e1d84e08172234501ded0ccec254132..aa6b1ffd5f57106521535e3c5dcd0d923497cd49 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDict.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 17:08:54 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/23 14:18: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
@@ -28,7 +28,7 @@ int TestDict(int , char *[])
 
    std::cout << "----- Test Default Dicom Dictionary : ----------" << std::endl;
    // Just to improve test coverage:
-   gdcm::Dict *tempDict = gdcm::Dict::New("dummyFileNameThatDoesntExist");
+   GDCM_NAME_SPACE::Dict *tempDict = GDCM_NAME_SPACE::Dict::New("dummyFileNameThatDoesntExist");
    // Default dict is supposed to be used.
    tempDict->Print();
    std::cout << "---- end Test Default Dicom Dictionary : -------" << std::endl;
@@ -39,7 +39,7 @@ int TestDict(int , char *[])
  
    // Print the DictSet
    std::cout<<"#######################################################\n";
-   gdcm::DictSet *dicts=gdcm::Global::GetDicts();
+   GDCM_NAME_SPACE::DictSet *dicts=GDCM_NAME_SPACE::Global::GetDicts();
    if(!dicts)
    {
       std::cout<<"DictSet hasn't be found... Failed\n";
@@ -48,7 +48,7 @@ int TestDict(int , char *[])
 
    std::cout<<"DictSet content :\n";
 
-   gdcm::Dict *d = dicts->GetFirstDict();
+   GDCM_NAME_SPACE::Dict *d = dicts->GetFirstDict();
    if (!d)
    {
       std::cout << "Dictset is empty" << std::endl;
@@ -68,7 +68,7 @@ int TestDict(int , char *[])
 
    // Print the Dict (public)
    std::cout<<"#######################################################\n";
-   gdcm::Dict *pubDict=dicts->GetDefaultPubDict();
+   GDCM_NAME_SPACE::Dict *pubDict=dicts->GetDefaultPubDict();
    if(!pubDict)
    {
       std::cout<<"The public Dict hasn't be found... Failed\n";
@@ -81,8 +81,8 @@ int TestDict(int , char *[])
    std::cout<<"#######################################################\n";
    const int ENTRY_GR = 0x10;
    const int ENTRY_EL = 0x20;
-   gdcm::TagKey key = gdcm::DictEntry::TranslateToKey(ENTRY_GR,ENTRY_EL);
-   gdcm::DictEntry *entry=pubDict->GetEntry(ENTRY_GR,ENTRY_EL);
+   GDCM_NAME_SPACE::TagKey key = GDCM_NAME_SPACE::DictEntry::TranslateToKey(ENTRY_GR,ENTRY_EL);
+   GDCM_NAME_SPACE::DictEntry *entry=pubDict->GetEntry(ENTRY_GR,ENTRY_EL);
    if(!entry)
    {
       std::cout<<"The DictEntry hasn't be found... Failed\n";
index 47add5e4d81a36103500af421a1fd29f7dba1cb4..daa6f700c44948a6077a34166b2526fa33043eb8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDictGroupName.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:30 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18: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
@@ -21,7 +21,7 @@
 
 #include <iomanip>
 
-int CompareDictGroupName(gdcm::DictGroupName *groupName,
+int CompareDictGroupName(GDCM_NAME_SPACE::DictGroupName *groupName,
                          uint16_t group,std::string ref)
 {
    std::string val = groupName->GetName(group);
@@ -34,7 +34,7 @@ int CompareDictGroupName(gdcm::DictGroupName *groupName,
 
 int TestDictGroupName(int , char *[])
 {
-   gdcm::DictGroupName *groupName = gdcm::DictGroupName::New();
+   GDCM_NAME_SPACE::DictGroupName *groupName = GDCM_NAME_SPACE::DictGroupName::New();
    groupName->Print( std::cout );
 
    int ret = 0;
@@ -42,7 +42,7 @@ int TestDictGroupName(int , char *[])
    std::cout << std::endl;
    ret += CompareDictGroupName(groupName,0x0002,"Meta Elements");
    ret += CompareDictGroupName(groupName,0x7fe0,"Pixels");
-   ret += CompareDictGroupName(groupName,0x0007,gdcm::GDCM_UNFOUND);
+   ret += CompareDictGroupName(groupName,0x0007,GDCM_NAME_SPACE::GDCM_UNFOUND);
 
    groupName->Delete();
 
index 789a43b20d1a70c711e0adb814dafbc1dbe4c439..24168671cce4468302b5e43852b6a5b20e7dbedd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestImageSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:05:03 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/05/23 14:18:06 $
+  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
 #include <sstream>
 #include <list>
 
-typedef std::list<gdcm::File *> FileList;
+typedef std::list<GDCM_NAME_SPACE::File *> FileList;
 
 // If there is sameSerie, sameStudy is set to true
 int CompareImages(FileList &list, bool sameSerie, bool sameStudy)
 {
-   gdcm::Debug::DebugOn();
+   GDCM_NAME_SPACE::Debug::DebugOn();
 
    if( sameSerie )
       sameStudy = true;
 
-   gdcm::DataEntry *entry;
+   GDCM_NAME_SPACE::DataEntry *entry;
    std::map<std::string, int> instUID;
    std::map<std::string, int> mediaUID;
    std::map<std::string, int> serieUID;
@@ -146,7 +146,7 @@ void ClearList(FileList &list)
    list.clear();
 }
 
-gdcm::File *WriteImage(gdcm::File *file, const std::string &fileName)
+GDCM_NAME_SPACE::File *WriteImage(GDCM_NAME_SPACE::File *file, const std::string &fileName)
 {
    // Create a 256x256x1 image 8 bits, unsigned 
    std::ostringstream str;
@@ -182,7 +182,7 @@ gdcm::File *WriteImage(gdcm::File *file, const std::string &fileName)
    memset(imageData,0,size);
 
 // Write the image
-   gdcm::FileHelper *hlp = gdcm::FileHelper::New(file);
+   GDCM_NAME_SPACE::FileHelper *hlp = GDCM_NAME_SPACE::FileHelper::New(file);
    hlp->SetImageData(imageData,size);
    hlp->SetWriteTypeToDcmExplVR();
    if( !hlp->Write(fileName) )
@@ -198,7 +198,7 @@ gdcm::File *WriteImage(gdcm::File *file, const std::string &fileName)
    hlp->Delete();
 
 // Read the written image
-   gdcm::File *reread = gdcm::File::New(  );
+   GDCM_NAME_SPACE::File *reread = GDCM_NAME_SPACE::File::New(  );
    reread->SetFileName( fileName );
    reread->Load();
    if( !reread->IsReadable() )
@@ -233,8 +233,8 @@ int TestImageSet(int argc, char *argv[])
              << "           to different Series within the same Study" << std::endl;
    std::cout << std::endl << std::endl;
 
-   gdcm::File *file;
-   gdcm::File *newFile;
+   GDCM_NAME_SPACE::File *file;
+   GDCM_NAME_SPACE::File *newFile;
    FileList fileList;
    int i;
 
@@ -248,13 +248,13 @@ int TestImageSet(int argc, char *argv[])
    {
       std::ostringstream fileName;
       fileName << "FileSeq" << i << ".dcm";
-      file = gdcm::File::New();
+      file = GDCM_NAME_SPACE::File::New();
       // It's up to the user to initialize Serie UID and Study UID
       // Study Instance UID
-      studyUID = gdcm::Util::CreateUniqueUID();
+      studyUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
       file->InsertEntryString(studyUID, 0x0020, 0x000d, "UI");
       // Series Instance UID
-      serieUID = gdcm::Util::CreateUniqueUID();
+      serieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
       file->InsertEntryString(serieUID, 0x0020, 0x000e, "UI");
 
       newFile = WriteImage(file, fileName.str());
@@ -280,13 +280,13 @@ int TestImageSet(int argc, char *argv[])
 
    // Step 2 : Same Serie & Study
    fileList.clear();
-   studyUID = gdcm::Util::CreateUniqueUID();
-   serieUID = gdcm::Util::CreateUniqueUID();
+   studyUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
+   serieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
    for(i = 0;i < 4;i++)
    {
       std::ostringstream fileName;
       fileName << "FileSeq" << i << ".dcm";
-      file = gdcm::File::New();
+      file = GDCM_NAME_SPACE::File::New();
       file->InsertEntryString(studyUID, 0x0020, 0x000d, "UI");
       file->InsertEntryString(serieUID, 0x0020, 0x000e, "UI");
 
@@ -313,14 +313,14 @@ int TestImageSet(int argc, char *argv[])
 
    // Step 3 : Same Study
    fileList.clear();
-   serieUID = gdcm::Util::CreateUniqueUID();
+   serieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
    for(i = 0;i < 4;i++)
    {
       std::ostringstream fileName;
       fileName << "FileSeq" << i << ".dcm";
-      file = gdcm::File::New();
+      file = GDCM_NAME_SPACE::File::New();
       file->InsertEntryString(studyUID, 0x0020, 0x000d, "UI");
-      serieUID = gdcm::Util::CreateUniqueUID();
+      serieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
       file->InsertEntryString(serieUID, 0x0020, 0x000e, "UI");
       newFile = WriteImage(file, fileName.str());
       if( !newFile )
index b757561ef0ee61203ae01157715a2296a686e25c..9c608cd78de4eae5c01bbab43c4279426d4195f1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestTS.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:31 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18: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
@@ -20,7 +20,7 @@
 
 int TestTS(int , char *[])
 {
-   gdcm::TS *ts = gdcm::TS::New();
+   GDCM_NAME_SPACE::TS *ts = GDCM_NAME_SPACE::TS::New();
    // There should be ~150 entries
    ts->Print( std::cout );
 
@@ -70,10 +70,10 @@ int TestTS(int , char *[])
    std::cout << ts->IsJPEG( "1.2.840.10008.1.2.5") << std::endl;
    std::cout << ts->GetSpecialTransferSyntax( 
                 ts->GetSpecialTransferSyntax( "1.2.840.10008.1.2.5")) << std::endl;
-   std::cout << gdcm::Global::GetTS()->IsRLELossless( "1.2.840.10008.1.2.5" )  
+   std::cout << GDCM_NAME_SPACE::Global::GetTS()->IsRLELossless( "1.2.840.10008.1.2.5" )  
              << std::endl;
 
-   bool ret = ts->GetValue( "" ) != gdcm::GDCM_UNFOUND;
+   bool ret = ts->GetValue( "" ) != GDCM_NAME_SPACE::GDCM_UNFOUND;
 
    ts->Delete();
 
index ef1ab6288c9329cca4658bbe5afb851924b004f0..f7b2952c3b6bec67c3d29166fd269f28dbfc151e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/31 16:25:09 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2007/05/23 14:18:06 $
+  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
@@ -33,7 +33,7 @@ int TestUtil(int , char *[])
    float flt;
    double dbl=1.0;
 
-   std::cout << "This is gdcm version: " << gdcm::Util::GetVersion() << std::endl;
+   std::cout << "This is gdcm version: " << GDCM_NAME_SPACE::Util::GetVersion() << std::endl;
 
    std::cout << "---------- uint16 : " << std::dec << u16 << " = 0x" 
              << std::hex << u16 << std::endl;
@@ -100,7 +100,7 @@ int TestUtil(int , char *[])
 
    // CreateCleanString
    std::string x = "a#@-bc\tdef";
-   std::string y = gdcm::Util::CreateCleanString(x);
+   std::string y = GDCM_NAME_SPACE::Util::CreateCleanString(x);
    std::cout << "Clean : [" << x <<"] --> [" << y <<"]" << std::endl;
 
 
@@ -108,12 +108,12 @@ int TestUtil(int , char *[])
    x = "abcd#@-wyz*@-lmn#@-uvw-#@ijk";
    std::cout << "in [" << x << "] " << std::endl; 
    std::cout << " - count '#@-' : " 
-             << gdcm::Util::CountSubstring(x, "#@-") << std::endl;
+             << GDCM_NAME_SPACE::Util::CountSubstring(x, "#@-") << std::endl;
 
    // Tokenize : tokens are '#', '@', '-'
    std::vector<std::string> tokens;
    std::cout << " - use tokens '#@-' :" << std::endl;
-   gdcm::Util::Tokenize (x, tokens, "#@-");
+   GDCM_NAME_SPACE::Util::Tokenize (x, tokens, "#@-");
    for (unsigned int ui=0; ui<tokens.size();ui++)
    {
       std::cout << "[" << tokens[ui] << "]" << std::endl;
@@ -121,21 +121,21 @@ int TestUtil(int , char *[])
    tokens.clear();
 
    // Time 
-   std::cout << "Time:" << gdcm::Util::GetCurrentDateTime() << std::endl;
+   std::cout << "Time:" << GDCM_NAME_SPACE::Util::GetCurrentDateTime() << std::endl;
 
    // Processor ID
    unsigned int processorID;;
-   processorID = gdcm::Util::GetCurrentProcessID();
+   processorID = GDCM_NAME_SPACE::Util::GetCurrentProcessID();
    std::cout << "Current Processor ID " <<  processorID << std::endl;
 
    // MAC Adress
-   std::cout << "Mac Address:" << gdcm::Util::GetMACAddress() << std::endl;
+   std::cout << "Mac Address:" << GDCM_NAME_SPACE::Util::GetMACAddress() << std::endl;
 
    // Unique UID test
    std::string gdcmUid;
    for (i=0; i<10; i++)
    {
-      gdcmUid = gdcm::Util::CreateUniqueUID();
+      gdcmUid = GDCM_NAME_SPACE::Util::CreateUniqueUID();
       std::cout << "Current UID for gdcm " <<  gdcmUid << std::endl;
    }
    
@@ -144,48 +144,48 @@ int TestUtil(int , char *[])
    std::string a = "MONOCHROME1";
    a += '\0';
    std::string b = "MONOCHROME1 ";
-   std::string c = gdcm::Util::DicomString("MONOCHROME1");
+   std::string c = GDCM_NAME_SPACE::Util::DicomString("MONOCHROME1");
    std::string d = "MONOCHROME1";
 
-   if( !gdcm::Util::DicomStringEqual(a,ref) ) 
+   if( !GDCM_NAME_SPACE::Util::DicomStringEqual(a,ref) ) 
       return 1;
-   if( !gdcm::Util::DicomStringEqual(b,ref) ) 
+   if( !GDCM_NAME_SPACE::Util::DicomStringEqual(b,ref) ) 
       return 1;
-   if( !gdcm::Util::DicomStringEqual(c,ref) ) 
+   if( !GDCM_NAME_SPACE::Util::DicomStringEqual(c,ref) ) 
       return 1;
-   if(  gdcm::Util::DicomStringEqual(d,ref) ) 
+   if(  GDCM_NAME_SPACE::Util::DicomStringEqual(d,ref) ) 
       return 1;
 
 // ----------------------------------------------------------
-// Let's test gdcm::Debug, now.
-    std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag() <<std::endl;
-    gdcm::Debug::SetOutputFileName ("DummyFileNameToWriteTo.txt");
+// Let's test GDCM_NAME_SPACE::Debug, now.
+    std::cout << "GetDebugFlag : " << GDCM_NAME_SPACE::Debug::GetDebugFlag() <<std::endl;
+    GDCM_NAME_SPACE::Debug::SetOutputFileName ("DummyFileNameToWriteTo.txt");
     std::cout << "We set a Debug file"   <<std::endl;
-    if ( !gdcm::Debug::GetDebugFlag() )
+    if ( !GDCM_NAME_SPACE::Debug::GetDebugFlag() )
     {
        std::cout << "Debug Flag should be TRUE... " << std::endl;
        return 1;
     }
-    std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag()<<std::endl;
-    gdcm::Debug::SetDebugFlag ( false );
-    std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag()<<std::endl;
-    gdcm::Debug::SetOutputFileName ("DummyFileNameToWriteTo2.txt");    
+    std::cout << "GetDebugFlag : " << GDCM_NAME_SPACE::Debug::GetDebugFlag()<<std::endl;
+    GDCM_NAME_SPACE::Debug::SetDebugFlag ( false );
+    std::cout << "GetDebugFlag : " << GDCM_NAME_SPACE::Debug::GetDebugFlag()<<std::endl;
+    GDCM_NAME_SPACE::Debug::SetOutputFileName ("DummyFileNameToWriteTo2.txt");    
 
     std::string s1;
     s1="azertyuiop";
-    std::cout << s1 << " --> MD5 : " << gdcm::Util::ConvertToMD5(s1)
+    std::cout << s1 << " --> MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1)
               <<std::endl;
     s1="azertyuiom";    
-    std::cout <<  s1 << " --> MD5 : " << gdcm::Util::ConvertToMD5(s1)
+    std::cout <<  s1 << " --> MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1)
               <<std::endl;
     s1="azertyuipo";
-    std::cout <<  s1 << " --> MD5 : " << gdcm::Util::ConvertToMD5(s1)
+    std::cout <<  s1 << " --> MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1)
               <<std::endl;
     s1="qzertyuiop";
-    std::cout <<  s1 << " --> MD5 : " << gdcm::Util::ConvertToMD5(s1)
+    std::cout <<  s1 << " --> MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1)
               <<std::endl; 
     s1="zaertyuiop";
-    std::cout <<  s1 << " --> MD5 : " << gdcm::Util::ConvertToMD5(s1)
+    std::cout <<  s1 << " --> MD5 : " << GDCM_NAME_SPACE::Util::ConvertToMD5(s1)
               <<std::endl;         
    return 0;
 }
index ab07e8940d07bb38314aa990e137a5d600c2c2ef..46ab1af17d68b19a2c54ba003ed0cbfc988f49da 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestVR.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 12:15:54 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/23 14:18: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
@@ -21,9 +21,9 @@
 int TestVR(int , char *[])
 {
    int error = 0;
-   gdcm::VR *vr = gdcm::VR::New();
+   GDCM_NAME_SPACE::VR *vr = GDCM_NAME_SPACE::VR::New();
  
-   gdcm::Debug::DebugOn();
+   GDCM_NAME_SPACE::Debug::DebugOn();
 
    // We should test the 27 entries ...
    vr->Print( std::cout );
@@ -54,7 +54,7 @@ int TestVR(int , char *[])
       std::cerr << "' /' is recognized as a valid VR" << std::endl;
       error++;
    }
-   if( vr->IsValidVR( gdcm::GDCM_VRUNKNOWN ) )
+   if( vr->IsValidVR( GDCM_NAME_SPACE::GDCM_VRUNKNOWN ) )
    {
       std::cerr << "'  ' is recognized as a valid VR" << std::endl;
       error++;
index c96bcfe05068bbf563e8aabafb0db8f0f5afa6b7..39a3a3af40e46986758109e1ba3b9a238a1ea254 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWriteSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/10/23 15:49:14 $
-  Version:   $Revision: 1.50 $
+  Date:      $Date: 2007/05/23 14:18:06 $
+  Version:   $Revision: 1.51 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -118,10 +118,10 @@ int WriteSimple(Image &img)
 // Step 1 : Create an empty FileHelper
 
    std::cout << "        1...";
-   gdcm::FileHelper *fileH = gdcm::FileHelper::New();
+   GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New();
  
  //  Get the (empty) image header.  
-   gdcm::File *fileToBuild = fileH->GetFile();
+   GDCM_NAME_SPACE::File *fileToBuild = fileH->GetFile();
    std::ostringstream str;
 
    // Set the image size
@@ -157,7 +157,7 @@ int WriteSimple(Image &img)
    // Set the pixel representation
    str.str("");
    str << img.sign;
-   fileToBuild->InsertEntryString(str.str(),0x0028,0x0103, "US"); // Pixel Representation
+   fileToBuild->InsertEntryString(str.str(),0x0028,0x0103,"US"); // Pixel Representation
 
    fileName << "-" << img.componentSize;
    if(img.sign == 0)
@@ -165,7 +165,7 @@ int WriteSimple(Image &img)
    else
       fileName << "S";
  
-   fileToBuild->InsertEntryString("0",0x0008,0x0000, "UL"); // Should be removed
+   fileToBuild->InsertEntryString("0",0x0008,0x0000,"UL"); // Should be removed
                                                             // except for ACR 
    switch (img.writeMode)
    {
@@ -184,7 +184,7 @@ int WriteSimple(Image &img)
    // Set the samples per pixel
    str.str("");
    str << img.components;
-   fileToBuild->InsertEntryString(str.str(),0x0028,0x0002, "US"); // Samples per Pixel
+   fileToBuild->InsertEntryString(str.str(),0x0028,0x0002,"US"); // Samples per Pixel
 
 // Step 2 : Create the output image
    std::cout << "2...";
@@ -265,24 +265,24 @@ int WriteSimple(Image &img)
 // Step 5 : Read the written image
    std::cout << "5..." << std::endl;
    // old form.
-   //gdcm::FileHelper *reread = new gdcm::FileHelper( fileName.str() );
+   //GDCM_NAME_SPACE::FileHelper *reread = new GDCM_NAME_SPACE::FileHelper( fileName.str() );
    // Better use :
-   gdcm::File *f = gdcm::File::New( );
-   f->SetLoadMode(gdcm::LD_ALL);
+   GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New( );
+   f->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);
    f->SetFileName( fileName.str() );
    
    //reread->SetFileName( fileName.str() );
-   //reread->SetLoadMode(gdcm::LD_ALL); // Load everything
+   //reread->SetLoadMode(GDCM_NAME_SPACE::LD_ALL); // Load everything
                            // Possible values are 
-                           //              gdcm::LD_ALL, 
-                           //              gdcm::LD_NOSEQ, 
-                           //              gdcm::LD_NOSHADOW,
-                           //              gdcm::LD_NOSEQ|gdcm::LD_NOSHADOW, 
-                           //              gdcm::LD_NOSHADOWSEQ
+                           //              GDCM_NAME_SPACE::LD_ALL, 
+                           //              GDCM_NAME_SPACE::LD_NOSEQ, 
+                           //              GDCM_NAME_SPACE::LD_NOSHADOW,
+                           //              GDCM_NAME_SPACE::LD_NOSEQ|GDCM_NAME_SPACE::LD_NOSHADOW, 
+                           //              GDCM_NAME_SPACE::LD_NOSHADOWSEQ
    
    f->Load();
   // reread->Load();
-   gdcm::FileHelper *reread = gdcm::FileHelper::New( f );  
+   GDCM_NAME_SPACE::FileHelper *reread = GDCM_NAME_SPACE::FileHelper::New( f );  
 
    reread->Print();
 
@@ -398,7 +398,7 @@ int TestWriteSimple(int argc, char *argv[])
       return 1;
    }
 
-  // gdcm::Debug::DebugOn();
+  // GDCM_NAME_SPACE::Debug::DebugOn();
 
    int ret=0;
    int i=0;
index 24a781ac135076a6252eaa1bd857ab3818043fa8..e4b7528abb68499b8081ae0f4235f97e1dc0952c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmConfigure.h.in,v $
   Language:  C++
-  Date:      $Date: 2005/10/27 20:43:53 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2007/05/23 14:18:03 $
+  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
 #cmakedefine GDCM_LEGACY_REMOVE
 #cmakedefine GDCM_LEGACY_SILENT
 
+/*--------------------------------------------------------------------------*/
+/* Will be usefull to use 2 different versions of gdcm.                     */
+/* e.g. : ITK uses gdcm1.2; vtkgdcmImageReader uses gdcm1.3                 */
+    
+#define GDCM_NAME_SPACE @GDCM_NAME_SPACE@
 
 #endif
index a91a46357d34bd6af42d84f295a1257cf9f99c3d..91206450df77f6d153803599fe5b492e48b7d7c9 100644 (file)
@@ -23,6 +23,8 @@
 #include "gdcmDicomDirPatient.h"
 #include "gdcmDicomDirStudy.h"
 #include "gdcmDicomDirSerie.h"
+#include "gdcmDicomDirVisit.h"
+#include "gdcmDicomDirPrivate.h"
 #include "gdcmDirList.h"
 #include "gdcmDocEntrySet.h"
 #include "gdcmDocument.h"
@@ -43,7 +45,7 @@
 #include "gdcmDictGroupName.h"
 
 /// This is required in order to avoid %including all the gdcm include files.
-using namespace gdcm;
+using namespace GDCM_NAME_SPACE;
 %}
 
 
@@ -62,16 +64,16 @@ typedef unsigned long long uint64_t;
 
 ////////////////////////////////////////////////
 // Convert a DocEntry * to the real derived class
-%typemap(out) gdcm::DocEntry *
+%typemap(out) GDCM_NAME_SPACE::DocEntry *
 {
    PyObject *newEntry;
 
    if($1)
    {
       if(dynamic_cast<SeqEntry *>($1)) // SeqEntry *
-         newEntry = SWIG_NewPointerObj($1,SWIGTYPE_p_gdcm__SeqEntry,0);
+         newEntry = SWIG_NewPointerObj($1,SWIGTYPE_p_GDCM_NAME_SPACE__SeqEntry,0);
       else if(dynamic_cast<DataEntry *>($1)) // DataEntry *
-         newEntry = SWIG_NewPointerObj($1,SWIGTYPE_p_gdcm__DataEntry,0);
+         newEntry = SWIG_NewPointerObj($1,SWIGTYPE_p_GDCM_NAME_SPACE__DataEntry,0);
       else
          newEntry = NULL;
    }
@@ -106,27 +108,27 @@ typedef unsigned long long uint64_t;
 }
 
 // Same convertion as above but references (since swig converts C++
-// refererences to pointers)
+// references to pointers)
 %typemap(python, in) std::string const &
 {
    $1 = new std::string( PyString_AsString( $input ) );
 }
 
 ////////////////////  gdcm.TagName versus Python str  //////////////////////
-%typemap(out) gdcm::TagName, const gdcm::TagName &
+%typemap(out) GDCM_NAME_SPACE::TagName, const GDCM_NAME_SPACE::TagName &
 {
     $result = PyString_FromString(($1)->c_str());
 }
 
 // Convertion of incoming Python str to STL string
-%typemap(python, in) const gdcm::TagName, gdcm::TagName
+%typemap(python, in) const GDCM_NAME_SPACE::TagName, GDCM_NAME_SPACE::TagName
 {
   $1 = PyString_AsString($input);
 }
 
 // Same convertion as above but references (since swig converts C++
 // refererences to pointers)
-%typemap(python, in) gdcm::TagName const &
+%typemap(python, in) GDCM_NAME_SPACE::TagName const &
 {
    $1 = new std::string( PyString_AsString( $input ) );
 }
@@ -134,21 +136,21 @@ typedef unsigned long long uint64_t;
 ////////////////////////////////////////////////////////////////////////////
 // Because overloading and %rename don't work together (see below Note 1)
 // we need to ignore some methods (e.g. the overloaded default constructor).
-// The gdcm::File class doesn't have any SetFilename method anyhow, and
+// The GDCM_NAME_SPACE::File class doesn't have any SetFilename method anyhow, and
 // this constructor is only used internaly (not from the API) so this is
 // not a big loss.
-%ignore gdcm::binary_write(std::ostream &,uint32_t const &);
-%ignore gdcm::binary_write(std::ostream &,uint16_t const &);
+%ignore GDCM_NAME_SPACE::binary_write(std::ostream &,uint32_t const &);
+%ignore GDCM_NAME_SPACE::binary_write(std::ostream &,uint16_t const &);
 
-%ignore gdcm::VRKey::operator=(const VRKey &_val);
-%ignore gdcm::VRKey::operator=(const std::string &_val);
-%ignore gdcm::VRKey::operator=(const char *_val);
-%ignore gdcm::VRKey::operator[](const unsigned int &_id) const;
-%ignore gdcm::VRKey::operator[](const unsigned int &_id);
+%ignore GDCM_NAME_SPACE::VRKey::operator=(const VRKey &_val);
+%ignore GDCM_NAME_SPACE::VRKey::operator=(const std::string &_val);
+%ignore GDCM_NAME_SPACE::VRKey::operator=(const char *_val);
+%ignore GDCM_NAME_SPACE::VRKey::operator[](const unsigned int &_id) const;
+%ignore GDCM_NAME_SPACE::VRKey::operator[](const unsigned int &_id);
 
-%ignore gdcm::TagKey::operator=(const TagKey &_val);
-%ignore gdcm::TagKey::operator[](const unsigned int &_id) const;
-%ignore gdcm::TagKey::operator[](const unsigned int &_id);
+%ignore GDCM_NAME_SPACE::TagKey::operator=(const TagKey &_val);
+%ignore GDCM_NAME_SPACE::TagKey::operator[](const unsigned int &_id) const;
+%ignore GDCM_NAME_SPACE::TagKey::operator[](const unsigned int &_id);
 
 // Ignore all placed in gdcmCommon.h
 %ignore GDCM_UNKNOWN;
@@ -191,7 +193,9 @@ typedef unsigned long long uint64_t;
 %include "gdcmDicomDirElement.h"
 %include "gdcmDicomDirObject.h"
 %include "gdcmDicomDirImage.h"
+%include "gdcmDicomDirPrivate.h"
 %include "gdcmDicomDirSerie.h"
+%include "gdcmDicomDirVisit.h"
 %include "gdcmDicomDirStudy.h"
 %include "gdcmDicomDirPatient.h"
 %include "gdcmDicomDirMeta.h"
index 8732bdd74e9a53161e4bee2b1fb03355113e1c77..cdc5d27e267af7ab501864a1c3bf0decbda9d6c9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommandPy.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 08:32:40 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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
@@ -23,7 +23,7 @@
 #include "gdcmCommand.h"
 #include "Python.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index 732a1c81bc48db757afb9e1011658bd1127caf8c..6ec2636714bcd128bb419a48c8c38366a63058d3 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmArgMgr.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/31 16:39:25 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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
@@ -32,7 +32,7 @@
 
 #include "gdcmArgMgr.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index 1d48babe90b2a4293b05db1280e70c4aa709d0ca..f31ff390bc1df1bb22c40bd9be28f35bee672935 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmArgMgr.h,v $
   Language:  C++
-  Date:      $Date: 2006/01/26 16:01:04 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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 <stdio.h>  // for FILE
 #include <stdlib.h> // For atof
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 #define ID_RFILE_TEXT        "rt"
index 873e442f9a8a8ddf5a5f0b2754b7c6839b406123..343ea1d77bc3b7231d07332c011c5fc667a08721 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBase.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/20 15:24:08 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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
@@ -18,7 +18,7 @@
 
 #include "gdcmBase.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index 8d88bf50d393d17cd66643fdfa442a9bb24237f5..3f4024a4dd26d68ca6eb6258be16f85e698d440b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBase.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/23 15:32:30 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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 @@
 #include "gdcmCommon.h"
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index d8046f33ac53ba2492928d62103409a12257bad8..598bd50c227a340d6f8db6087de0a504008bec9b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCallbackCommand.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 17:21:33 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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
@@ -18,7 +18,7 @@
 // ---------------------------------------------------------------
 #include "gdcmCallbackCommand.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index d47315ea26b3db08e3b39d7867303892476c522d..365ce602b69fa4dcb6e8e68901404b57318d45c1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCallbackCommand.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 15:20:35 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:07 $
+  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
@@ -22,7 +22,7 @@
 #include "gdcmDebug.h"
 #include "gdcmCommand.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index 221e00a8726d3576e29d091be3746262b5df0f69..188b2f75088748db92777ccc1f08e54a574f76f8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommand.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:22 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -18,7 +18,7 @@
 // ---------------------------------------------------------------
 #include "gdcmCommand.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 034976ee1856c2abbbd2b0ab870c297dd2bda75e..fab5737a96d20dd6fdef8a3f791b613780bb9554 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommand.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:22 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmRefCounter.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class CommandManager;
index bb24b00588bd27e510d54eaf7dd0fbd996070e1e..b99af1967527cbabb3528345bb4649e627ea6d0c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommandManager.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:05:11 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -20,7 +20,7 @@
 #include "gdcmCommand.h"
 #include <typeinfo> // for typeif (needed by __BORLANDC__ v6)
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 CommandManager CommandManager::Instance;
index ff21e0c14769b41c909719765488f71ca6cab075..1a5812123a9768dce591da283aedf1448f1e7c1c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommandManager.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -24,7 +24,7 @@
 #include <map>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class Command;
index 64720371bcaedf6bc73f6e4012378ffd31165edd..750effacdc357061c39a0d1b954dc56c4cbeb2d1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommon.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.114 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.115 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -42,7 +42,7 @@
 
 //-----------------------------------------------------------------------------
 /// \brief namespace for Grass root DiCoM
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 // Centralize information about the gdcm dictionary in only one file:
index 5bdfe968afebd336c100987a906cd635fa7bd524..ecc4b88f25886f406e223ae71d167b99c7ffd86d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDataEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/07/10 08:27:27 $
-  Version:   $Revision: 1.41 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.42 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@
  #include <ctype.h>  // for isdigit
 #endif
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 #define MAX_SIZE_PRINT_ELEMENT_VALUE 0x7fffffff
@@ -726,7 +726,7 @@ void DataEntry::Print(std::ostream &os, std::string const & )
             }
             else
             {
-               s << " [gdcm::too long for print (" << cleanString.length() << ") ]";
+               s << " [GDCM_NAME_SPACE::too long for print (" << cleanString.length() << ") ]";
             }
          }
          else
index 0a891f5eff3ff858c5ad347e440a63abeb11f6c2..adcc8235450cf3582bf6a8875e2c2bee4fb2deaa 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDataEntry.h,v $
   Language:  C++
-  Date:      $Date: 2006/07/10 08:27:28 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -24,7 +24,7 @@
 #include <vector> // for GetDSValue
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index 81c5c819f61207754ff265523b1f8632df048080..3c712e7a0f2f1324db0339d15bc2d5b705ed086a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDebug.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/03 14:28:53 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.31 $
                                                                                 
   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,7 @@
 
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Warning message level to be displayed
index d8a9f3dad53af0528e38a17b05d5c6891bd885e5..4a3240eb664188a9ad6ba9b209c997707649bad7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDebug.h,v $
   Language:  C++
-  Date:      $Date: 2006/05/30 08:12:51 $
-  Version:   $Revision: 1.55 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.56 $
                                                                                 
   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 @@
 #include <assert.h>
 #include <errno.h>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 class CommandManager;
@@ -48,7 +48,7 @@ class CommandManager;
  * 
  * A debugging message is only shown if the flag is on (DebugFlag)
  * This is static var and can be set at beginning of code:
- *         gdcm::Debug::SetDebugOn();
+ *         GDCM_NAME_SPACE::Debug::SetDebugOn();
  *
  * Warning  : Warns the user when some oddity occured, and we used an heuristics
  *            to bypass the trouble.
@@ -78,7 +78,7 @@ public:
    ///        (used to warn user when file contains some oddity)
    static void SetDebugFlag (bool flag);
    /// \brief   Gets the debug flag value
-   static bool GetDebugFlag () {return DebugFlag;}
+   static bool GetDebugFlag () {return DebugFlag; }
    /// \brief Sets the Debug Flag to true
    static void DebugOn  () { SetDebugFlag(true);  }
    /// \brief Sets the Debug Flag to false
@@ -88,7 +88,7 @@ public:
    ///        log messages are displayed.
    static void SetLogFlag (bool flag);
    /// \brief   Gets the Log flag value
-   static bool GetLogFlag () {return LogFlag;}
+   static bool GetLogFlag () {return LogFlag; }
    /// \brief Sets the Log Flag to true
    static void LogOn  () { SetLogFlag(true);  }
    /// \brief Sets the Log Flag to false
@@ -98,7 +98,7 @@ public:
    ///        warning messages are displayed.
    static void SetWarningFlag (bool flag);
    /// \brief   Gets the warning flag value
-   static bool GetWarningFlag () {return WarningFlag;}
+   static bool GetWarningFlag () {return WarningFlag; }
    /// \brief Sets the Warning Flag to true
    static void WarningOn  () { SetWarningFlag(true);  }
    /// \brief Sets the Warning Flag to false
@@ -170,7 +170,7 @@ private:
    osmacro << "In " __FILE__ ", line " << __LINE__             \
            << ", function " << GDCM_FUNCTION << "\n"           \
            << adds << msg << "\n\n";                           \
-   gdcm::Debug::SendToOutput(type,osmacro.str(),obj);          \
+   GDCM_NAME_SPACE::Debug::SendToOutput(type,osmacro.str(),obj);\
 }
 
 // ------------------------------------------------------------------------
@@ -195,7 +195,7 @@ private:
          adds += strerror(errno);                              \
          adds += "\n";                                         \
       }                                                        \
-      gdcmMessageBodyMacro(gdcm::CMD_DEBUG,obj,msg,adds);      \
+      gdcmMessageBodyMacro(GDCM_NAME_SPACE::CMD_DEBUG,obj,msg,adds);\
    }                                                           \
 }
 #define gdcmDebugMacro(msg)                                    \
@@ -215,7 +215,7 @@ private:
 #define gdcmLogBodyMacro(obj, msg)                         \
 {                                                          \
    if( Debug::GetLogFlag() )                               \
-      gdcmMessageBodyMacro(gdcm::CMD_LOG,obj,msg,"");      \
+      gdcmMessageBodyMacro(GDCM_NAME_SPACE::CMD_LOG,obj,msg,"");\
 }
 #define gdcmLogMacro(msg)                                  \
    gdcmLogBodyMacro(this,msg)
@@ -233,7 +233,7 @@ private:
 #define gdcmWarningBodyMacro(obj, msg)                         \
 {                                                              \
    if( Debug::GetWarningFlag() )                               \
-      gdcmMessageBodyMacro(gdcm::CMD_WARNING,obj,msg,"");      \
+      gdcmMessageBodyMacro(GDCM_NAME_SPACE::CMD_WARNING,obj,msg,"");\
 }
 #define gdcmWarningMacro(msg)                                  \
    gdcmWarningBodyMacro(this,msg)
@@ -251,7 +251,7 @@ private:
 // -> Rien compris! JPRx
 #define gdcmErrorBodyMacro(obj, msg)                           \
 {                                                              \
-   gdcmMessageBodyMacro(gdcm::CMD_ERROR,obj,msg,"");           \
+   gdcmMessageBodyMacro(GDCM_NAME_SPACE::CMD_ERROR,obj,msg,"");\
 }
 #define gdcmErrorMacro(msg)                                    \
    gdcmErrorBodyMacro(this,msg)
@@ -274,7 +274,7 @@ private:
 {                                                              \
    if( !(arg) )                                                \
    {                                                           \
-      gdcmMessageBodyMacro(gdcm::CMD_ASSERT,obj,"","");        \
+      gdcmMessageBodyMacro(GDCM_NAME_SPACE::CMD_ASSERT,obj,"","");\
       assert ( arg );                                          \
    }                                                           \
 }
index 9e7b439751434b0855658d4d052a260a05b5ae10..62fdb4e3514f406ca137a63e3c24104a2749bc77 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDefaultDicts.cxx.in,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -26,7 +26,7 @@
 #include "gdcmDictGroupName.h"
 #include "gdcmDicomDirElement.h"
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 typedef struct
index dae78e85c9b8ce7bf142022c085583c518bea0b9..5a6a91c923783a6b66ee129c95cdd9e05f9f3815 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:06:03 $
-  Version:   $Revision: 1.192 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.193 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 // PRIVATE
 // ENCAP DOC
 // 
+
+/*
+
+// see also : ftp://medical.nema.org/medical/dicom/final/cp343_ft.doc
+
+RELATIONSHIP BETWEEN DIRECTORY RECORDS
+
+Directory Record Type      Directory Record Types which may be included 
+                           in the next lower-level directory Entity
+
+(Root Directory Entity)    PATIENT, TOPIC, PRIVATE
+
+PATIENT                    STUDY, PRIVATE
+
+STUDY                      SERIES, VISIT, RESULTS, STUDY COMPONENT, PRIVATE
+
+SERIES                     IMAGE, OVERLAY, MODALITY LUT, VOI LUT, CURVE, 
+                           STORED PRINT, RT DOSE, RT STRUCTURE SET, RT PLAN, 
+                           RT TREAT RECORD, PRESENTATION, WAVEFORM, SR DOCUMENT,
+                            KEY OBJECT DOC, SPECTROSCOPY, RAW DATA, PRIVATE
+
+IMAGE                      PRIVATE
+OVERLAY                    PRIVATE
+MODALITY LUT               PRIVATE
+VOI LUT                    PRIVATE
+CURVE                      PRIVATE
+STORED PRINT               PRIVATE
+RT DOSE                    PRIVATE
+RT STRUCTURE SET           PRIVATE
+RT PLAN                    PRIVATE
+RT TREAT RECORD            PRIVATE
+PRESENTATION               PRIVATE
+WAVEFORM                   PRIVATE
+SR DOCUMENT                PRIVATE
+KEY OBJECT DOC             PRIVATE
+SPECTROSCOPY               PRIVATE
+RAW DATA                   PRIVATE
+
+TOPIC                      STUDY, SERIES, IMAGE, OVERLAY, MODALITY LUT, VOI LUT,
+                           CURVE, STORED PRINT, RT DOSE, RT STRUCTURE SET, 
+                           RT PLAN, RT TREAT RECORD, PRESENTATION, WAVEFORM, 
+                           SR DOCUMENT, KEY OBJECT DOC, SPECTROSCOPY, RAW DATA, 
+                           PRIVATE
+
+VISIT                      PRIVATE
+
+RESULTS                    INTERPRETATION, PRIVATE
+
+INTERPRETATION             PRIVATE
+STUDY COMPONENT            PRIVATE
+PRIVATE                    PRIVATE, (any of the above as privately defined)
+MRDR                      (Not applicable)
+
+Note :   Directory Record Types PRINT QUEUE, FILM SESSION, FILM BOX, and 
+         IMAGE BOX  were previously defined in DICOM.  They have been retired.  
+         See PS 3.3-1998.
+*/
+
 // ----------------------
 // The current gdcm version only deals with :
 //
 // Treelike structure management will have to be upgraded
 // ----------------------------------------------------------------------------
     
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
@@ -609,6 +667,7 @@ void DicomDir::CreateDicomDir()
 {
    // The SeqEntries of "Directory Record Sequence" are parsed. 
    //  When a DicomDir tag ("PATIENT", "STUDY", "SERIE", "IMAGE") is found :
+   //                    N.B. :  VISIT, PRIVATE not fully dealt with
    //  1 - we save the beginning iterator
    //  2 - we continue to parse
    //  3 - we find an other tag
@@ -726,7 +785,7 @@ void DicomDir::CreateDicomDir()
          // It was neither a 'PATIENT', nor a 'STUDY', nor a 'SERIE',
          // nor an 'IMAGE' SQItem. Skip to next item.
          gdcmWarningMacro( " -------------------------------------------"
-         << "a non PATIENT/STUDY/SERIE/IMAGE SQItem was found : "
+         << "a non PATIENT/STUDY/SERIE/IMAGE /VISIT/PRIVATE SQItem was found : "
          << v);
 
         // FIXME : deal with other item types !
index cb9145b28e1068a70986e79998ff249b2a1b5985..ebe30795bcf604c5b1a04c4e90dfa80ddb1b53c6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.78 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.79 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -25,7 +25,7 @@
 #include <list>
 #include <vector>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class DicomDirPatient;
@@ -44,10 +44,14 @@ typedef std::vector<Document *> VectDocument;
 //-----------------------------------------------------------------------------
 /**
  * \brief   DicomDir defines an object representing a DICOMDIR in memory
- *  as a tree-like structure DicomDirPatient 
- *                            -> DicomDirStudy 
- *                                -> DicomDirSerie
- *                                    -> DicomDirImage
+ *  as a tree-like structure :
+ *
+ *        ->DicomDirPatient 
+ *           -> DicomDirStudy 
+ *           -> DicomDirVisit 
+ *              -> DicomDirSerie
+ *                 -> DicomDirImage
+ *                 -> DicomDirPrivate (for Siemens CSA non image)
  */
 class GDCM_EXPORT DicomDir: public Document
 {
@@ -111,7 +115,8 @@ public:
       GDCM_DICOMDIR_STUDY,
       GDCM_DICOMDIR_SERIE,
       GDCM_DICOMDIR_VISIT,
-      GDCM_DICOMDIR_IMAGE
+      GDCM_DICOMDIR_IMAGE,
+      GDCM_DICOMDIR_PRIVATE
    } DicomDirType;
 
 protected:
@@ -126,10 +131,10 @@ private:
    void CreateDicomDir();
    bool DoTheLoadingJob();
    bool AddPatientToEnd(DicomDirPatient *dd);   
-   bool AddStudyToEnd  (DicomDirStudy *dd);
-   bool AddSerieToEnd  (DicomDirSerie *dd);
-   bool AddVisitToEnd  (DicomDirVisit *dd);
-   bool AddImageToEnd  (DicomDirImage *dd);
+   bool AddStudyToEnd  (DicomDirStudy   *dd);
+   bool AddSerieToEnd  (DicomDirSerie   *dd);
+   bool AddVisitToEnd  (DicomDirVisit   *dd);
+   bool AddImageToEnd  (DicomDirImage   *dd);
    bool AddPrivateToEnd(DicomDirPrivate *dd);
    
    void SetElements(std::string const &path, VectDocument const &list);
index c7ab9cf85c9ae778bb831441ae2a8ef77db66183..3d5733d505f80d23aa3185be9ba5c08b7b5478bc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirElement.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.44 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.45 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include <fstream>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /// \brief auto generate function, to fill up the default elements for 
index b14be8549afd5ab15c7b10bcca24a698677b36a3..bc4a6bd3c0a35e71694fbf4c085b6c697ca7af2f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirElement.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.39 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -24,7 +24,7 @@
 
 #include <list>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 06dde6d533bbc964dad4e54ce265bcf5afeed882..e13bc8911ce4db4b6f1e7d2b627e59376d0b175c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirImage.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 08:35:49 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -20,7 +20,7 @@
 #include "gdcmGlobal.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 8f04b09fa586ba20f9bf6fd0ab5ec82eeb2f2e12..32eb8aa27b4004face55627615cf6501e4933466 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirImage.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 09:46:25 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index c19de1aae43e5f39b91d9488f401d9388785077c..8dfdb628d5a74d341c37d61984b4bb96f32c25f7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.36 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.37 $
                                                                                 
   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 "gdcmUtil.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 8fc668bad1943a8c91f30ba77c6ddea07a302479..dc46710708ef25785b3e8e6ae700f087d961bc72 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 09:46:25 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 4013716b320f2168616cfe239124f20d06b54328..61f67396687091452a797568a492edb91babcd5c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirObject.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -22,7 +22,7 @@
 #include "gdcmDictSet.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index 39e4e9964b76d663c3ecd093d4d3941aa1e1886c..64ce981a86f03486d043ad98a7844cfcba96bceb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirObject.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:33 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -25,7 +25,7 @@
 #include <string>
 #include <list>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class DicomDirObject;
index 4fc33c581a8668223da775124b7c3f36bf1ba108..616d182c4c4c72f90b22c6bc40a7eb068573e305 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 12:48:46 $
-  Version:   $Revision: 1.40 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -23,7 +23,7 @@
 #include "gdcmSQItem.h"
 #include "gdcmDebug.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index c192970c346de65823c52b649f79d6c7bedf273e..74345d8b57ac11e7307aacd274975c3a0063acd6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 12:48:46 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.31 $
                                                                                 
   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,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class DicomDirStudy;
 
index ae7305dab4927547a09f06a78b60e287c09d12fc..17f659f53cdc9b2b36aa58f2e2369b2e6ae9770c 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPrivate.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/26 13:32:54 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -20,7 +20,7 @@
 #include "gdcmGlobal.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 11f57a4594ceff5c0eac233fa69084ca7885bf10..69717fa4f5fe607f8d367b6dcbe3c7392d2fafc8 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPrivate.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/26 13:32:54 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 /**
index 9cfc3fb4f2edce1bd933a10173a4c37d0af0f58f..97bd2594c4dc1112dc9981896ebddec581498f70 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/05/23 14:01:44 $
-  Version:   $Revision: 1.42 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.43 $
                                                                                 
   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 "gdcmGlobal.h"
 #include "gdcmDebug.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
@@ -113,7 +113,6 @@ void DicomDirSerie::ClearPrivate()
    Privates.clear();
 }
 
-
 /**
  * \brief  Remove all 'Images' in the serie 
  */
@@ -127,6 +126,7 @@ void DicomDirSerie::ClearImage()
    }
    Images.clear();
 }
+
 /**
  * \brief   Get the first entry while visiting the DicomDirImage
  * \return  The first DicomDirImage if DicomDirserie not empty, otherwhise NULL
index ddbc51af4de9cd573b0b2615391d1c0550286552..e1f535aef3e882c5ceb5f1ef353b735278fa9630 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class DicomDirImage;
 class DicomDirPrivate;
index 66c29bcb5bd250865b76f60803d849769341fcdf..0353b0783ab1c19ee973aef1f78184ab7d178067 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 12:48:46 $
-  Version:   $Revision: 1.42 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.43 $
                                                                                 
   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 "gdcmDicomDirVisit.h"
 #include "gdcmDebug.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index afe52f85b3b498e83800740a92a02edacfab737c..d4a82b5a5d15a3fb7b7cc6e573a37491b75066eb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 12:48:46 $
-  Version:   $Revision: 1.32 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.33 $
                                                                                 
   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,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class DicomDirSerie;
 class DicomDirVisit;
index 98e9226c8f8648a7b0c30e353d9af175e356f467..1509d5179c3bb8d0a33014f58ba68c89ed33df77 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirVisit.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 08:35:49 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -20,7 +20,7 @@
 #include "gdcmGlobal.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 580eb705c3b206b2cf38344ee60cf4960d03f924..b4a925ba6daecade189ba3ca1ab99abfe5a97536 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirVisit.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 09:46:25 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 /**
index 9afd602cd2232270794a1c077f12ec9c332409b0..3f466e447fea39f741473a16f825fb944de98e96 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -24,7 +24,7 @@
 #include <fstream>
 //#include <stdio.h> // for sprintf
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 8a3efee6b47b05082a1217cbf0c97d55760775cc..3fc1bc1ea81af3946d0b7a4f6b95dfb623816033 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomEntry.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/13 08:06:56 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -24,7 +24,7 @@
 #include "gdcmVRKey.h"
 #include "gdcmTagKey.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 /**
index e7bd6e1f79206054448a0d097c6cce5d18dbe023..a314a91a09b4a7caf3cc91c850117da3d106c7f9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:22:49 $
-  Version:   $Revision: 1.86 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.87 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include <iostream>
 #include <iomanip>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 /// \brief auto generated function, to fill up the Dicom Dictionnary,
index 0e86bedf4ff8e78a4cc5b5adfcd4886766926dcd..a1e72aadb9620065af13c146cb4f8019f09af9fa 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.49 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.50 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 #include <list>
 #include <map>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index b348b39ed6689775057d01c8c92a2513fafcfb9f..3b67a2a9110c0ef74a3e972a3ea198ab146e7f15 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:13 $
-  Version:   $Revision: 1.60 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.61 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include <fstream>
 #include <stdio.h> // for sprintf
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index b3e6ffa7f8a4c94fe6c23884933e09094109cb5e..4e6484c827f56925f427d0406ef0491724c5b3e9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/29 17:21:34 $
-  Version:   $Revision: 1.44 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.45 $
                                                                                 
   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 "gdcmTagKey.h"
 #include "gdcmVRKey.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class VRKey;
index db791bd7b0f8d19f2921f52aaa814a5548266356..bc6477d802920811c41c4ecd58fcdfc6e19f318b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictGroupName.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 09:46:25 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <iomanip>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /// \brief auto generated function, to fill up the 'Group Name'
index bb0d7cc58a3853b3d9a2501f2eb5e50f17288637..230bf0fb92a862579b7989c777f4fc4f2b6b184d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictGroupName.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:23 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -25,7 +25,7 @@
 #include <string>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 218acc65b9b5c4195a73eb7bc0c808e5c9e3a45f..b173a08846f7dfeec47b4e6a08a74b8d41c863e6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/12 19:09:55 $
-  Version:   $Revision: 1.77 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.78 $
                                                                                 
   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 <stdlib.h>  // For getenv
 #include <stdio.h>   // For sprintf
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 0638e7b7ccc5229910dce3d945444e0f3e0852fd..3c196d9ced6072d1e7c04bfccae4fec964bc162c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictSet.h,v $
   Language:  C++
-  Date:      $Date: 2006/03/22 13:19:25 $
-  Version:   $Revision: 1.53 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.54 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -26,7 +26,7 @@
 #include <map>
 #include <list>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 typedef std::map<DictKey, Dict*> DictSetHT;
index badef7290b15e37f78e7905b6704f611e05a199c..d881e59f825c64bd32ca69edf04c666cade8c909 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:53:08 $
-  Version:   $Revision: 1.60 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.61 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -33,7 +33,7 @@
    #include <sys/types.h>
 #endif
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 2362a8e5e4d79ce6515ce7b56f21d063f55482e8..9891970ce6f67493b349de886d43abd58678db57 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.h,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:53:08 $
-  Version:   $Revision: 1.32 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.33 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -25,7 +25,7 @@
 #include <vector>
 #include <iostream>
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 typedef std::vector<std::string> DirListType;
index 14a8a81d6b5d176e425a054cdcf503df63c32ec2..3a0ec998f8f741813d117ba2fc27f87b0cf06c5c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/02/23 15:29:56 $
-  Version:   $Revision: 1.87 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.88 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 #include <iomanip> // for std::ios::left, ...
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 
index 2534f3fabc6270f5f4bee35c8c0558f6812c68c4..ba4dda21f46e29733bfa9c8e64ae01fbeeed224f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.h,v $
   Language:  C++
-  Date:      $Date: 2006/07/06 16:57:06 $
-  Version:   $Revision: 1.66 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class File;
 class SeqEntry;
index b8bb023bac436dcf405125328ad86797c99e4124..d3213c26164a01137aa76aa2100575b19ad59f6c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntryArchive.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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
@@ -22,7 +22,7 @@
 
 #include <string>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index eabf6d7ccb89cdb3f47f30860bd7f73c0afdf2ad..f6afee1455538555482f6be0427a6fabd24937c0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntryArchive.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/18 11:54:01 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  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,7 +21,7 @@
 
 #include "gdcmFile.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index dd21173d1a8039c8dffae9ff0c6ccb4cd60bea3f..46f4434b38f102df579bfeca51975cc68c82e3e5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:22:49 $
-  Version:   $Revision: 1.73 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.74 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@
    #include <mem.h> // for memset
 #endif 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index a9c98e421b40846d61e51d85a93882125fc1420f..73b3ca985ba5b2f31ed1e78a72b5ab93516e0f91 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.68 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.69 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -25,7 +25,7 @@
 
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class DocEntry;
index 1c50ab555b50df2015b30e3f8a369d96717e7408..c2754559da0d9946c7ea82506abc8bcb0f8401ff 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:22:49 $
-  Version:   $Revision: 1.357 $
+  Date:      $Date: 2007/05/23 14:18:09 $
+  Version:   $Revision: 1.358 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -37,7 +37,7 @@
    #include <mem.h> // for memset
 #endif 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 
@@ -244,7 +244,7 @@ bool Document::DoTheLoadingDocumentJob(  )
 
    // Force Loading some more elements if user asked to.
 
-   gdcm::DocEntry *d;
+   GDCM_NAME_SPACE::DocEntry *d;
    for (ListElements::iterator it = UserForceLoadList.begin();  
                                it != UserForceLoadList.end();
                              ++it)
index 243f2f45249d07f038a2528677c3694cc107249c..ae6ce9ac66c09a80f16707571abb0f22363a8599 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2006/07/10 09:41:46 $
-  Version:   $Revision: 1.142 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.143 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,7 +30,7 @@
 #include <list>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class SeqEntry;
 class Dict;
index bf35f1f32e1e4f8e921aea0c63fb35fc45a6f4c5..ecac10b2a38b04daa93f3e30381470ee85f28c4a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:05:11 $
-  Version:   $Revision: 1.75 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.76 $
                                                                                 
   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,7 @@
 #include "gdcmSeqEntry.h"
 #include "gdcmDataEntry.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index ccf780904fe0d780196c355eca8e892567c06f10..ec9b90cd0593ed75daa3c07ec0784d9f301b921b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.h,v $
   Language:  C++
-  Date:      $Date: 2006/01/31 11:39:47 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.55 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 typedef std::map<TagKey, DocEntry *> TagDocEntryHT;
 
index e0ebbb8d0fb8d82ce5cc740085899a984d6c4ab4..1e5ccb176e80bdbf39bd8f58d291134f96d1d11b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmException.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/02 18:09:36 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -21,7 +21,7 @@
 #include <typeinfo>
 #include <stdlib.h> // for exit
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Exception
index 3b5c7d2e20c01bbad3d711cee7cdccef65e2ff6e..0565e487841b46f7e831ca134450104349ceccb1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmException.h,v $
   Language:  C++
-  Date:      $Date: 2005/09/02 07:10:03 $
-  Version:   $Revision: 1.23 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <exception>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index da9c7a8c937eae0d88b0000e5f100b6e62fc9bf4..576f5e89960f0b418a605dc9fab3872c398ee0b5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/04/12 13:22:49 $
-  Version:   $Revision: 1.329 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.330 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include <stdio.h>  //sscanf
 #include <stdlib.h> // for atoi
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 //-----------------------------------------------------------------------------
@@ -1636,7 +1636,7 @@ void File::AnonymizeNoLoad()
 {
    std::fstream *fp = new std::fstream(Filename.c_str(), 
                               std::ios::in | std::ios::out | std::ios::binary); 
-   gdcm::DocEntry *d;
+   GDCM_NAME_SPACE::DocEntry *d;
    uint32_t offset;
    uint32_t lgth;
    uint32_t valLgth = 0;
@@ -1715,7 +1715,7 @@ bool File::AnonymizeFile()
    }
    else
    {
-      gdcm::DocEntry *d;
+      GDCM_NAME_SPACE::DocEntry *d;
       for (ListElements::iterator it = UserAnonymizeList.begin();  
                                   it != UserAnonymizeList.end();
                                 ++it)
index 1eb3efc2b0cbbcf1b2426ecfc285bdeb2ebd537f..68a29fd3e15149dab2f8cf02738d17526bc84c06 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.h,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:54:15 $
-  Version:   $Revision: 1.130 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.131 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include "gdcmTagKey.h"
 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 class RLEFramesInfo;
index 70034af2efb06763e4c44b8e6ca5952325c0e5a9..4cb22d5291b7effa1f6ab763b517bc96f82ca67c 100644 (file)
@@ -4,8 +4,8 @@
   Module:    $RCSfile: gdcmFileHelper.cxx,v $
   Language:  C++
 
-  Date:      $Date: 2007/04/12 13:22:49 $
-  Version:   $Revision: 1.111 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.112 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -117,7 +117,7 @@ fh1->Write(newFileName);
 
 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 typedef std::map<uint16_t, int> GroupHT;    //  Hash Table
 //-------------------------------------------------------------------------
@@ -1764,7 +1764,7 @@ is only from (0020,0030) and (0020,0035)
    
    // Patient Orientation
    // Can be computed from (0020|0037) :  Image Orientation (Patient)
-   gdcm::Orientation *o = gdcm::Orientation::New();
+   GDCM_NAME_SPACE::Orientation *o = GDCM_NAME_SPACE::Orientation::New();
    std::string ori = o->GetOrientation ( FileInternal );
    o->Delete();
    if (ori != "\\" && ori != GDCM_UNFOUND)
index 34b0c7a3c2bd7faed535ff276bb138f68cdb0226..e0ae6b34ba37aec8b143de570d70f7db990c115e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFileHelper.h,v $
   Language:  C++
-  Date:      $Date: 2006/07/06 12:38:06 $
-  Version:   $Revision: 1.46 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.47 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include "gdcmVRKey.h"
 #include "gdcmFile.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //class File;
 class DataEntry;
index bf364f995e537d9f9ad57cb308a9907d1e757c70..2f523fc2eaa8234e11928b82b835945145461f88 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/07/06 15:08:10 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -25,7 +25,7 @@
 #include "gdcmDictSet.h"
 #include "gdcmDicomDirElement.h"
 
-namespace gdcm 
+namespace  GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 /// \brief Those global string that are returned by reference everywhere in 
index 262bf0773de8a1d1130f072ab993992e8242ec8f..8b1ca815e258d756f8c6165b78d6979571ca2fb6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmGlobal.h,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:05:10 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -21,7 +21,7 @@
 
 #include "gdcmCommon.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class DictSet;
 class VR;
index 709d4a54c07727acc22b035c0f3bbb17dad6bf3d..f7f1f1df8214ac8023713866833a50035549d275 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 17:24:21 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.18 $
                                                                                 
   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 @@
 #include "gdcmJPEGFragment.h"
 #include "gdcmDebug.h"
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 //-------------------------------------------------------------------------
 // For JPEG 2000, body in file gdcmJpeg2000.cxx
index 18cd2a0112529014e192bfa2af4c97bed80fc769..ea16b361cacbbd80b4941852714062e9a2ecc393 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 17:24:21 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 /**
  * \brief *very* internal class . Shouldn't appear here !
index ccf920b2e650eb44647834d2d8aa2b12460386e5..3102c4f3851427c07649f1f489066af312d94b0a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragmentsInfo.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:50:32 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -21,7 +21,7 @@
 
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index a34c6ff0b03546c88509ebd438fdac01a8285cc9..ad7969398caf74353be62a8c1b13346764b7967c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragmentsInfo.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/18 14:49:15 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -25,7 +25,7 @@
 #include <list>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 /**
  * \brief Utility class for gathering the informations of the collection
index 76dfaa0724eb506f16304bd654cd162e0c9fd4d1..eb6597fa2bf485cabfa23a284d551336ef9c62f7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/27 10:01:34 $
-  Version:   $Revision: 1.55 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.56 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -47,7 +47,7 @@
 #include "jdatasrc.cxx"
 #include "jdatadst.cxx"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
  /**
index 4224f1a767879cc4510257bb971ad52d8c7b2790..ed0f09f2d19e9a808ccb09c82fdd38f80e8e629c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg2000.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/15 15:24:43 $
-  Version:   $Revision: 1.42 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  Version:   $Revision: 1.43 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -48,7 +48,7 @@ void info_callback(const char *msg, void *) {
 }
 }
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
  /**
index d43ac7f418a9c58c17a8c4220d0f3628dcffc2db..b84278181b5428e208e6bcf0f854ec202e5d229f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpegLS.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/05/24 09:11:44 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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,7 +21,7 @@
 #include <iostream>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 301ba84f380f35571bf79d9002f6861e325c3591..9480b5f5cd21ec46ce6349ef83b6e9f46c9ff82c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmMpeg.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/30 08:19:25 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -62,7 +62,7 @@ int my_close(istream *infile)
   return 0;
 }
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 static int Headers();
index c22325d850a84780585830fd76d774403689f4ca..5340edeb470852c717b714aa0bdbe76c900860ee 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmOrientation.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/15 15:54:15 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2007/05/23 14:18:10 $
+  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
@@ -21,7 +21,7 @@
 #include "gdcmDebug.h"
 #include <math.h> // for sqrt
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //--------------------------------------------------------------------
 //  THERALYS Algorithm to determine the most similar basic orientation
index 0692d9d50696f518839b9ff5811d55b76e51f659..e53823861fe43da3374b1f89a5295eb454ed0779 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmOrientation.h,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:14 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -22,7 +22,7 @@
 #include "gdcmRefCounter.h"
 #include <map>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 typedef struct
 {
index 858894d6c828782af1c9b34fa65f805c72130afd..2a80ca647492d89ea74a77ab3fb9b68cc1f522aa 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/08/30 13:31:05 $
-  Version:   $Revision: 1.114 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.115 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -32,7 +32,7 @@
    #include <mem.h> // for memset
 #endif 
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 //bool ReadMPEGFile (std::ifstream *fp, char *inputdata, size_t lenght); 
index 196b96492688b9de2776c9fb3de66591cabbf471..5d363b9d959cc45c01ca1c6ece058015bfb8aa61 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.h,v $
   Language:  C++
-  Date:      $Date: 2006/03/29 16:09:48 $
-  Version:   $Revision: 1.30 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.31 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 
 #include <fstream>
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 class File;
 class RLEFramesInfo;
index 9258fc143d51e80b2d65e28001956a6e9fee0d51..8002dd422fe3c670493650677739e2118e1e20c6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelWriteConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/23 15:09:19 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -19,7 +19,7 @@
 #include "gdcmDebug.h"
 #include "gdcmPixelWriteConvert.h"
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 01c20c2ae68a241bdbccb0103c26b76f932ac1d0..59ddb91409bd1f2e71bf1e0d74d68f7d933c71fd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelWriteConvert.h,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:15 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -23,7 +23,7 @@
 #include "gdcmCommon.h"
 #include "gdcmBase.h"
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 /**
  * \brief Utility container for gathering the various forms the pixel data
index a3330bb2e34f17c985505273eb775c32aa9892ae..d22e21fd9af237285574dbcb5b470406d5e1d241 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFrame.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 17:24:21 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -19,7 +19,7 @@
 #include "gdcmRLEFrame.h"
 #include "gdcmDebug.h"
                                                                                 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index f265b713aa4790cfd1d312e59f813a4494bb6be7..0a09a007a76323e4f77dccdb76b779ae7a3fc67c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFrame.h,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:15 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 /**
  * \brief Utility class for summerizing the informations of a SINGLE RLE
index a4d37edd4e892f47825c29468066c015371cb85e..189596db1740804240f9f442c0305f4640a07416 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/03/29 16:09:48 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -24,7 +24,7 @@
    #include <mem.h> // for memset
 #endif 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index d4280bd2b665a4dbf7042df01cc1f5d20d7f26c9..2c66578c0c4a5564e4cbea51ff99fc7a1db2b313 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.h,v $
   Language:  C++
-  Date:      $Date: 2006/03/29 16:09:48 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -24,7 +24,7 @@
 
 #include <list>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 /**
  * \brief Utility class for gathering the informations of the collection
index 0af71e96159aa2f758cc350a1e1a4a83a5bd1101..8e1613c73191fa94ed8a0921b1074d2582cce967 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRefCounter.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/20 15:24:10 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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 "gdcmRefCounter.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-------------------------------------------------------------------------
 // Constructor / Destructor
index bb036b7f5a5462ffb133fbbcc071badf76551e77..d528b7b8ffd6e01ede418f88558658d008f5b558 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRefCounter.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -23,7 +23,7 @@
 //#include "gdcmDebug.h"
 #include <typeinfo>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
index f4f2a7664fe9e3a55cc50ada77a7da50a7a84011..a945413b762ddaadd8350fbd3df36d619965e709 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:15 $
-  Version:   $Revision: 1.84 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -25,7 +25,7 @@
 
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 8d4e81c70feeb42fd15e3a1ec4c3590394e2e4d6..147643e52bf12f375cbae45ed11ee760c9effc52 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.h,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:15 $
-  Version:   $Revision: 1.51 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.52 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,7 +24,7 @@
 #include <list>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class DocEntry;
 
index def82df69a2da92c627515c74cdb4ec3c3fe1503..684d444dacd0312266ea619ac4847c5bcb5d16ca 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/04/13 08:05:52 $
-  Version:   $Revision: 1.67 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.68 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 #include <iomanip>
 #include <fstream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
index 386eab3219dff816e4c3c4e4f800b3a6475f2c68..778858c64291ad65789b726366e1e05273e2f660 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/13 08:05:52 $
-  Version:   $Revision: 1.42 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.43 $
                                                                                 
   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 <list>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class SQItem;
 //-----------------------------------------------------------------------------
index d16d52635b5c573f5d25f34233d97f99736d9f00..a16c8d0556a72f085a11ff3b893d8bae20a3a141 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/30 08:10:19 $
-  Version:   $Revision: 1.53 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.54 $
                                                                                 
   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,7 @@
 #include <map>
 #include <stdio.h>  //for sscanf
 
-namespace gdcm
+namespace GDCM_NAME_SPACE
 {
 
 //-----------------------------------------------------------------------------
@@ -63,8 +63,8 @@ void SerieHelper::ClearAll()
    FileList *l = GetFirstSingleSerieUIDFileSet();
    while (l)
    { 
-      // For all the gdcm::File of a File set
-      for (gdcm::FileList::iterator it  = l->begin();
+      // For all the GDCM_NAME_SPACE::File of a File set
+      for (GDCM_NAME_SPACE::FileList::iterator it  = l->begin();
                                     it != l->end(); 
                                   ++it)
       {
@@ -84,7 +84,7 @@ void SerieHelper::ClearAll()
 
 // Public
 /**
- * \brief add a gdcm::File to the Fileset corresponding to its Serie UID
+ * \brief add a GDCM_NAME_SPACE::File to the Fileset corresponding to its Serie UID
  * @param   filename Name of the file to deal with
  */
 void SerieHelper::AddFileName(std::string const &filename)
@@ -111,10 +111,10 @@ void SerieHelper::AddFileName(std::string const &filename)
 }
 
 /**
- * \brief add a gdcm::File to the first (and supposed to be unique) file set
- *        of the gdcm::SerieHelper.
+ * \brief add a GDCM_NAME_SPACE::File to the first (and supposed to be unique) file set
+ *        of the GDCM_NAME_SPACE::SerieHelper.
  * \warning : this method should be used by aware users only!
- *           Passing a gdcm::File* has the same effect than passing a file name!
+ *           Passing a GDCM_NAME_SPACE::File* has the same effect than passing a file name!
  * \todo : decide which one is wrong (the method, or the commentary)!
  *           the following comment doesn't match the method :-(
  *            User is supposed to know the files he want to deal with
@@ -126,7 +126,7 @@ void SerieHelper::AddFileName(std::string const &filename)
  *           vtkGdcmReader parsing twice the same files. 
  *           *no* coherence check is performed, but those specified
  *           by SerieHelper::AddRestriction()
- * @param   header gdcm::File* of the file to deal with
+ * @param   header GDCM_NAME_SPACE::File* of the file to deal with
  * @return  true if file was added, false if file was rejected
  */
 bool SerieHelper::AddFile(File *header)
@@ -857,7 +857,7 @@ bool SerieHelper::UserOrdering(FileList *fileList)
  */
 void SerieHelper::Print(std::ostream &os, std::string const &indent)
 {
-   // For all the Coherent File lists of the gdcm::Serie
+   // For all the Coherent File lists of the GDCM_NAME_SPACE::Serie
    SingleSerieUIDFileSetmap::iterator itl = SingleSerieUIDFileSetHT.begin();
    if ( itl == SingleSerieUIDFileSetHT.end() )
    {
@@ -918,7 +918,7 @@ void SerieHelper::CreateDefaultUniqueSeriesIdentifier()
  *        (he knows more than we do about his images!)
  *        ex : in tagging series, the only pertnent tag is
  *        0018|1312 [In-plane Phase Encoding Direction] value : ROW/COLUMN
- * @param inFile gdcm::File we want to build a Serie Identifier for.
+ * @param inFile GDCM_NAME_SPACE::File we want to build a Serie Identifier for.
  * @return the SeriesIdentifier
  */
 std::string SerieHelper::CreateUniqueSeriesIdentifier( File *inFile )
@@ -936,7 +936,7 @@ std::string SerieHelper::CreateUniqueSeriesIdentifier( File *inFile )
         {
         const ExRule &r = *it2;
         std::string s = inFile->GetEntryString( r.group, r.elem );
-        if( s == gdcm::GDCM_UNFOUND )
+        if( s == GDCM_NAME_SPACE::GDCM_UNFOUND )
           {
           s = "";
           }
@@ -965,7 +965,7 @@ std::string SerieHelper::CreateUniqueSeriesIdentifier( File *inFile )
   else // Could not open inFile
     {
     gdcmWarningMacro("Could not parse series info.");
-    std::string id = gdcm::GDCM_UNFOUND;
+    std::string id = GDCM_NAME_SPACE::GDCM_UNFOUND;
     return id;
     }
 }
index 14a13df08b32f25de4aa235eb0b8aab74de61d9f..363970f7a5bb8e20056839806fce4a6916f25791 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHelper.h,v $
   Language:  C++
-  Date:      $Date: 2006/05/30 08:10:19 $
-  Version:   $Revision: 1.41 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.42 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 #include <iostream>
 #include <map>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 class File;
 
index d10f663050493fd99addaa20b9b6208a7f0f68c3..d3751af010960f019bbcb709a2a12d97ef3a2692 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTS.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/06/08 13:37:33 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.55 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,7 +36,7 @@
 // PrintFile debug filein=...
 // and fix the bugs
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /// \brief Transfer Syntaxes gdcm deals with (internal use only)
index 773a8ff6514e08fe291246fcd1c034982bc6c172..87c13913dbe9478031d8b8ae0c00684bab648663 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTS.h,v $
   Language:  C++
-  Date:      $Date: 2006/06/08 13:37:33 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -25,7 +25,7 @@
 #include <string>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 typedef std::string TSKey;
index d569db44a2c8ee245229433812eefe544581c5b6..168b03ddef68be46cb37fe3788204760620d56c6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTagKey.h,v $
   Language:  C++
-  Date:      $Date: 2006/04/11 16:03:26 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  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
@@ -26,7 +26,7 @@
 #include <iomanip> // for std::ios::left, ...
 #include <stdio.h> // for ugly sprintf
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class TagKey
index 2d06382d51be876e1de2d20f8eab782e8cf7023a..23106dc78026a98d37598b72367214637b4091c4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/11/08 17:04:32 $
-  Version:   $Revision: 1.186 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.187 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -92,7 +92,7 @@
    #include <thread.h>
 #endif
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-------------------------------------------------------------------------
 const std::string Util::GDCM_UID = "1.2.826.0.1.3680043.2.1143";
@@ -1247,7 +1247,7 @@ void Util::hfpswap(double *a, double *b)
   ghost@aladdin.com
  */
 
-/* $Id: gdcmUtil.cxx,v 1.186 2006/11/08 17:04:32 jpr Exp $ */
+/* $Id: gdcmUtil.cxx,v 1.187 2007/05/23 14:18:11 jpr Exp $ */
 
 /*
   Independent implementation of MD5 (RFC 1321).
index 080ba2232b505ee579271a1e9e1dcb26f7590eca..e1f823e8ccfec7ff95bb066f7157664793a839aa 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.h,v $
   Language:  C++
-  Date:      $Date: 2006/05/31 16:09:29 $
-  Version:   $Revision: 1.67 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.68 $
                                                                                 
   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 <vector>
 #include <string>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 /**
  * \brief    Here are some utility functions, belonging to the gdcm::Util class,
@@ -149,7 +149,7 @@ private:
   ghost@aladdin.com
 */
 
-/* $Id: gdcmUtil.h,v 1.67 2006/05/31 16:09:29 jpr Exp $ */
+/* $Id: gdcmUtil.h,v 1.68 2007/05/23 14:18:11 jpr Exp $ */
 /*
   Independent implementation of MD5 (RFC 1321).
   This code implements the MD5 Algorithm defined in RFC 1321, whose
index 3a7cd29473d48716aacb5ad19daa503c165fb60a..48f53b3543dc7b064f7cfd2d2d1da5ee37ec8d71 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmVR.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/08/18 18:34:57 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.55 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -25,7 +25,7 @@
 #include <iostream>
 #include <string.h>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /// \brief auto generated function, to fill up the 'Value Representation'
index 5f6da95c18653366fe1357ce9b9ddc4d6d7c1513..b187b30f12d8f31c0cd4a97e1d57ae22e03c4ef5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmVR.h,v $
   Language:  C++
-  Date:      $Date: 2006/08/18 16:11:36 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2007/05/23 14:18:12 $
+  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
@@ -26,7 +26,7 @@
 #include <string>
 #include <iostream>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
index 069cbe353cb74541362c6140e7110aed1b1403e0..31221e29ef9976b96345471f84a203447dc0170c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmVRKey.h,v $
   Language:  C++
-  Date:      $Date: 2006/05/15 14:47:13 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2007/05/23 14:18:12 $
+  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
@@ -25,7 +25,7 @@
 #include <iomanip> // important
 #include <string>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 class VRKey
index ff1b532fc1d8c62ee22bb492972ef3b13f4ab806..98f792524d724070383a9256552c6d13e64c51c0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmValidator.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/02/16 20:06:15 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2007/05/23 14:18:12 $
+  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
@@ -24,7 +24,7 @@
 #include <map>
 
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 typedef std::map<uint16_t, int> GroupHT;    //  Hash Table
@@ -96,7 +96,7 @@ DocEntry *d;
   { 
     if ( DataEntry *v = dynamic_cast<DataEntry *>(d) )
     { 
-      if ( v->GetVM() != gdcm::GDCM_UNKNOWN )
+      if ( v->GetVM() != GDCM_NAME_SPACE::GDCM_UNKNOWN )
          if ( !CheckVM(v) )
          {
             if (v->GetVM() == "FIXME" )
index a5930876783620418bf20b8ee6fc48cd544aa3e1..e63b1e9362eb7776f2e7ca80ad327645f628eb88 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmValidator.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 16:31:24 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/05/23 14:18:12 $
+  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,7 +21,7 @@
 
 #include "gdcmRefCounter.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 /**
  * \brief Class to perform some verifications on a gdcm::Document
index 83cd2e537b2511a769c2b619fcf5c85a3277d1e6..9724f86aec9cd2d38449769732adf18848901f20 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmfstream.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/13 00:22:14 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:13 $
+  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
@@ -19,7 +19,7 @@
 #include "gdcmfstream.h"
 #include <iostream>
 
-namespace gdcm {
+namespace GDCM_NAME_SPACE {
 
 
 ifstream::ifstream(const char* filename,openmode mode)
index 3a332a2d3b4f0f02cc53dbaba8d1074964a06b0c..8f2a520b5d9116fc987d425bb452a813aa96f36e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmfstream.h,v $
   Language:  C++
-  Date:      $Date: 2005/06/13 00:22:14 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/05/23 14:18:14 $
+  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
@@ -22,7 +22,7 @@
 #include <fstream>
 #include <list>
 
-namespace gdcm {
+namespace GDCM_NAME_SPACE {
 
 class ifstream : public std::ifstream
 {
index bf658ef10b2fc0bab7c07f7ee547ace1450ae594..cfb526abd8593898d18c825923ecb1f799227669 100644 (file)
@@ -31,7 +31,7 @@ typedef struct {
   JOCTET * buffer;        /* start of buffer */
   boolean start_of_file;  /* have we gotten any data yet? */
 
-  gdcm::JPEGFragment *frag;
+  GDCM_NAME_SPACE::JPEGFragment *frag;
   size_t bytes_read;
 } my_source_mgr;
 
@@ -198,7 +198,7 @@ term_source (j_decompress_ptr cinfo)
  */
 
 GLOBAL(void)
-jpeg_stdio_src (j_decompress_ptr cinfo, std::istream * infile, gdcm::JPEGFragment *frag, int flag)
+jpeg_stdio_src (j_decompress_ptr cinfo, std::istream * infile, GDCM_NAME_SPACE::JPEGFragment *frag, int flag)
 {
   my_src_ptr src;