X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSQItem.cxx;h=2ec7540d0a693640567e4c08386c01163787aaa8;hb=4d688a4874380bbde4dff31775ab4d56d49f7f9e;hp=75d99b677953b2044c971e14602ec1bc9764ba4b;hpb=0408b1aa8aaf0d1e17391984490ad2bbe89a922b;p=gdcm.git diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 75d99b67..2ec7540d 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSQItem.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:00:24 $ - Version: $Revision: 1.65 $ + Date: $Date: 2005/02/07 08:48:18 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -99,20 +99,6 @@ void SQItem::WriteContent(std::ofstream *fp, FileType filetype) } } -/** - * \brief Remove all entry in the Sequence Item - */ -void SQItem::ClearEntry() -{ - for(ListDocEntry::iterator cc = DocEntries.begin(); - cc != DocEntries.end(); - ++cc) - { - delete *cc; - } - DocEntries.clear(); -} - /** * \brief Inserts *in the right place* any Entry (Dicom Element) * into the Sequence Item @@ -164,12 +150,12 @@ bool SQItem::RemoveEntry( DocEntry *entryToRemove ) if( *it == entryToRemove ) { DocEntries.erase(it); - gdcmVerboseMacro( "One element erased: " << entryToRemove->GetKey() ); + gdcmWarningMacro( "One element erased: " << entryToRemove->GetKey() ); delete entryToRemove; return true; } } - gdcmVerboseMacro( "Entry not found: " << entryToRemove->GetKey() ); + gdcmWarningMacro( "Entry not found: " << entryToRemove->GetKey() ); return false ; } @@ -187,16 +173,30 @@ bool SQItem::RemoveEntryNoDestroy(DocEntry *entryToRemove) if( *it == entryToRemove ) { DocEntries.erase(it); - gdcmVerboseMacro( "One element erased, no destroyed: " + gdcmWarningMacro( "One element erased, no destroyed: " << entryToRemove->GetKey() ); return true; } } - gdcmVerboseMacro( "Entry not found:" << entryToRemove->GetKey() ); + gdcmWarningMacro( "Entry not found:" << entryToRemove->GetKey() ); return false ; } +/** + * \brief Remove all entry in the Sequence Item + */ +void SQItem::ClearEntry() +{ + for(ListDocEntry::iterator cc = DocEntries.begin(); + cc != DocEntries.end(); + ++cc) + { + delete *cc; + } + DocEntries.clear(); +} + /** * \brief Get the first Dicom entry while visiting the SQItem * \return The first DocEntry if found, otherwhise 0 @@ -210,7 +210,7 @@ DocEntry *SQItem::GetFirstEntry() } /** - * \brief Get the next Dicom entry while visiting the chained list + * \brief Get the next Dicom entry while visiting the SQItem * \return The next DocEntry if found, otherwhise NULL */ DocEntry *SQItem::GetNextEntry()