+/**
+ * \brief add a rule for restricting a DICOM file to be in the serie we are
+ * trying to find. For example you can select only the DICOM file from a
+ * directory which would have a particular EchoTime==4.0.
+ * This method is a user level, value is not required to be formatted as a DICOM
+ * string
+ * \todo find a trick to allow user if he wants the Rectrictions to be *ored*
+ * (and not only *anded*)
+ * @param group tag group number we want restrict on a given value
+ * @param elem tag element number we want restrict on a given value
+ * @param value value to be checked to exclude File
+ * @param op operator we want to use to check
+ */
+void SerieHelper::AddRestriction(uint16_t group, uint16_t elem,
+ std::string const &value, int op)
+{
+ ExRule r;
+ r.group = group;
+ r.elem = elem;
+ r.value = value;
+ r.op = op;
+ ExRestrictions.push_back( r );
+}
+
+/**
+ * \brief add an extra 'SerieDetail' for building a 'Serie Identifier'
+ * that ensures (hope so) File constistency (Series Instance UID doesn't.
+ * @param group tag group number we want restrict on a given value
+ * @param elem tag element number we want restrict on a given value
+ */
+void SerieHelper::AddSeriesDetail(uint16_t group, uint16_t elem)
+{
+ m_UseSeriesDetails = true;
+
+ ExDetail d;
+ d.group = group;
+ d.elem = elem;
+ ExDetails.push_back( d );
+}