From: jpr Date: Fri, 10 Sep 2004 14:32:04 +0000 (+0000) Subject: Doxygenation X-Git-Tag: Version0.6.bp~214 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=dc02ed8917f2d871c186f1789bc6bd74bfc15c3b;p=gdcm.git Doxygenation --- diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 720bbd77..cee3120f 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -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 diff --git a/src/gdcmBinEntry.h b/src/gdcmBinEntry.h index 6f4b561d..8ba66fdd 100644 --- a/src/gdcmBinEntry.h +++ b/src/gdcmBinEntry.h @@ -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: diff --git a/src/gdcmDocEntrySet.cxx b/src/gdcmDocEntrySet.cxx index 9a42d3c9..b187140b 100644 --- a/src/gdcmDocEntrySet.cxx +++ b/src/gdcmDocEntrySet.cxx @@ -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) diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 6a25788f..e1dd5332 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -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); diff --git a/src/gdcmElementSet.h b/src/gdcmElementSet.h index 0ed6c70b..df2f32a8 100644 --- a/src/gdcmElementSet.h +++ b/src/gdcmElementSet.h @@ -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: