internal static void CopyOut(v_reliabilityPolicyI_s from, ref ReliabilityQosPolicy to)
 {
     if (to == null)
     {
         to = new ReliabilityQosPolicy();
     }
     to.Kind        = (ReliabilityQosPolicyKind)from.v.kind;
     to.Synchronous = from.v.synchronous;
     DurationMarshaler.CopyOut(from.v.max_blocking_time, ref to.MaxBlockingTime);
 }
예제 #2
0
        internal static int countErrors(ReliabilityQosPolicy o)
        {
            int errorCount = 0;

            if (o.Kind > ReliabilityQosPolicyKind.ReliableReliabilityQos)
            {
                errorCount++;
            }
            errorCount += countErrors(o.MaxBlockingTime);
            return(errorCount);
        }
 internal static DDS.ReturnCode CopyIn(ReliabilityQosPolicy from, ref v_reliabilityPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         to.v.kind        = (V_RELIABILITYKIND)from.Kind;
         to.v.synchronous = from.Synchronous;
         result           = DurationMarshaler.CopyIn(from.MaxBlockingTime, ref to.v.max_blocking_time);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "ReliabilityQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
예제 #4
0
 public TopicBuiltinTopicDataImpl()
 { 
     reliabilityQosPolicy = new ReliabilityQosPolicyImpl(ReliabilityQosPolicyKind.RELIABLE, Duration.NewDuration(200, TimeUnit.MILLISECONDS, null), this.GetBootstrap()); 
 }
 public ModifiableReliabilityQosPolicy CopyFrom(ReliabilityQosPolicy other)
 {
     return new ModifiableReliabilityQosPolicyImpl(other) ;
 }
 public ModifiableReliabilityQosPolicyImpl(ReliabilityQosPolicy qos)
     : base(qos.GetKind(),qos.GetMaxBlockingTime(),qos.GetBootstrap())
 {
 }
예제 #7
0
 internal static void CopyOut(IntPtr from, ref ReliabilityQosPolicy to, int offset)
 {
 	if (to == null) to = new ReliabilityQosPolicy();
     to.Kind = (ReliabilityQosPolicyKind)
             BaseMarshaler.ReadInt32(from, offset + offset_kind);
     to.MaxBlockingTime = BaseMarshaler.ReadDuration(from, offset + offset_max_blocking_time);
     to.Synchronous = BaseMarshaler.ReadBoolean(from, offset + offset_synchronous);
 }
예제 #8
0
 internal void CopyOut(ref ReliabilityQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
예제 #9
0
 internal static DDS.ReturnCode CopyIn(ReliabilityQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null) {
         BaseMarshaler.Write(to, offset + offset_kind, (int)from.Kind);
         BaseMarshaler.Write(to, offset + offset_max_blocking_time, from.MaxBlockingTime);
         BaseMarshaler.Write(to, offset + offset_synchronous, from.Synchronous);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.ReliabilityQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "ReliabilityQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
예제 #10
0
 internal DDS.ReturnCode CopyIn(ReliabilityQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }