internal static void CopyOut(v_historyPolicyI_s from, ref HistoryQosPolicy to) { if (to == null) { to = new HistoryQosPolicy(); } to.Kind = (HistoryQosPolicyKind)from.v.kind; to.Depth = from.v.depth; }
internal static DDS.ReturnCode CopyIn(HistoryQosPolicy from, ref v_historyPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.kind = (V_HISTORYQOSKIND)from.Kind; to.v.depth = from.Depth; } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "HistoryQosPolicy attribute may not be a null pointer."); } return(result); }
internal static int countErrors(HistoryQosPolicy o) { int errorCount = 0; if (o.Kind > HistoryQosPolicyKind.KeepAllHistoryQos) { errorCount++; } else { if (o.Kind == HistoryQosPolicyKind.KeepLastHistoryQos) { if (o.Depth <= 0) { errorCount++; } } } return(errorCount); }
internal static void CopyOut(IntPtr from, ref HistoryQosPolicy to, int offset) { if (to == null) to = new HistoryQosPolicy(); to.Kind = (HistoryQosPolicyKind) BaseMarshaler.ReadInt32(from, offset + offset_kind); to.Depth = BaseMarshaler.ReadInt32(from, offset + offset_depth); }
internal void CopyOut(ref HistoryQosPolicy to) { CopyOut(GapiPtr, ref to, 0); }
internal static DDS.ReturnCode CopyIn(HistoryQosPolicy 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_depth, from.Depth); } else { result = DDS.ReturnCode.BadParameter; DDS.OpenSplice.OS.Report( DDS.OpenSplice.ReportType.OS_ERROR, "DDS.OpenSplice.CustomMarshalers.HistoryQosPolicyMarshaler.CopyIn", "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs", DDS.ErrorCode.InvalidValue, "HistoryQosPolicy attribute may not be a null pointer."); } return result; }
internal DDS.ReturnCode CopyIn(HistoryQosPolicy from) { cleanupRequired = true; return CopyIn(from, GapiPtr, 0); }
public ModifiableHistoryQosPolicy CopyFrom(HistoryQosPolicy other) { return new ModifiableHistoryQosPolicyImpl(other.GetKind(),other.GetDepth() ,other.GetBootstrap()); }
public ModifiableHistoryQosPolicyImpl(HistoryQosPolicy qos) : base(qos.GetKind(), qos.GetDepth(),qos.GetBootstrap()) { }