Exemple #1
0
        // --------------------------------
        // - End public properties region -
        // --------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public override bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterSequenceAttribute(this))
            {
                sequenceItem.Accept(sopClassVisitor);
            }

            return(sopClassVisitor.VisitLeaveSequenceAttribute(this));
        }
Exemple #2
0
        // ------------------------------
        // - End internal methods region -
        // ------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public void Accept(SopClassVisitor1 sopClassVisitor)
        {
            sopClassVisitor.VisitEnterSequenceItem(this);

            foreach (IAttributeOrMacro attributeOrMacro in this)
            {
                attributeOrMacro.Accept(sopClassVisitor);
            }

            sopClassVisitor.VisitLeaveSequenceItem(this);
        }
Exemple #3
0
        // --------------------------------
        // - End public properties region -
        // --------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterDimseDataSetPair(this))
            {
                foreach (Module module in this.modules)
                {
                    if (!module.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return(sopClassVisitor.VisitLeaveDimseDataSetPair(this));
        }
Exemple #4
0
        // --------------------------------
        // - End public properties region -
        // --------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterSopClass(this))
            {
                foreach (DimseDataSetPair dimseDataSetPair in this.dimseDataSetPairs)
                {
                    if (!dimseDataSetPair.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return(sopClassVisitor.VisitLeaveSopClass(this));
        }
Exemple #5
0
        // ------------------------------
        // - End internal methods region -
        // ------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterMacro(this))
            {
                foreach (IAttributeOrMacro attributeOrMacro in this)
                {
                    if (!attributeOrMacro.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return(sopClassVisitor.VisitLeaveMacro(this));
        }
Exemple #6
0
        // ---------------------------
        // - End constructors region -
        // ---------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public override bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            return(sopClassVisitor.VisitSingleAttribute(this));
        }
Exemple #7
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterDimseDataSetPair(this))
            {
                foreach (Module module in this.modules)
                {
                    if (!module.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return (sopClassVisitor.VisitLeaveDimseDataSetPair(this));
        }
Exemple #8
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public void Accept(SopClassVisitor1 sopClassVisitor)
        {
            sopClassVisitor.VisitEnterSequenceItem(this);

            foreach (IAttributeOrMacro attributeOrMacro in this)
            {
                attributeOrMacro.Accept(sopClassVisitor);
            }

            sopClassVisitor.VisitLeaveSequenceItem(this);
        }
Exemple #9
0
        // ------------------------------
        // - End internal methods region -
        // ------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public abstract bool Accept(SopClassVisitor1 sopClassVisitor);
Exemple #10
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterMacro(this))
            {
                foreach (IAttributeOrMacro attributeOrMacro in this)
                {
                    if (!attributeOrMacro.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return (sopClassVisitor.VisitLeaveMacro(this));
        }
Exemple #11
0
 // -------------------------------
 // - Begin public methods region -
 // -------------------------------
 /// <summary>
 /// Accept method in the context of the "Hierarchical Visitor Pattern".
 /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
 /// </summary>
 /// <param name="sopClassVisitor">The SOP Class visitor.</param>
 /// <returns>
 /// true: continue traversing the siblings if this instance.
 /// false: stop traversing the siblings if this instance.
 /// </returns>
 public override bool Accept(SopClassVisitor1 sopClassVisitor)
 {
     return (sopClassVisitor.VisitSingleAttribute(this));
 }
Exemple #12
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public override bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterSequenceAttribute(this))
            {
                sequenceItem.Accept(sopClassVisitor);
            }

            return (sopClassVisitor.VisitLeaveSequenceAttribute(this));
        }
Exemple #13
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="sopClassVisitor">The SOP Class visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings if this instance.
        /// false: stop traversing the siblings if this instance.
        /// </returns>
        public bool Accept(SopClassVisitor1 sopClassVisitor)
        {
            if (sopClassVisitor.VisitEnterSopClass(this))
            {
                foreach (DimseDataSetPair dimseDataSetPair in this.dimseDataSetPairs)
                {
                    if (!dimseDataSetPair.Accept(sopClassVisitor))
                    {
                        break;
                    }
                }
            }

            return (sopClassVisitor.VisitLeaveSopClass(this));
        }
Exemple #14
0
 // -------------------------------
 // - Begin public methods region -
 // -------------------------------
 /// <summary>
 /// Accept method in the context of the "Hierarchical Visitor Pattern".
 /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
 /// </summary>
 /// <param name="sopClassVisitor">The SOP Class visitor.</param>
 /// <returns>
 /// true: continue traversing the siblings if this instance.
 /// false: stop traversing the siblings if this instance.
 /// </returns>
 public abstract bool Accept(SopClassVisitor1 sopClassVisitor);