Esempio n. 1
0
        /// <summary>
        /// Loads the node.
        /// </summary>
        /// <param name="io">[in] The node is read from io.</param>
        /// <exception cref="Columbus.ColumbusIOException">Throws ColumbusIOException if there is something wrong with the file.</exception>
        public override void load(IO binIo)
        {
            base.load(binIo);

            byte boolValues = binIo.readUByte1();

            m_isStatic            = Convert.ToBoolean(boolValues & 1);
            boolValues          >>= 1;
            m_isCompilerGenerated = Convert.ToBoolean(boolValues & 1);
            boolValues          >>= 1;
            m_accessibility       = (Types.AccessibilityKind)binIo.readUByte1();
            m_commentLines        = binIo.readUInt4();
            m_demangledName       = binIo.readUInt4();
            m_language            = (Types.LanguageKind)binIo.readUByte1();
            m_mangledName         = binIo.readUInt4();

            m_aggregated = binIo.readUInt4();

            m_declares = binIo.readUInt4();

            m_languageVariant = binIo.readUInt4();

            uint _id;

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                belongsToContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                compilationUnitContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                hasCommentContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                instanceContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                SourcePosition _ac = new SourcePosition();
                _ac.load(binIo);
                ListIteratorAssoc <Columbus.Lim.Asg.Nodes.Physical.File> .AssocEdge isContainedInAc = new ListIteratorAssoc <Columbus.Lim.Asg.Nodes.Physical.File> .AssocEdge();

                isContainedInAc.assocClass.acSourcePosition = _ac;
                isContainedInAc.id = _id;
                isContainedInAssocContainer.AddLast(isContainedInAc);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                usesContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                variantContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }
        }
        /// <summary>
        /// Loads the node.
        /// </summary>
        /// <param name="io">[in] The node is read from io.</param>
        /// <exception cref="Columbus.ColumbusIOException">Throws ColumbusIOException if there is something wrong with the file.</exception>
        public override void load(IO binIo)
        {
            base.load(binIo);

            m_position.load(binIo);
        }