Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2005/01/25 15:44:24 $
- Version: $Revision: 1.60 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.62 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool SQItem::AddEntry(DocEntry *entry)
{
DocEntries.push_back(entry);
- //TODO : check if it worked
return true;
}
* @param entryToRemove Entry to remove AND delete.
* @return true if the entry was found and removed; false otherwise
*/
-bool SQItem::RemoveEntry( DocEntry* entryToRemove)
+bool SQItem::RemoveEntry( DocEntry *entryToRemove)
{
for(ListDocEntry::iterator it = DocEntries.begin();
it != DocEntries.end();
* @param entryToRemove Entry to remove.
* @return true if the entry was found and removed; false otherwise
*/
-bool SQItem::RemoveEntryNoDestroy(DocEntry* entryToRemove)
+bool SQItem::RemoveEntryNoDestroy(DocEntry *entryToRemove)
{
for(ListDocEntry::iterator it = DocEntries.begin();
it != DocEntries.end();
* \brief Get the first Dicom entry while visiting the SQItem
* \return The first DocEntry if found, otherwhise 0
*/
-DocEntry * SQItem::GetFirstEntry()
+DocEntry *SQItem::GetFirstEntry()
{
ItDocEntries = DocEntries.begin();
if (ItDocEntries != DocEntries.end())
*/
DocEntry *SQItem::GetNextEntry()
{
- // gdcmAssertMacro (ItDocEntries != DocEntries.end());
- {
- ++ItDocEntries;
- if (ItDocEntries != DocEntries.end())
- return *ItDocEntries;
- return NULL;
- }
+ ++ItDocEntries;
+ if (ItDocEntries != DocEntries.end())
+ return *ItDocEntries;
+ return NULL;
}
/**
for(ListDocEntry::iterator i = DocEntries.begin();
i != DocEntries.end(); ++i)
{
- if ( (*i)->GetGroup()==group && (*i)->GetElement()==elem )
+ if ( (*i)->GetGroup() == group && (*i)->GetElement() == elem )
return *i;
}
return NULL;