コード例 #1
0
 internal static void CopyOut(v_presentationPolicyI_s from, ref PresentationQosPolicy to)
 {
     if (to == null)
     {
         to = new PresentationQosPolicy();
     }
     to.AccessScope    = (PresentationQosPolicyAccessScopeKind)from.v.access_scope;
     to.CoherentAccess = from.v.coherent_access;
     to.OrderedAccess  = from.v.ordered_access;
 }
コード例 #2
0
 internal static DDS.ReturnCode CopyIn(PresentationQosPolicy from, ref v_presentationPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         to.v.access_scope    = (V_PRESENTATIONKIND)from.AccessScope;
         to.v.coherent_access = from.CoherentAccess;
         to.v.ordered_access  = from.OrderedAccess;
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "PresentationQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
コード例 #3
0
 internal static void CleanupIn(ref v_presentationPolicyI_s to)
 {
     // Currently nothing to cleanup.
 }