-/**
- * \ingroup gdcmParser
- * \brief Prints the Header Entries (Dicom Elements)
- * from the chained list
- * and indents the elements belonging to a SeQuence
- * @return
- */
-void gdcmParser::PrintEntryNiceSQ(std::ostream & os) {
- int countSQ = 0;
- std::ostringstream tab;
- tab << " ";
- for (ListTag::iterator i = listEntries.begin();
- i != listEntries.end();
- ++i)
- {
- // we ignore '0 length' SeQuences
- if ( (*i)->GetVR() == "SQ" && (*i)->GetReadLength()!=0){
- countSQ ++;
- }
- // a SeQuence is over when a Sequence Delimiter Item is found
- // pb : 'actual length' Sequence have NO Sequence Delimiter
- // --> They 'never' finish : check the global length !
- if ( (*i)->GetGroup() == 0xfffe && (*i)->GetElement() == 0xe0dd){
- countSQ --;
- continue;
- }
-
-
- if (countSQ != 0) {
- for (int i=0;i<countSQ;i++)
- os << tab.str();
- }
- (*i)->SetPrintLevel(printLevel);
- (*i)->Print(os);
- }
-}