Example #1
0
 public PublisherHandler(string name)
 {
     m_name                = name;
     m_deviceMetadata      = new DeviceMetadataCollection();
     m_measurementMetadata = new MeasurementMetadataCollection();
     m_phasorMetadata      = new PhasorMetadataCollection();
 }
Example #2
0
 public PhasorMetadataCollection(PhasorMetadataCollection other) : this(CommonPINVOKE.new_PhasorMetadataCollection__SWIG_1(PhasorMetadataCollection.getCPtr(other)), true)
 {
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public PhasorMetadataCollectionEnumerator(PhasorMetadataCollection collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Example #4
0
 public void SetRange(int index, PhasorMetadataCollection values)
 {
     CommonPINVOKE.PhasorMetadataCollection_SetRange(swigCPtr, index, PhasorMetadataCollection.getCPtr(values));
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
        public static PhasorMetadataCollection Repeat(PhasorMetadata value, int count)
        {
            global::System.IntPtr    cPtr = CommonPINVOKE.PhasorMetadataCollection_Repeat(PhasorMetadata.getCPtr(value), count);
            PhasorMetadataCollection ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PhasorMetadataCollection(cPtr, true);

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

            if (CommonPINVOKE.SWIGPendingException.Pending)
            {
                throw CommonPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #7
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();
     }
 }
Example #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PhasorMetadataCollection obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }