-gdcmSeqEntry::~gdcmSeqEntry() {
- for(ListSQItem::iterator cc = items.begin();cc != items.end();++cc)
- {
- delete *cc;
- }
- if (!seq_term)
- delete seq_term;
-}
-
-/*
- * \brief canonical Printer
- */
-void gdcmSeqEntry::Print(std::ostream &os){
-
- // First, Print the Dicom Element itself.
- SetPrintLevel(2);
- gdcmDocEntry::Print(os);
- os << std::endl;
-
- if (GetReadLength() == 0)
- return;
-
- // Then, Print each SQ Item
- for(ListSQItem::iterator cc = items.begin();cc != items.end();++cc)
- {
- (*cc)->Print(os);
- }
-
- // at end, print the sequence terminator item, if any
- if (delimitor_mode) {
- for (int i=0;i<SQDepthLevel+1;i++)
- os << " | " ;
- if (seq_term != NULL) {
- seq_term->Print(os);
- os << std::endl;
- }
- else
- // fusible
- os << " -------------- should have a sequence terminator item";
- }