internal static void CopyOut(v_schedulePolicyI_s from, ref SchedulingQosPolicy to)
        {
            if (to == null)
            {
                to = new SchedulingQosPolicy();
            }

            // Get scheduling_class field
            to.SchedulingClass.Kind = (SchedulingClassQosPolicyKind)from.v.kind;

            // Get scheduling_priority_kind field
            to.SchedulingPriorityKind.Kind = (SchedulingPriorityQosPolicyKind)from.v.priorityKind;

            // Get scheduling_priority field
            to.SchedulingPriority = from.v.priority;
        }
        internal static DDS.ReturnCode CopyIn(SchedulingQosPolicy from, ref v_schedulePolicyI_s to)
        {
            DDS.ReturnCode result = DDS.ReturnCode.Ok;
            if (from != null)
            {
                // Set scheduling_class field
                to.v.kind = (V_SCHEDULEKIND)from.SchedulingClass.Kind;

                // Set scheduling_priority_kind field
                to.v.priorityKind = (V_SCHEDULEPRIORITYKIND)from.SchedulingPriorityKind.Kind;

                // Set scheduling_priority field
                to.v.priority = from.SchedulingPriority;
            }
            else
            {
                result = DDS.ReturnCode.BadParameter;
                ReportStack.Report(result, "SchedulingQosPolicy attribute may not be a null pointer.");
            }
            return(result);
        }
 internal static void CleanupIn(ref v_schedulePolicyI_s to)
 {
     // Currently nothing to cleanup.
 }