Program: gdcm
Module: $RCSfile: gdcmSQItem.cxx,v $
Language: C++
- Date: $Date: 2005/01/24 16:44:54 $
- Version: $Revision: 1.58 $
+ Date: $Date: 2005/01/25 11:11:59 $
+ Version: $Revision: 1.59 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
: DocEntrySet( )
{
SQDepthLevel = depthLevel;
+ SQItemNumber = 0;
}
/**
*/
SQItem::~SQItem()
{
- for(ListDocEntry::iterator cc = DocEntries.begin();
- cc != DocEntries.end();
- ++cc)
- {
- delete *cc;
- }
- DocEntries.clear();
+ ClearEntry();
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Public
+/**
+ * \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 adds any Entry (Dicom Element) to the Sequence Item
* @param entry Entry to add