Пример #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_isAbstract = Convert.ToBoolean(boolValues & 1);
            boolValues >>= 1;
            m_classKind  = (Types.ClassKind)binIo.readUByte1();
            m_objectSize = binIo.readUInt4();

            uint _id;

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

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                isSubclassContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }
        }
Пример #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 Class(uint nodeId, Factory factory) : base(nodeId, factory)
 {
     m_classKind  = Types.ClassKind.clkAnnotation;
     m_isAbstract = false;
     m_objectSize = 0;
     grantsFriendshipContainer = new LinkedList <uint>();
     isSubclassContainer       = new LinkedList <uint>();
 }