]> Creatis software - gdcm.git/commitdiff
Replace stupid method names :
authorjpr <jpr>
Wed, 31 Aug 2005 09:29:10 +0000 (09:29 +0000)
committerjpr <jpr>
Wed, 31 Aug 2005 09:29:10 +0000 (09:29 +0000)
DicomDir::WriteDicomDir and DicomDir::AnonymizeDicomDir
by
DicomDir::Write and DicomDir::Anonymize
Thx to Benoit for repporting oddity

Example/MakeDicomDir.cxx
Testing/TestBuildUpDicomDir.cxx
Testing/TestDicomDir.cxx
Testing/TestMakeDicomDir.cxx
src/gdcmDicomDir.cxx
src/gdcmDicomDir.h

index 76cf5b18f5f90ad62b65b325f3713484330b7122..e8ebe98394f3057f880fbdbb2fc6bebe0eba24e5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/08/30 15:13:05 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2005/08/31 09:29:10 $
+  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
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
     
    // ----- Create the corresponding DicomDir
 
-   dcmdir->WriteDicomDir("NewDICOMDIR");
+   dcmdir->Write("NewDICOMDIR");
    delete dcmdir;
 
    // Read from disc the just written DicomDir
index 4037663d7d537d6890c18a69a4eddee92ed80a67..524e583730cb812bcf179dbb8830d99da03b1831 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestBuildUpDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/08 13:39:57 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/08/31 09:29:11 $
+  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
@@ -181,7 +181,7 @@ int TestBuildUpDicomDir(int argc, char *argv[])
    dcmdir->Print();
 
    // Write it on disc
-   dcmdir->WriteDicomDir("NewDICOMDIR");
+   dcmdir->Write("NewDICOMDIR");
    delete dcmdir;
 
    // Read the newly written DicomDir
index 59158930c1f70909ce28d69d67c1869a8831a00b..af76b111b4e2f01c161b31e52a636e46fdddaf48 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/08 13:39:57 $
-  Version:   $Revision: 1.39 $
+  Date:      $Date: 2005/08/31 09:29:11 $
+  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
@@ -181,7 +181,7 @@ int TestDicomDir(int argc, char *argv[])
    // ------------------------- second stage ---------------------------
     
    // Write on disc what we read
-   dicomdir->WriteDicomDir("NewDICOMDIR");
+   dicomdir->Write("NewDICOMDIR");
 
    std::cout << std::endl << std::endl  
              << "NewDICOMDIR written on disc =================================" 
index 695e230786805ea4be8b201a9d031a1497742eaf..c560f1b0fe3293990608d961bd89c6c214b4896d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestMakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/08/30 15:13:07 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2005/08/31 09:29: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
@@ -83,7 +83,7 @@ int TestMakeDicomDir(int argc, char *argv[])
    }
     
    // Create the corresponding DicomDir
-   dcmdir->WriteDicomDir("NewDICOMDIR");
+   dcmdir->Write("NewDICOMDIR");
    delete dcmdir;
 
    // Read from disc the just written DicomDir
index a7132a903e3901e2a536667c4078dbc844ed5d92..8a2dbead8ac924717fe6a7f0376b589752e87e2a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/08/30 15:13:09 $
-  Version:   $Revision: 1.157 $
+  Date:      $Date: 2005/08/31 09:29:12 $
+  Version:   $Revision: 1.158 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -523,7 +523,7 @@ void DicomDir::SetEndMethodArgDelete( DicomDir::Method *method )
  * @return false only when fail to open
  */
  
-bool DicomDir::WriteDicomDir(std::string const &fileName) 
+bool DicomDir::Write(std::string const &fileName) 
 {  
    int i;
    uint16_t sq[4] = { 0x0004, 0x1220, 0xffff, 0xffff };
@@ -575,7 +575,7 @@ bool DicomDir::WriteDicomDir(std::string const &fileName)
  * @return true 
  */
  
-bool DicomDir::AnonymizeDicomDir() 
+bool DicomDir::Anonymize() 
 {
    ValEntry *v;
    // Something clever to be found to forge the Patient names
index 22ced06db8dfde4bbeb416385556b5c010b25ffb..2a524f3e13a1b24c55e6d0246f818ac5d1e5ca0c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2005/08/29 12:29:50 $
-  Version:   $Revision: 1.67 $
+  Date:      $Date: 2005/08/31 09:29:12 $
+  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
@@ -123,9 +123,9 @@ public:
    bool  IsAborted() { return Abort; }
 
    // Write
-   bool WriteDicomDir(std::string const &fileName);
+   bool Write(std::string const &fileName);
 
-   bool AnonymizeDicomDir();
+   bool Anonymize();
 
    /// Types of the DicomDirObject within the DicomDir
    typedef enum