+ * \ingroup gdcmObject
+ * \brief Set the 'boundaries' gdcmObject (gdcmDicomDirPatient,
+ * gdcmDicomDirStudy, gdcmDicomDirSerie, gdcmDicomDirImage)
+ * comming for the parsing of a DICOMDIR file
+ * \warning NOT en user intended function
+ * @param flag = 0 when META to be dealt with
+ */
+void gdcmObject::ResetBoundaries(int flag) {
+
+ if (flag) { // it's NOT a META
+ // upwards to fffe,e000
+ for( i=j=debut();
+ ((*i)->GetGroup() != 0xfffe) && ((*i)->GetElement() != 0xe000);
+ --i,j--) {
+ }
+ beginObj=j;
+ }
+
+ // upwards again to fffe,e000
+ if (fin()== (--(plistEntries->end())) ) // Don't try anything more when end
+ return; // of Chained List is reached
+
+ for( i=j=fin();
+ ((*i)->GetGroup() != 0xfffe) && ((*i)->GetElement() != 0xe000);
+ --i,j--) {
+ }
+ j--;
+ endObj=j;
+}
+
+/**