]> Creatis software - gdcm.git/commitdiff
Doxygenation
authorjpr <jpr>
Fri, 10 Sep 2004 14:32:04 +0000 (14:32 +0000)
committerjpr <jpr>
Fri, 10 Sep 2004 14:32:04 +0000 (14:32 +0000)
src/gdcmBinEntry.cxx
src/gdcmBinEntry.h
src/gdcmDocEntrySet.cxx
src/gdcmDocument.cxx
src/gdcmElementSet.h

index 720bbd7714f807c360d0b3fd7b7cbafeae1eb023..cee3120fdf2c134707c6ba9c6868bcd51b90c8ab 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/09 17:49:24 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2004/09/10 14:32:04 $
+  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
@@ -117,6 +117,15 @@ void gdcmBinEntry::Write(FILE *fp, FileType filetype)
 //-----------------------------------------------------------------------------
 // Public
 
+
+/// \brief Sets the value (non string) of the current Dicom Header Entry
+void gdcmBinEntry::SetVoidArea(void* area)  
+{ 
+   if (VoidArea)
+      free(VoidArea);
+   VoidArea = area;  
+}
+
 //-----------------------------------------------------------------------------
 // Protected
 
index 6f4b561d90ea5f556f1bad656711de06a241a0b6..8ba66fdd57d88d871e6f0857ab80f2fcdf1a487c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/09 17:49:24 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2004/09/10 14:32:04 $
+  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
@@ -46,9 +46,7 @@ public:
    /// \brief Returns the area value of the current Dicom Header Entry
    ///  when it's not string-translatable (e.g : a LUT table)         
    void* GetVoidArea()  { return VoidArea; };
-
-   /// \brief Sets the value (non string) of the current Dicom Header Entry
-   void SetVoidArea(void * area)  { VoidArea = area;  };
+   void SetVoidArea(void* area);
          
 protected:
 
index 9a42d3c933ecc3cd5b73703a2bf35bed71811dfb..b187140b4beb75c6ca65e4ded676b4e783127c4f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/07 13:57:04 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2004/09/10 14:32: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
@@ -194,7 +194,7 @@ gdcmDictEntry* gdcmDocEntrySet::NewVirtualDictEntry(uint16_t group,
 /** \brief 
  * Creates a new DocEntry (without any 'value' ...)
  * @param   group     group  number of the underlying DictEntry
- * @param   element  element number of the underlying DictEntry 
+ * @param   elem  elem number of the underlying DictEntry 
  */
 gdcmDocEntry* gdcmDocEntrySet::NewDocEntryByNumber(uint16_t group,
                                                    uint16_t elem)
index 6a25788fc9d58933284147914af5d1fa507503a9..e1dd5332337f11e10cd7a158daa0d867aae70783 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/09 17:49:24 $
-  Version:   $Revision: 1.72 $
+  Date:      $Date: 2004/09/10 14:32:04 $
+  Version:   $Revision: 1.73 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -610,7 +610,9 @@ gdcmValEntry * gdcmDocument::ReplaceOrCreateByNumber(
    else
    {
       valEntry = dynamic_cast< gdcmValEntry* >(currentEntry);
-      if ( !valEntry )
+      if ( !valEntry ) // Euuuuh? It wasn't a ValEntry
+                       // then we change it to a ValEntry ?
+                       // Shouldn't it be considered as an error ?
       {
          // We need to promote the gdcmDocEntry to a gdcmValEntry:
          valEntry = new gdcmValEntry(currentEntry);
index 0ed6c70b1db735ffebb281164fe4390727e8ab85..df2f32a822f2bf0e65b149357acb10b3bdf81fc6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/03 14:04:02 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2004/09/10 14:32:04 $
+  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
@@ -45,9 +45,9 @@ public:
    virtual void Print(std::ostream &os = std::cout); 
    virtual void Write(FILE *fp, FileType filetype); 
 
-   /// Accessor to \ref gdcmElementSet::tagHT
+   /// Accessor to \ref gdcmElementSet::TagHT
    // Do not expose this to user (public API) !
-   //I re-add it temporaryly JPRx
+   // I re-add it temporaryly JPRx
    TagDocEntryHT &GetEntry() { return TagHT; };
 
 protected: