X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntrySet.cxx;h=fbc4764e0dd81562365854a9326319b6eb4373ec;hb=35ee8ee8af32946514713d271177df8bb2298eb2;hp=dd21173d1a8039c8dffae9ff0c6ccb4cd60bea3f;hpb=87f5ff9abfff1e2cb824083b999638ee2d9f415d;p=gdcm.git diff --git a/src/gdcmDocEntrySet.cxx b/src/gdcmDocEntrySet.cxx index dd21173d..fbc4764e 100644 --- a/src/gdcmDocEntrySet.cxx +++ b/src/gdcmDocEntrySet.cxx @@ -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/09/17 12:16:02 $ + 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 @@ -31,7 +31,7 @@ #include // for memset #endif -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- // Constructor / Destructor @@ -94,7 +94,7 @@ int DocEntrySet::GetEntryLength(uint16_t group, uint16_t elem) } /** - * \brief Same as \ref Document::GetDocEntry except it returns a result + * \brief Same as DocEntrySet::GetDocEntry except it returns a result * only when the corresponding entry is of type DataEntry. * @param group Group number of the searched Dicom Element * @param elem Element number of the searched Dicom Element @@ -110,7 +110,7 @@ DataEntry *DocEntrySet::GetDataEntry(uint16_t group, uint16_t elem) } /** - * \brief Same as \ref Document::GetDocEntry except it returns a result + * \brief Same as DocEntrySet::GetDocEntry except it returns a result * only when the corresponding entry is of type SeqEntry. * @param group Group number of the searched Dicom Element * @param elem Element number of the searched Dicom Element @@ -417,18 +417,16 @@ bool DocEntrySet::CheckIfEntryExist(uint16_t group, uint16_t elem ) /** * \brief Build a new DataEntry from all the low level arguments. - * Check for existence of dictionary entry, and build - * a default one when absent. * @param group Group number of the new Entry * @param elem Element number of the new Entry * @param vr V(alue) R(epresentation) of the new Entry * \remarks The user of this method must destroy the DataEntry when unused */ -DataEntry *DocEntrySet::NewDataEntry(uint16_t group,uint16_t elem, +DataEntry *DocEntrySet::NewDataEntry(uint16_t group, uint16_t elem, VRKey const &vr) { - DataEntry *newEntry = DataEntry::New(group,elem,vr); + DataEntry *newEntry = DataEntry::New(group, elem, vr); if (!newEntry) { gdcmWarningMacro( "Failed to allocate DataEntry for (" @@ -440,8 +438,6 @@ DataEntry *DocEntrySet::NewDataEntry(uint16_t group,uint16_t elem, /** * \brief Build a new SeqEntry from all the low level arguments. - * Check for existence of dictionary entry, and build - * a default one when absent. * @param group Group number of the new Entry * @param elem Element number of the new Entry * \remarks The user of this method must destroy the SeqEntry when unused @@ -451,7 +447,7 @@ SeqEntry* DocEntrySet::NewSeqEntry(uint16_t group, uint16_t elem) //DictEntry *dictEntry = GetDictEntry(group, elem, "SQ"); //SeqEntry *newEntry = SeqEntry::New( dictEntry ); - SeqEntry *newEntry = SeqEntry::New( group,elem ); + SeqEntry *newEntry = SeqEntry::New( group, elem ); //dictEntry->Unregister(); // GetDictEntry register it if (!newEntry) {