Пример #1
0
        /// <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));
        }
Пример #2
0
        /// <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));
        }
Пример #3
0
        /// <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));
        }
Пример #4
0
 /// <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));
 }
Пример #5
0
        /// <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));
        }
Пример #6
0
 /// <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);
Пример #7
0
 /// <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));
 }
Пример #8
0
        /// <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));
        }
Пример #9
0
        /// <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));
        }
Пример #10
0
 /// <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);