internal void FromNative(DataReaderQosWrapper wrapper) { Deadline = wrapper.Deadline; DestinationOrder = wrapper.DestinationOrder; Durability = wrapper.Durability; LatencyBudget = wrapper.LatencyBudget; Liveliness = wrapper.Liveliness; Ownership = wrapper.Ownership; Reliability = wrapper.Reliability; History = wrapper.History; ResourceLimits = wrapper.ResourceLimits; TimeBasedFilter = wrapper.TimeBasedFilter; ReaderDataLifecycle = wrapper.ReaderDataLifecycle; if (UserData == null) { UserData = new UserDataQosPolicy(); } UserData.FromNative(wrapper.UserData); if (Representation == null) { Representation = new DataRepresentationQosPolicy(); } Representation.FromNative(wrapper.Representation); }
internal void FromNative(DataWriterQosWrapper wrapper) { Durability = wrapper.Durability; DurabilityService = wrapper.DurabilityService; Deadline = wrapper.Deadline; LatencyBudget = wrapper.LatencyBudget; Liveliness = wrapper.Liveliness; Reliability = wrapper.Reliability; DestinationOrder = wrapper.DestinationOrder; History = wrapper.History; ResourceLimits = wrapper.ResourceLimits; TransportPriority = wrapper.TransportPriority; Lifespan = wrapper.Lifespan; Ownership = wrapper.Ownership; OwnershipStrength = wrapper.OwnershipStrength; WriterDataLifecycle = wrapper.WriterDataLifecycle; if (UserData == null) { UserData = new UserDataQosPolicy(); } UserData.FromNative(wrapper.UserData); if (Representation == null) { Representation = new DataRepresentationQosPolicy(); } Representation.FromNative(wrapper.Representation); }
/// <summary> /// Initializes a new instance of the <see cref="DataWriterQos"/> class. /// </summary> public DataWriterQos() { Durability = new DurabilityQosPolicy(); DurabilityService = new DurabilityServiceQosPolicy(); Deadline = new DeadlineQosPolicy(); LatencyBudget = new LatencyBudgetQosPolicy(); Liveliness = new LivelinessQosPolicy(); Reliability = new ReliabilityQosPolicy { Kind = ReliabilityQosPolicyKind.ReliableReliabilityQos, MaxBlockingTime = new Duration { Seconds = 0, NanoSeconds = 100000000, }, }; DestinationOrder = new DestinationOrderQosPolicy(); History = new HistoryQosPolicy(); ResourceLimits = new ResourceLimitsQosPolicy(); TransportPriority = new TransportPriorityQosPolicy(); Lifespan = new LifespanQosPolicy(); Ownership = new OwnershipQosPolicy(); UserData = new UserDataQosPolicy(); OwnershipStrength = new OwnershipStrengthQosPolicy(); WriterDataLifecycle = new WriterDataLifecycleQosPolicy(); Representation = new DataRepresentationQosPolicy(); }
/// <summary> /// Initializes a new instance of the <see cref="DataReaderQos"/> class. /// </summary> public DataReaderQos() { Durability = new DurabilityQosPolicy(); Deadline = new DeadlineQosPolicy(); LatencyBudget = new LatencyBudgetQosPolicy(); Liveliness = new LivelinessQosPolicy(); Reliability = new ReliabilityQosPolicy(); DestinationOrder = new DestinationOrderQosPolicy(); History = new HistoryQosPolicy(); ResourceLimits = new ResourceLimitsQosPolicy(); UserData = new UserDataQosPolicy(); Ownership = new OwnershipQosPolicy(); TimeBasedFilter = new TimeBasedFilterQosPolicy(); ReaderDataLifecycle = new ReaderDataLifecycleQosPolicy(); Representation = new DataRepresentationQosPolicy(); }