Пример #1
0
 public MeasurementMetadataMapEnumerator(MeasurementMetadataMap collection) {
   collectionRef = collection;
   keyCollection = new global::System.Collections.Generic.List<System.Guid>(collection.Keys);
   currentIndex = -1;
   currentObject = null;
   currentSize = collectionRef.Count;
 }
Пример #2
0
 public void GetParsedMeasurementMetadata(MeasurementMetadataMap measurements)
 {
     CommonPINVOKE.SubscriberInstanceBase_GetParsedMeasurementMetadata(swigCPtr, MeasurementMetadataMap.getCPtr(measurements));
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        protected override void ParsedMetadata()
        {
            StatusMessage("Metadata successfully parsed.");

            if (HandleReceivedMetadata is null)
            {
                ErrorMessage("Metadata handler not defined.");
                return;
            }

            MeasurementMetadataMap metadata = new MeasurementMetadataMap();

            GetParsedMeasurementMetadata(metadata);
            HandleReceivedMetadata(metadata.ToDictionary(m => m.Key, m => m.Value.PointTag));
        }
Пример #4
0
 public MeasurementMetadataMap(MeasurementMetadataMap other) : this(CommonPINVOKE.new_MeasurementMetadataMap__SWIG_1(MeasurementMetadataMap.getCPtr(other)), true) {
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MeasurementMetadataMap obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }