Beispiel #1
0
 public PublisherHandler(string name)
 {
     m_name                = name;
     m_deviceMetadata      = new DeviceMetadataCollection();
     m_measurementMetadata = new MeasurementMetadataCollection();
     m_phasorMetadata      = new PhasorMetadataCollection();
 }
 public DeviceMetadataCollection(DeviceMetadataCollection other) : this(CommonPINVOKE.new_DeviceMetadataCollection__SWIG_1(DeviceMetadataCollection.getCPtr(other)), true)
 {
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public DeviceMetadataCollectionEnumerator(DeviceMetadataCollection collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, DeviceMetadataCollection values)
 {
     CommonPINVOKE.DeviceMetadataCollection_SetRange(swigCPtr, index, DeviceMetadataCollection.getCPtr(values));
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
 public void DefineMetadata(DeviceMetadataCollection deviceMetadata, MeasurementMetadataCollection measurementMetadata, PhasorMetadataCollection phasorMetadata)
 {
     CommonPINVOKE.PublisherInstance_DefineMetadata__SWIG_1(swigCPtr, DeviceMetadataCollection.getCPtr(deviceMetadata), MeasurementMetadataCollection.getCPtr(measurementMetadata), PhasorMetadataCollection.getCPtr(phasorMetadata));
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static DeviceMetadataCollection Repeat(DeviceMetadata value, int count)
        {
            global::System.IntPtr    cPtr = CommonPINVOKE.DeviceMetadataCollection_Repeat(DeviceMetadata.getCPtr(value), count);
            DeviceMetadataCollection ret  = (cPtr == global::System.IntPtr.Zero) ? null : new DeviceMetadataCollection(cPtr, true);

            if (CommonPINVOKE.SWIGPendingException.Pending)
            {
                throw CommonPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public DeviceMetadataCollection GetRange(int index, int count)
        {
            global::System.IntPtr    cPtr = CommonPINVOKE.DeviceMetadataCollection_GetRange(swigCPtr, index, count);
            DeviceMetadataCollection ret  = (cPtr == global::System.IntPtr.Zero) ? null : new DeviceMetadataCollection(cPtr, true);

            if (CommonPINVOKE.SWIGPendingException.Pending)
            {
                throw CommonPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DeviceMetadataCollection obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }