internal static void CopyOut(IntPtr from, ref PartitionQosPolicy to)
 {
     if (to == null)
     {
         to = new PartitionQosPolicy();
     }
     SequenceStringMarshaler.CopyOut(from, ref to.Name);
 }
        internal static int countErrors(PartitionQosPolicy o)
        {
            int errorCount = 0;

            if (o.Name == null)
            {
                errorCount++;
            }
            return(errorCount);
        }
 internal static DDS.ReturnCode CopyIn(PartitionQosPolicy from, ref IntPtr to)
 {
     DDS.ReturnCode result;
     if (from != null)
     {
         result = SequenceStringMarshaler.CopyIn(from.Name, ref to);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "PartitionQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 internal static void CopyOut(IntPtr from, ref PartitionQosPolicy to, int offset)
 {
 	if (to == null) to = new PartitionQosPolicy();
     SequenceStringMarshaler.CopyOut(from, ref to.Name, offset + offset_name);
 }
 internal void CopyOut(ref PartitionQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
 internal static DDS.ReturnCode CopyIn(PartitionQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result;
     if (from != null) {
         result = SequenceStringMarshaler.CopyIn(from.Name, to, offset + offset_name);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.PartitionQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "PartitionQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
 internal DDS.ReturnCode CopyIn(PartitionQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }
示例#8
0
 public ModifiablePartitionQosPolicy CopyFrom(PartitionQosPolicy other)
 {
     return new ModifiablePartitionQosPolicyImpl(other.GetName(),other.GetBootstrap());
 }
示例#9
0
   public ModifiablePartitionQosPolicyImpl(PartitionQosPolicy qos)
     : base(qos.GetName(), qos.GetBootstrap())
 {
 }