Ejemplo n.º 1
0
        internal static int countErrors(DeadlineQosPolicy o)
        {
            int errorCount = 0;

            errorCount += countErrors(o.Period);
            return(errorCount);
        }
 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 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);
 }
Ejemplo n.º 4
0
 internal static void CopyOut(IntPtr from, ref DeadlineQosPolicy to, int offset)
 {
 	if (to == null) to = new DeadlineQosPolicy();
     to.Period = BaseMarshaler.ReadDuration(from, offset + offset_period);
 }
Ejemplo n.º 5
0
 internal void CopyOut(ref DeadlineQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
Ejemplo n.º 6
0
 internal static DDS.ReturnCode CopyIn(DeadlineQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null) {
         BaseMarshaler.Write(to, offset + offset_period, from.Period);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.DeadlineQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "DeadlineQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
Ejemplo n.º 7
0
 internal DDS.ReturnCode CopyIn(DeadlineQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }