Ejemplo n.º 1
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            IdName     obj  = (IdName)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.guid);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.id);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.name);
        }
Ejemplo n.º 2
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            IdName    obj = (IdName)(obj1 != null ? obj1 : bin.onObjectCreated(new IdName()));

            base.read(obj, bin1, version);
            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.guid = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.id = bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.name = bbuf.getString();

            return(obj);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Reads all colors and updates the cache.
        /// </summary>
        protected override void ProtectedLoadAllObjectsUnsync()
        {
            ColorData[] colorDatas    = ix.checkoutColors(LockC.NO);
            IdName[]    myMarkerNames = new IdName[colorDatas.Length];
            int         idx           = 0;

            foreach (ColorData c in colorDatas)
            {
                IdName idn = new IdName();
                idn.id               = c.id;
                idn.guid             = c.guid;
                idn.name             = c.name;
                myMarkerNames[idx++] = idn;
            }

            Invalidate();
            foreach (ColorData c in colorDatas)
            {
                ProtectedAddUnsync(c);
            }
            SetMarkerNames(myMarkerNames);
        }
Ejemplo n.º 4
0
 public IdName(IdName rhs) : base(rhs)
 {
     this.guidValue = rhs.guidValue;
     this.idValue   = rhs.idValue;
     this.nameValue = rhs.nameValue;
 }