/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public bool Accept(SopClassVisitor2 sopClassVisitor) { if (sopClassVisitor.VisitEnterSopClass(this)) { foreach (DimseDataSetPair dimseDataSetPair in this.dimseDataSetPairs) { if (!dimseDataSetPair.Accept(sopClassVisitor)) { break; } } } return(sopClassVisitor.VisitLeaveSopClass(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public bool Accept(SopClassVisitor2 sopClassVisitor) { if (sopClassVisitor.VisitEnterDimseDataSetPair(this)) { List <Attribute> attributes = this.DataSet.GetAttributes(); foreach (Attribute attribute in attributes) { if (!attribute.Accept(sopClassVisitor)) { break; } } } return(sopClassVisitor.VisitLeaveDimseDataSetPair(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public override bool Accept(SopClassVisitor2 attributeVisitor) { if (attributeVisitor.VisitEnterSequenceAttribute(this)) { List <Attribute> attributes = this.sortedAttributeList.GetAttributes(); foreach (Attribute child in attributes) { if (!child.Accept(attributeVisitor)) { break; } } } return(attributeVisitor.VisitLeaveSequenceAttribute(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public override bool Accept(SopClassVisitor2 attributeVisitor) { return(attributeVisitor.VisitSingleAttribute(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public bool Accept(SopClassVisitor2 sopClassVisitor) { if (sopClassVisitor.VisitEnterDimseDataSetPair(this)) { List<Attribute> attributes = this.DataSet.GetAttributes(); foreach (Attribute attribute in attributes) { if (!attribute.Accept(sopClassVisitor)) { break; } } } return (sopClassVisitor.VisitLeaveDimseDataSetPair(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public abstract bool Accept(SopClassVisitor2 attributeVisitor);
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public override bool Accept(SopClassVisitor2 attributeVisitor) { return (attributeVisitor.VisitSingleAttribute(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public override bool Accept(SopClassVisitor2 attributeVisitor) { if (attributeVisitor.VisitEnterSequenceAttribute(this)) { List<Attribute> attributes = this.sortedAttributeList.GetAttributes(); foreach (Attribute child in attributes) { if (!child.Accept(attributeVisitor)) { break; } } } return (attributeVisitor.VisitLeaveSequenceAttribute(this)); }
/// <summary> /// Accept method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="attributeVisitor">The Attribute visitor.</param> /// <returns> /// true: continue traversing the siblings if this instance. /// false: stop traversing the siblings if this instance. /// </returns> public bool Accept(SopClassVisitor2 sopClassVisitor) { if (sopClassVisitor.VisitEnterSopClass(this)) { foreach (DimseDataSetPair dimseDataSetPair in this.dimseDataSetPairs) { if (!dimseDataSetPair.Accept(sopClassVisitor)) { break; } } } return (sopClassVisitor.VisitLeaveSopClass(this)); }