internal void FromNative(PublicationBuiltinTopicDataWrapper wrapper) { Deadline = wrapper.Deadline; DestinationOrder = wrapper.DestinationOrder; Durability = wrapper.Durability; DurabilityService = wrapper.DurabilityService; Key = wrapper.Key; LatencyBudget = wrapper.LatencyBudget; Lifespan = wrapper.Lifespan; Liveliness = wrapper.Liveliness; Ownership = wrapper.Ownership; OwnershipStrength = wrapper.OwnershipStrength; ParticipantKey = wrapper.ParticipantKey; Presentation = wrapper.Presentation; Reliability = wrapper.Reliability; if (Partition == null) { Partition = new PartitionQosPolicy(); } Partition.FromNative(wrapper.Partition); if (GroupData == null) { GroupData = new GroupDataQosPolicy(); } GroupData.FromNative(wrapper.GroupData); if (TopicData == null) { TopicData = new TopicDataQosPolicy(); } TopicData.FromNative(wrapper.TopicData); if (UserData == null) { UserData = new UserDataQosPolicy(); } UserData.FromNative(wrapper.UserData); if (wrapper.TopicName != IntPtr.Zero) { TopicName = Marshal.PtrToStringAnsi(wrapper.TopicName); } else { TopicName = null; } if (wrapper.TypeName != IntPtr.Zero) { TypeName = Marshal.PtrToStringAnsi(wrapper.TypeName); } else { TypeName = null; } }
/// <summary> /// Initializes a new instance of the <see cref="TopicQos"/> class. /// </summary> public TopicQos() { TopicData = new TopicDataQosPolicy(); Durability = new DurabilityQosPolicy(); DurabilityService = new DurabilityServiceQosPolicy(); Deadline = new DeadlineQosPolicy(); LatencyBudget = new LatencyBudgetQosPolicy(); Liveliness = new LivelinessQosPolicy(); Reliability = new ReliabilityQosPolicy(); DestinationOrder = new DestinationOrderQosPolicy(); History = new HistoryQosPolicy(); ResourceLimits = new ResourceLimitsQosPolicy(); TransportPriority = new TransportPriorityQosPolicy(); Lifespan = new LifespanQosPolicy(); Ownership = new OwnershipQosPolicy(); }
internal void FromNative(TopicQosWrapper 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; if (TopicData == null) { TopicData = new TopicDataQosPolicy(); } TopicData.FromNative(wrapper.TopicData); }
internal void FromNative(TopicBuiltinTopicDataWrapper wrapper) { Deadline = wrapper.Deadline; DestinationOrder = wrapper.DestinationOrder; Durability = wrapper.Durability; DurabilityService = wrapper.DurabilityService; Key = wrapper.Key; LatencyBudget = wrapper.LatencyBudget; Lifespan = wrapper.Lifespan; Liveliness = wrapper.Liveliness; Ownership = wrapper.Ownership; Reliability = wrapper.Reliability; History = wrapper.History; ResourceLimits = wrapper.ResourceLimits; TransportPriority = wrapper.TransportPriority; if (wrapper.Name != IntPtr.Zero) { Name = Marshal.PtrToStringAnsi(wrapper.Name); } else { Name = null; } if (wrapper.TypeName != IntPtr.Zero) { TypeName = Marshal.PtrToStringAnsi(wrapper.TypeName); } else { TypeName = null; } if (TopicData == null) { TopicData = new TopicDataQosPolicy(); } TopicData.FromNative(wrapper.TopicData); }