/// <summary> /// tell whether to include the slice /// </summary> /// <param name="configurationNode"></param> /// <param name="obj"></param> /// <param name="flid"></param> /// <returns>true if this slice should be included</returns> virtual public bool IncludeSlice(XmlNode configurationNode, ICmObject obj, int flid) { if (m_filterList!= null) { string id = XmlUtils.GetOptionalAttributeValue(configurationNode, "id"); if (id != null) { XmlNode instruction = m_filterList.SelectSingleNode("SliceFilter/node[@id='" + id + "']"); if (instruction != null) return false; } } //skip slices representing fields which are not relevant under the current circumstances return obj.IsFieldRelevant(flid); }
/// <summary> /// tell whether to include the slice /// </summary> /// <param name="configurationNode"></param> /// <param name="obj"></param> /// <param name="flid"></param> /// <returns>true if this slice should be included</returns> virtual public bool IncludeSlice(XmlNode configurationNode, ICmObject obj, int flid, HashSet<Tuple<int, int>> propsToMonitor) { if (m_filterList!= null) { string id = XmlUtils.GetOptionalAttributeValue(configurationNode, "id"); if (id != null) { XmlNode instruction = m_filterList.SelectSingleNode("SliceFilter/node[@id='" + id + "']"); if (instruction != null) return false; } } //skip slices representing fields which are not relevant under the current circumstances. // If necessary note that the list of slices var result = obj.IsFieldRelevant(flid, propsToMonitor); return result; }
/// <summary> /// tell whether to include the slice /// </summary> /// <param name="configurationNode"></param> /// <param name="obj"></param> /// <param name="flid"></param> /// <returns>true if this slice should be included</returns> virtual public bool IncludeSlice(XmlNode configurationNode, ICmObject obj, int flid) { if (m_filterList != null) { string id = XmlUtils.GetOptionalAttributeValue(configurationNode, "id"); if (id != null) { XmlNode instruction = m_filterList.SelectSingleNode("SliceFilter/node[@id='" + id + "']"); if (instruction != null) { return(false); } } } //skip slices representing fields which are not relevant under the current circumstances return(obj.IsFieldRelevant(flid)); }
/// <summary> /// tell whether to include the slice /// </summary> /// <param name="configurationNode"></param> /// <param name="obj"></param> /// <param name="flid"></param> /// <returns>true if this slice should be included</returns> virtual public bool IncludeSlice(XmlNode configurationNode, ICmObject obj, int flid, HashSet <Tuple <int, int> > propsToMonitor) { if (m_filterList != null) { string id = XmlUtils.GetOptionalAttributeValue(configurationNode, "id"); if (id != null) { XmlNode instruction = m_filterList.SelectSingleNode("SliceFilter/node[@id='" + id + "']"); if (instruction != null) { return(false); } } } //skip slices representing fields which are not relevant under the current circumstances. // If necessary note that the list of slices var result = obj.IsFieldRelevant(flid, propsToMonitor); return(result); }