Exemple #1
0
 protected virtual void ErrorMessage(string message)
 {
     if (SwigDerivedClassHasMethod("ErrorMessage", swigMethodTypes1))
     {
         CommonPINVOKE.PublisherInstance_ErrorMessageSwigExplicitPublisherInstance(swigCPtr, message);
     }
     else
     {
         CommonPINVOKE.PublisherInstance_ErrorMessage(swigCPtr, message);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 protected virtual void ClientConnected(SubscriberConnection connection)
 {
     if (SwigDerivedClassHasMethod("ClientConnected", swigMethodTypes2))
     {
         CommonPINVOKE.PublisherInstance_ClientConnectedSwigExplicitPublisherInstance(swigCPtr, SubscriberConnection.getCPtr(connection));
     }
     else
     {
         CommonPINVOKE.PublisherInstance_ClientConnected(swigCPtr, SubscriberConnection.getCPtr(connection));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public virtual void Stop()
 {
     if (SwigDerivedClassHasMethod("Stop", swigMethodTypes11))
     {
         CommonPINVOKE.PublisherInstance_StopSwigExplicitPublisherInstance(swigCPtr);
     }
     else
     {
         CommonPINVOKE.PublisherInstance_Stop(swigCPtr);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 protected virtual void StatusMessage(string message)
 {
     if (SwigDerivedClassHasMethod("StatusMessage", swigMethodTypes2))
     {
         CommonPINVOKE.SubscriberInstanceBase_StatusMessageSwigExplicitSubscriberInstanceBase(swigCPtr, message);
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_StatusMessage(swigCPtr, message);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
 protected virtual void ProcessingIntervalChangeRequested(SubscriberConnection connection)
 {
     if (SwigDerivedClassHasMethod("ProcessingIntervalChangeRequested", swigMethodTypes4))
     {
         CommonPINVOKE.PublisherInstance_ProcessingIntervalChangeRequestedSwigExplicitPublisherInstance(swigCPtr, SubscriberConnection.getCPtr(connection));
     }
     else
     {
         CommonPINVOKE.PublisherInstance_ProcessingIntervalChangeRequested(swigCPtr, SubscriberConnection.getCPtr(connection));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #6
0
 public decimal?ValueAsDecimal(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsDecimal__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableDecimal tempDecimal = (cPtr == global::System.IntPtr.Zero) ? null : new NullableDecimal(cPtr, false)) {
         if (tempDecimal?.HasValue() ?? false)
         {
             return(System.Convert.ToDecimal(Common.ToString(tempDecimal.GetValueOrDefault())));
         }
         return(null);
     }
 }
Exemple #7
0
 public System.DateTime? ValueAsDateTime(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsDateTime__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableDateTime tempDate = (cPtr == global::System.IntPtr.Zero) ? null : new NullableDateTime(cPtr, false)) {
         if (tempDate?.HasValue() ?? false)
         {
             return(new System.DateTime(Common.ToTicks(tempDate.GetValueOrDefault())));
         }
         return(null);
     }
 }
Exemple #8
0
 protected virtual void HandleUserCommand(SubscriberConnection connection, uint command, ByteBuffer buffer)
 {
     if (SwigDerivedClassHasMethod("HandleUserCommand", swigMethodTypes7))
     {
         CommonPINVOKE.PublisherInstance_HandleUserCommandSwigExplicitPublisherInstance(swigCPtr, SubscriberConnection.getCPtr(connection), command, ByteBuffer.getCPtr(buffer));
     }
     else
     {
         CommonPINVOKE.PublisherInstance_HandleUserCommand(swigCPtr, SubscriberConnection.getCPtr(connection), command, ByteBuffer.getCPtr(buffer));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 protected virtual void HistoricalReadComplete()
 {
     if (SwigDerivedClassHasMethod("HistoricalReadComplete", swigMethodTypes10))
     {
         CommonPINVOKE.SubscriberInstanceBase_HistoricalReadCompleteSwigExplicitSubscriberInstanceBase(swigCPtr);
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_HistoricalReadComplete(swigCPtr);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #10
0
 public ulong?ValueAsUInt64(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsUInt64__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableUInt64 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableUInt64(cPtr, false)) {
         if (tempValue?.HasValue() ?? false)
         {
             return(tempValue.GetValueOrDefault());
         }
         return(null);
     }
 }
Exemple #11
0
 public unsafe static DataSet FromXml(byte[] buffer, uint length)
 {
     fixed(byte *swig_ptrTo_buffer = buffer)
     {
         {
             global::System.IntPtr cPtr = CommonPINVOKE.DataSet_FromXml__SWIG_2((global::System.IntPtr)swig_ptrTo_buffer, length);
             DataSet ret = (cPtr == global::System.IntPtr.Zero) ? null : new DataSet(cPtr, true);
             if (CommonPINVOKE.SWIGPendingException.Pending)
             {
                 throw CommonPINVOKE.SWIGPendingException.Retrieve();
             }
             return(ret);
         }
     }
 }
 protected virtual void SetupSubscriberConnector(SubscriberConnector connector)
 {
     if (SwigDerivedClassHasMethod("SetupSubscriberConnector", swigMethodTypes0))
     {
         CommonPINVOKE.SubscriberInstanceBase_SetupSubscriberConnectorSwigExplicitSubscriberInstanceBase(swigCPtr, SubscriberConnector.getCPtr(connector));
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_SetupSubscriberConnector(swigCPtr, SubscriberConnector.getCPtr(connector));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void SubscriptionUpdated(SignalIndexCache signalIndexCache)
 {
     if (SwigDerivedClassHasMethod("SubscriptionUpdated", swigMethodTypes7))
     {
         CommonPINVOKE.SubscriberInstanceBase_SubscriptionUpdatedSwigExplicitSubscriberInstanceBase(swigCPtr, SignalIndexCache.getCPtr(signalIndexCache));
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_SubscriptionUpdated(swigCPtr, SignalIndexCache.getCPtr(signalIndexCache));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 internal virtual void ReceivedNewMeasurements(SimpleMeasurement measurements, int length)
 {
     if (SwigDerivedClassHasMethod("ReceivedNewMeasurements", swigMethodTypes8))
     {
         CommonPINVOKE.SubscriberInstanceBase_ReceivedNewMeasurementsSwigExplicitSubscriberInstanceBase(swigCPtr, SimpleMeasurement.getCPtr(measurements), length);
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_ReceivedNewMeasurements(swigCPtr, SimpleMeasurement.getCPtr(measurements), length);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 protected virtual void ReceivedMetadata(ByteBuffer payload)
 {
     if (SwigDerivedClassHasMethod("ReceivedMetadata", swigMethodTypes5))
     {
         CommonPINVOKE.SubscriberInstanceBase_ReceivedMetadataSwigExplicitSubscriberInstanceBase(swigCPtr, ByteBuffer.getCPtr(payload));
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_ReceivedMetadata(swigCPtr, ByteBuffer.getCPtr(payload));
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 protected virtual void ParsedMetadata()
 {
     if (SwigDerivedClassHasMethod("ParsedMetadata", swigMethodTypes6))
     {
         CommonPINVOKE.SubscriberInstanceBase_ParsedMetadataSwigExplicitSubscriberInstanceBase(swigCPtr);
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_ParsedMetadata(swigCPtr);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #17
0
 public ushort?ValueAsUInt16(int columnIndex)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsUInt16__SWIG_0(swigCPtr, columnIndex);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableUInt16 tempValue = (cPtr == global::System.IntPtr.Zero) ? null : new NullableUInt16(cPtr, false)) {
         if (tempValue?.HasValue() ?? false)
         {
             return(tempValue.GetValueOrDefault());
         }
         return(null);
     }
 }
 protected virtual void ConnectionTerminated()
 {
     if (SwigDerivedClassHasMethod("ConnectionTerminated", swigMethodTypes12))
     {
         CommonPINVOKE.SubscriberInstanceBase_ConnectionTerminatedSwigExplicitSubscriberInstanceBase(swigCPtr);
     }
     else
     {
         CommonPINVOKE.SubscriberInstanceBase_ConnectionTerminated(swigCPtr);
     }
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #19
0
 public System.Guid? ValueAsGuid(string columnName)
 {
     global::System.IntPtr cPtr = CommonPINVOKE.DataRow_ValueAsGuid__SWIG_1(swigCPtr, columnName);
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
     using (NullableGuid tempGuid = (cPtr == global::System.IntPtr.Zero) ? null : new NullableGuid(cPtr, false)) {
         if (!(tempGuid?.HasValue() ?? false))
         {
             return(null);
         }
         byte[] data = new byte[16];
         Common.GetGuidBytes(tempGuid.GetValueOrDefault(), data);
         return(new System.Guid(data));
     }
 }
 protected virtual void DataStartTime(System.DateTime startTime)
 {
     datetime_t tempstartTime = Common.FromTicks(startTime.Ticks);
     {
         if (SwigDerivedClassHasMethod("DataStartTime", swigMethodTypes4))
         {
             CommonPINVOKE.SubscriberInstanceBase_DataStartTimeSwigExplicitSubscriberInstanceBase(swigCPtr, datetime_t.getCPtr(tempstartTime));
         }
         else
         {
             CommonPINVOKE.SubscriberInstanceBase_DataStartTime(swigCPtr, datetime_t.getCPtr(tempstartTime));
         }
         if (CommonPINVOKE.SWIGPendingException.Pending)
         {
             throw CommonPINVOKE.SWIGPendingException.Retrieve();
         }
     }
 }
 private void destroy_iterator(global::System.IntPtr swigiterator) {
   CommonPINVOKE.MeasurementMetadataMap_destroy_iterator(swigCPtr, swigiterator);
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
 }
 private global::System.IntPtr create_iterator_begin() {
   global::System.IntPtr ret = CommonPINVOKE.MeasurementMetadataMap_create_iterator_begin(swigCPtr);
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
        protected virtual SubscriptionInfo CreateSubscriptionInfo()
        {
            SubscriptionInfo ret = new SubscriptionInfo((SwigDerivedClassHasMethod("CreateSubscriptionInfo", swigMethodTypes1) ? CommonPINVOKE.SubscriberInstanceBase_CreateSubscriptionInfoSwigExplicitSubscriberInstanceBase(swigCPtr) : CommonPINVOKE.SubscriberInstanceBase_CreateSubscriptionInfo(swigCPtr)), true);

            if (CommonPINVOKE.SWIGPendingException.Pending)
            {
                throw CommonPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public MeasurementMetadataMap(MeasurementMetadataMap other) : this(CommonPINVOKE.new_MeasurementMetadataMap__SWIG_1(MeasurementMetadataMap.getCPtr(other)), true) {
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
 }
 public MeasurementMetadataMap() : this(CommonPINVOKE.new_MeasurementMetadataMap__SWIG_0(), true) {
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #26
0
 public DataColumn(DataTable parent, string name, DataType type, string expression) : this(CommonPINVOKE.new_DataColumn__SWIG_0(DataTable.getCPtr(parent), name, (int)type, expression), true)
 {
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public bool empty() {
   bool ret = CommonPINVOKE.MeasurementMetadataMap_empty(swigCPtr);
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void Clear() {
   CommonPINVOKE.MeasurementMetadataMap_Clear(swigCPtr);
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
 }
 private uint size() {
   uint ret = CommonPINVOKE.MeasurementMetadataMap_size(swigCPtr);
   if (CommonPINVOKE.SWIGPendingException.Pending) throw CommonPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemple #30
0
 public MeasurementMetadataCollection(MeasurementMetadataCollection other) : this(CommonPINVOKE.new_MeasurementMetadataCollection__SWIG_1(MeasurementMetadataCollection.getCPtr(other)), true)
 {
     if (CommonPINVOKE.SWIGPendingException.Pending)
     {
         throw CommonPINVOKE.SWIGPendingException.Retrieve();
     }
 }