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

            // Set autoenable_created_entities field
            to.AutoenableCreatedEntities = from.v.autoenable_created_entities;
        }
 internal static DDS.ReturnCode CopyIn(EntityFactoryQosPolicy from, ref v_entityFactoryPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         // Set autoenable_created_entities field
         to.v.autoenable_created_entities = from.AutoenableCreatedEntities;
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "EntityFactoryQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
Ejemplo n.º 3
0
 public ModifiableEntityFactoryQosPolicy CopyFrom(EntityFactoryQosPolicy other)
 {
     return new ModifiableEntityFactoryQosPolicyImpl(other.IsAutoEnableCreatedEntities(), other.GetBootstrap());
 }
Ejemplo n.º 4
0
 public ModifiableEntityFactoryQosPolicyImpl(EntityFactoryQosPolicy qos)
 {
     this.innerQos = qos as EntityFactoryQosPolicyImpl;
 }
Ejemplo n.º 5
0
        internal static void CopyOut(IntPtr from, ref EntityFactoryQosPolicy to, int offset)
        {
            if (to == null) to = new EntityFactoryQosPolicy();

            // Set autoenable_created_entities field
            to.AutoenableCreatedEntities = BaseMarshaler.ReadBoolean(from, offset + offset_autoenable_created_entities);
        }
Ejemplo n.º 6
0
 internal void CopyOut(ref EntityFactoryQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
Ejemplo n.º 7
0
 internal static DDS.ReturnCode CopyIn(EntityFactoryQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null) {
         // Set autoenable_created_entities field
         BaseMarshaler.Write(to, offset + offset_autoenable_created_entities, from.AutoenableCreatedEntities);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.EntityFactoryQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "EntityFactoryQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
Ejemplo n.º 8
0
 internal DDS.ReturnCode CopyIn(EntityFactoryQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }