internal static void CopyOut(v_latencyPolicyI_s from, ref LatencyBudgetQosPolicy to) { if (to == null) { to = new LatencyBudgetQosPolicy(); } DurationMarshaler.CopyOut(from.v.duration, ref to.Duration); }
internal static void CopyOut(v_lifespanPolicyI_s from, ref LifespanQosPolicy to) { if (to == null) { to = new LifespanQosPolicy(); } DurationMarshaler.CopyOut(from.v.duration, ref to.Duration); }
internal static void CopyOut(v_deadlinePolicyI_s from, ref DeadlineQosPolicy to) { if (to == null) { to = new DeadlineQosPolicy(); } DurationMarshaler.CopyOut(from.v.period, ref to.Period); }
internal static void CopyOut(v_pacingPolicyI_s from, ref TimeBasedFilterQosPolicy to) { if (to == null) { to = new TimeBasedFilterQosPolicy(); } DurationMarshaler.CopyOut(from.v.minSeperation, ref to.MinimumSeparation); }
internal static void CopyOut(v_readerLifespanPolicyI_s from, ref ReaderLifespanQosPolicy to) { if (to == null) { to = new ReaderLifespanQosPolicy(); } to.UseLifespan = from.v.used; DurationMarshaler.CopyOut(from.v.duration, ref to.Duration); }
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); }
internal static void CopyOut(v_livelinessPolicyI_s from, ref LivelinessQosPolicy to) { if (to == null) { to = new LivelinessQosPolicy(); } to.Kind = (LivelinessQosPolicyKind)from.v.kind; DurationMarshaler.CopyOut(from.v.lease_duration, ref to.LeaseDuration); }
internal static void CopyOut(v_writerLifecyclePolicyI_s from, ref WriterDataLifecycleQosPolicy to) { if (to == null) { to = new WriterDataLifecycleQosPolicy(); } to.AutodisposeUnregisteredInstances = from.v.autodispose_unregistered_instances; DurationMarshaler.CopyOut(from.v.autopurge_suspended_samples_delay, ref to.AutopurgeSuspendedSamplesDelay); DurationMarshaler.CopyOut(from.v.autounregister_instance_delay, ref to.AutounregisterInstanceDelay); }
internal static void CopyOut(v_durabilityServicePolicyI_s from, ref DurabilityServiceQosPolicy to) { if (to == null) { to = new DurabilityServiceQosPolicy(); } DurationMarshaler.CopyOut(from.v.service_cleanup_delay, ref to.ServiceCleanupDelay); to.HistoryKind = (HistoryQosPolicyKind)from.v.history_kind; to.HistoryDepth = from.v.history_depth; to.MaxSamples = from.v.max_samples; to.MaxInstances = from.v.max_instances; to.MaxSamplesPerInstance = from.v.max_samples_per_instance; }
internal static DDS.ReturnCode CopyIn(LifespanQosPolicy from, ref v_lifespanPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { result = DurationMarshaler.CopyIn(from.Duration, ref to.v.duration); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "LifespanQosPolicy attribute may not be a null pointer."); } return(result); }
internal static DDS.ReturnCode CopyIn(DeadlineQosPolicy from, ref v_deadlinePolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { result = DurationMarshaler.CopyIn(from.Period, ref to.v.period); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "DeadlineQosPolicy attribute may not be a null pointer."); } return(result); }
internal static DDS.ReturnCode CopyIn(TimeBasedFilterQosPolicy from, ref v_pacingPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { result = DurationMarshaler.CopyIn(from.MinimumSeparation, ref to.v.minSeperation); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "TimeBasedFilterQosPolicy attribute may not be a null pointer."); } return(result); }
internal static DDS.ReturnCode CopyIn(LivelinessQosPolicy from, ref v_livelinessPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.kind = (V_LIVELINESSKIND)from.Kind; result = DurationMarshaler.CopyIn(from.LeaseDuration, ref to.v.lease_duration); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "LivelinessQosPolicy attribute may not be a null pointer."); } return(result); }
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); }
internal static void CopyOut(v_readerLifecyclePolicyI_s from, ref ReaderDataLifecycleQosPolicy to) { if (to == null) { to = new ReaderDataLifecycleQosPolicy(); } DurationMarshaler.CopyOut(from.v.autopurge_nowriter_samples_delay, ref to.AutopurgeNowriterSamplesDelay); DurationMarshaler.CopyOut(from.v.autopurge_disposed_samples_delay, ref to.AutopurgeDisposedSamplesDelay); to.EnableInvalidSamples = from.v.enable_invalid_samples; if (from.v.enable_invalid_samples) { to.InvalidSampleVisibility.Kind = DDS.InvalidSampleVisibilityQosPolicyKind.MinimumInvalidSamples; } else { to.InvalidSampleVisibility.Kind = DDS.InvalidSampleVisibilityQosPolicyKind.NoInvalidSamples; } }
internal static DDS.ReturnCode CopyIn(DurabilityServiceQosPolicy from, ref v_durabilityServicePolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.history_kind = (V_HISTORYQOSKIND)from.HistoryKind; to.v.history_depth = from.HistoryDepth; to.v.max_samples = from.MaxSamples; to.v.max_instances = from.MaxInstances; to.v.max_samples_per_instance = from.MaxSamplesPerInstance; result = DurationMarshaler.CopyIn(from.ServiceCleanupDelay, ref to.v.service_cleanup_delay); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "DurabilityServiceQosPolicy attribute may not be a null pointer."); } return(result); }
internal static DDS.ReturnCode CopyIn(WriterDataLifecycleQosPolicy from, ref v_writerLifecyclePolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.autodispose_unregistered_instances = from.AutodisposeUnregisteredInstances; result = DurationMarshaler.CopyIn(from.AutopurgeSuspendedSamplesDelay, ref to.v.autopurge_suspended_samples_delay); if (result == DDS.ReturnCode.Ok) { result = DurationMarshaler.CopyIn(from.AutounregisterInstanceDelay, ref to.v.autounregister_instance_delay); } } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "WriterDataLifecycleQosPolicy attribute may not be a null pointer."); } return(result); }
internal static DDS.ReturnCode CopyIn(ReaderDataLifecycleQosPolicy from, ref v_readerLifecyclePolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.invalid_sample_visibility = (V_INVALIDSAMPLEVISIBILITYKIND)from.InvalidSampleVisibility.Kind; to.v.enable_invalid_samples = from.EnableInvalidSamples; to.v.autopurge_dispose_all = from.AutopurgeDisposeAll; result = DurationMarshaler.CopyIn(from.AutopurgeNowriterSamplesDelay, ref to.v.autopurge_nowriter_samples_delay); if (result == DDS.ReturnCode.Ok) { result = DurationMarshaler.CopyIn(from.AutopurgeDisposedSamplesDelay, ref to.v.autopurge_disposed_samples_delay); } } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "ReaderDataLifecycleQosPolicy attribute may not be a null pointer."); } return(result); }
internal static void CleanupIn(ref v_latencyPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.duration); }
internal static void CleanupIn(ref v_readerLifespanPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.duration); }
internal static void CleanupIn(ref v_livelinessPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.lease_duration); }
internal static void CleanupIn(ref v_writerLifecyclePolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.autopurge_suspended_samples_delay); DurationMarshaler.CleanupIn(ref to.v.autounregister_instance_delay); }
internal static void CleanupIn(ref v_reliabilityPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.max_blocking_time); }
internal static void CleanupIn(ref v_readerLifecyclePolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.autopurge_nowriter_samples_delay); DurationMarshaler.CleanupIn(ref to.v.autopurge_disposed_samples_delay); }
internal static void CleanupIn(ref v_durabilityServicePolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.service_cleanup_delay); }
internal static void CleanupIn(ref v_pacingPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.minSeperation); }
internal static void CleanupIn(ref v_deadlinePolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.period); }