Exemplo n.º 1
0
        internal static ItemValueCollection GetItemValueCollection(OPCHDA_ITEM input, bool deallocate)
        {
            ItemValueCollection values = new ItemValueCollection {
                ClientHandle = input.hClient,
                AggregateID  = input.haAggregate
            };

            object[]   objArray  = OpcCom.Interop.GetVARIANTs(ref input.pvDataValues, input.dwCount, deallocate);
            DateTime[] timeArray = OpcCom.Interop.GetFILETIMEs(ref input.pftTimeStamps, input.dwCount, deallocate);
            int[]      numArray  = OpcCom.Interop.GetInt32s(ref input.pdwQualities, input.dwCount, deallocate);
            for (int i = 0; i < input.dwCount; i++)
            {
                Opc.Hda.ItemValue value2 = new Opc.Hda.ItemValue {
                    Value            = objArray[i],
                    Timestamp        = timeArray[i],
                    Quality          = new Opc.Da.Quality((short)(numArray[i] & 0xffff)),
                    HistorianQuality = ((Opc.Hda.Quality)numArray[i]) & ((Opc.Hda.Quality)(unchecked ((int)0xffff0000L)))
                };
                values.Add(value2);
            }
            return(values);
        }
Exemplo n.º 2
0
 // Token: 0x060005B2 RID: 1458 RVA: 0x00010048 File Offset: 0x0000F048
 public int Add(ItemValue value)
 {
     return(this.Add(value));
 }
Exemplo n.º 3
0
 // Token: 0x060005B1 RID: 1457 RVA: 0x0001003F File Offset: 0x0000F03F
 public int IndexOf(ItemValue value)
 {
     return(this.IndexOf(value));
 }
Exemplo n.º 4
0
 // Token: 0x060005B0 RID: 1456 RVA: 0x00010036 File Offset: 0x0000F036
 public bool Contains(ItemValue value)
 {
     return(this.Contains(value));
 }
Exemplo n.º 5
0
 // Token: 0x060005AF RID: 1455 RVA: 0x0001002D File Offset: 0x0000F02D
 public void Remove(ItemValue value)
 {
     this.Remove(value);
 }
Exemplo n.º 6
0
 // Token: 0x060005AE RID: 1454 RVA: 0x00010023 File Offset: 0x0000F023
 public void Insert(int index, ItemValue value)
 {
     this.Insert(index, value);
 }