示例#1
0
文件: SopClass.cs 项目: top501/DVTK-1
        /// <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
文件: SopClass.cs 项目: ewcasas/DVTK
        /// <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
文件: Attribute.cs 项目: ewcasas/DVTK
 /// <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);