+ /// \brief adds the passed ITEM to the ITEM chained List for this SeQuence.
+void gdcmSeqEntry::AddEntry(gdcmSQItem *sqItem, int itemNumber) {
+ sqItem->SetSQItemNumber(itemNumber);
+ items.push_back(sqItem);
+}
+
+/// \brief Sets the depth level of a Sequence Entry embedded in a SeQuence
+void gdcmSeqEntry::SetDepthLevel(int depth) {
+ SQDepthLevel = depth;
+}
+
+/// \brief return a pointer to the SQItem referenced by its ordinal number
+/// (returns the first one if ordinal number is <0
+/// returns the last one if ordinal number is > item number
+
+gdcmSQItem *gdcmSeqEntry::GetSQItemByOrdinalNumber(int nb) {
+ if (nb<0)
+ return (*(items.begin()));
+ int count = 0 ;
+ for(ListSQItem::iterator cc = items.begin();
+ cc != items.end();
+ count ++, ++cc){
+ if (count==nb)
+ return *cc;
+ }
+ return (*(items.end())); // Euhhhhh ?!? Is this the last one . FIXME
+}