+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);
+ }
+ else
+ os << " -------------- should have a sequence terminator item";
+ }
+}
+
+/*
+ * \brief canonical Writer
+ */
+void gdcmSeqEntry::Write(FILE *fp, FileType filetype)
+{
+ gdcmDocEntry::Write(fp, filetype);
+ for(ListSQItem::iterator cc = GetSQItems().begin();
+ cc != GetSQItems().end();
+ ++cc)
+ {
+ (*cc)->Write(fp, filetype);
+ }
+}