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);

            m_TLLOC        = binIo.readUInt4();
            m_TLOC         = binIo.readUInt4();
            m_analysisTime = (Types.AnalysisTimeKind)binIo.readUByte1();
            m_changesetID  = binIo.readUInt4();
            m_shortName    = binIo.readUInt4();

            uint _id;

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

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                hasFilesContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor, only factory can instantiates nodes.
 /// </summary>
 /// <param name="nodeId">[in] The id of the node.</param>
 /// <param name="factory">[in] Poiter to the Factory the node belongs to.</param>
 public Component(uint nodeId, Factory factory) : base(nodeId, factory)
 {
     m_TLLOC           = 0;
     m_TLOC            = 0;
     m_analysisTime    = Types.AnalysisTimeKind.atkNow;
     m_changesetID     = 0;
     m_shortName       = 0;
     containsContainer = new LinkedList <uint>();
     hasFilesContainer = new LinkedList <uint>();
 }