コード例 #1
0
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            CapricosaData cloneResult = (CapricosaData)cloneO;

            cloneResult.mushrooms = this.mushrooms;
        }
コード例 #2
0
ファイル: ChildData.cs プロジェクト: victoriahard/ops
 protected override void NewDataArrived(OPSObject o)
 {
     if (newData != null)
     {
         newData(this, (ChildData)o);
     }
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: victoriahard/ops
 //
 private void SubscriberNewData(Subscriber sender, OPSObject data)
 {
     if (client != null)
     {
         client.SubscriberNewData(sender, (Ops.ParticipantInfoData)data);
     }
 }
コード例 #4
0
ファイル: BaseData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            BaseData cloneResult = (BaseData)cloneO;

            cloneResult.baseText = this.baseText;
        }
コード例 #5
0
ファイル: ExtraAllt.cs プロジェクト: victoriahard/ops
 protected override void NewDataArrived(OPSObject o)
 {
     if (newData != null)
     {
         newData(this, (ExtraAllt)o);
     }
 }
コード例 #6
0
ファイル: FooData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            FooData cloneResult = (FooData)cloneO;

            cloneResult.fooString = this.fooString;
        }
コード例 #7
0
ファイル: ChildData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            ChildData cloneResult = (ChildData)cloneO;

            cloneResult.bo          = this.bo;
            cloneResult.b           = this.b;
            cloneResult.i           = this.i;
            cloneResult.l           = this.l;
            cloneResult.f           = this.f;
            cloneResult.d           = this.d;
            cloneResult.s           = this.s;
            cloneResult.test2       = (TestData)this.test2.Clone();
            cloneResult.testPointer = (TestAll.TestData) this.testPointer.Clone();
            cloneResult.fruit       = (Fruit)this.fruit.Clone();
            cloneResult.bos         = new List <bool>(this.bos);
            cloneResult.bs          = new List <byte>(this.bs);
            cloneResult.is_         = new List <int>(this.is_);
            cloneResult.ls          = new List <long>(this.ls);
            cloneResult.fs          = new List <float>(this.fs);
            cloneResult.ds          = new List <double>(this.ds);
            cloneResult.ss          = new List <string>(this.ss);
            cloneResult.test2s      = new List <TestData>(this.test2s.Count);
            this.test2s.ForEach((item) => { cloneResult.test2s.Add((TestData)item.Clone()); });
            cloneResult.secondVirtArray = new List <TestData>(this.secondVirtArray.Count);
            this.secondVirtArray.ForEach((item) => { cloneResult.secondVirtArray.Add((TestData)item.Clone()); });
            cloneResult.test2s2 = new List <TestData>(this.test2s2.Count);
            this.test2s2.ForEach((item) => { cloneResult.test2s2.Add((TestData)item.Clone()); });
        }
コード例 #8
0
ファイル: VessuvioData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            VessuvioData cloneResult = (VessuvioData)cloneO;

            cloneResult.ham = this.ham;
        }
コード例 #9
0
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            Cheese cloneResult = (Cheese)cloneO;

            cloneResult.name = this.name;
            cloneResult.age  = this.age;
        }
コード例 #10
0
ファイル: TestData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            TestData cloneResult = (TestData)cloneO;

            cloneResult.text  = this.text;
            cloneResult.value = this.value;
        }
コード例 #11
0
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            PizzaData cloneResult = (PizzaData)cloneO;

            cloneResult.cheese      = this.cheese;
            cloneResult.tomatoSauce = this.tomatoSauce;
        }
コード例 #12
0
ファイル: BaseData.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            BaseData cloneResult = (BaseData)cloneO;

            cloneResult.Id   = this.Id;
            cloneResult.Name = this.Name;
        }
コード例 #13
0
ファイル: Form1.cs プロジェクト: victoriahard/ops
        //
        private void SubscriberNewData(Subscriber sender, OPSObject data)
        {
            OPSMessage mess = sender.GetMessage();

            if (client != null)
            {
                client.SubscriberNewData(sender, (T)data);
            }
        }
コード例 #14
0
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            LHCData cloneResult = (LHCData)cloneO;

            cloneResult.bearnaise = this.bearnaise;
            cloneResult.beef      = this.beef;
            cloneResult.p         = new List <pizza.PizzaData>(this.p.Count);
            this.p.ForEach((item) => { cloneResult.p.Add((pizza.PizzaData)item.Clone()); });
        }
コード例 #15
0
ファイル: OPSMessage.cs プロジェクト: victoriahard/ops
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     this.messageType       = archive.Inout("messageType", messageType);
     this.publisherPriority = archive.Inout("publisherPriority", publisherPriority);
     this.publicationID     = archive.Inout("publicationID", publicationID);
     this.publisherName     = archive.Inout("publisherName", publisherName);
     this.topicName         = archive.Inout("topicName", topicName);
     this.topLevelKey       = archive.Inout("topLevelKey", topLevelKey);
     this.address           = archive.Inout("address", address);
     this.data = (OPSObject)archive.Inout("data", data);
 }
コード例 #16
0
ファイル: OPSMessage.cs プロジェクト: staxgr/ops
 public override void FillClone(OPSObject cloneO)
 {
     base.FillClone(cloneO);
     OPSMessage cloneResult = (OPSMessage) cloneO;
     cloneResult.SetKey(this.GetKey());
     cloneResult.messageType = this.messageType;
     cloneResult.publisherPriority = this.publisherPriority;
     cloneResult.publicationID = this.publicationID;
     cloneResult.publisherName = this.publisherName;
     cloneResult.topicName = this.topicName;
     cloneResult.topLevelKey = this.topLevelKey;
     cloneResult.address = this.address;
     cloneResult.data = (OPSObject)this.data.Clone();
 }
コード例 #17
0
ファイル: OPSMessage.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            OPSMessage cloneResult = (OPSMessage)cloneO;

            cloneResult.SetKey(this.GetKey());
            cloneResult.messageType       = this.messageType;
            cloneResult.publisherPriority = this.publisherPriority;
            cloneResult.publicationID     = this.publicationID;
            cloneResult.publisherName     = this.publisherName;
            cloneResult.topicName         = this.topicName;
            cloneResult.topLevelKey       = this.topLevelKey;
            cloneResult.address           = this.address;
            cloneResult.data = (OPSObject)this.data.Clone();
        }
コード例 #18
0
ファイル: OPSMessage.cs プロジェクト: SimonK91/ops
        public override void Serialize(IArchiverInOut archive)
        {
            base.Serialize(archive);

            if (IdlVersionMask != 0)
            {
                OPSMessage_version = archive.Inout("OPSMessage_version", OPSMessage_version);
            }
            else
            {
                OPSMessage_version = 0;
            }

            this.messageType       = archive.Inout("messageType", messageType);
            this.publisherPriority = archive.Inout("publisherPriority", publisherPriority);
            this.publicationID     = archive.Inout("publicationID", publicationID);
            this.publisherName     = archive.Inout("publisherName", publisherName);
            this.topicName         = archive.Inout("topicName", topicName);
            this.topLevelKey       = archive.Inout("topLevelKey", topLevelKey);
            this.address           = archive.Inout("address", address);
            this.data = (OPSObject)archive.Inout("data", data);
        }
コード例 #19
0
ファイル: ExtraAllt.cs プロジェクト: victoriahard/ops
        public override void FillClone(OPSObject cloneO)
        {
            base.FillClone(cloneO);
            ExtraAllt cloneResult = (ExtraAllt)cloneO;

            cloneResult.extraCheese      = this.extraCheese;
            cloneResult.nrOfMushRooms    = this.nrOfMushRooms;
            cloneResult.meetQuality      = this.meetQuality;
            cloneResult.timestamp        = this.timestamp;
            cloneResult.timeBakedHours   = this.timeBakedHours;
            cloneResult.timeBakedSeconds = this.timeBakedSeconds;
            cloneResult.description      = this.description;
            cloneResult.cheese_          = (pizza.special.Cheese) this.cheese_.Clone();
            cloneResult.bools            = new List <bool>(this.bools);
            cloneResult.bytes            = new List <byte>(this.bytes);
            cloneResult.ints             = new List <int>(this.ints);
            cloneResult.longs            = new List <long>(this.longs);
            cloneResult.floats           = new List <float>(this.floats);
            cloneResult.doubles          = new List <double>(this.doubles);
            cloneResult.strings          = new List <string>(this.strings);
            cloneResult.cheeses          = new List <pizza.special.Cheese>(this.cheeses.Count);
            this.cheeses.ForEach((item) => { cloneResult.cheeses.Add((pizza.special.Cheese)item.Clone()); });
        }
コード例 #20
0
ファイル: OPSMessage.cs プロジェクト: staxgr/ops
 public void SetData(OPSObject data)
 {
     this.data = data;
 }
コード例 #21
0
ファイル: OPSMessage.cs プロジェクト: staxgr/ops
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     this.messageType = archive.Inout("messageType", messageType);
     this.publisherPriority = archive.Inout("publisherPriority", publisherPriority);
     this.publicationID = archive.Inout("publicationID", publicationID);
     this.publisherName = archive.Inout("publisherName", publisherName);
     this.topicName = archive.Inout("topicName", topicName);
     this.topLevelKey = archive.Inout("topLevelKey", topLevelKey);
     this.address = archive.Inout("address", address);
     this.data = (OPSObject) archive.Inout("data", data);
 }
コード例 #22
0
ファイル: OPSMessage.cs プロジェクト: victoriahard/ops
 public void SetData(OPSObject data)
 {
     this.data = data;
 }