Exemplo n.º 1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
                base.IfcParse(propIndex, value);
                break;

            case 9:
                _predefinedType =
                    (IfcProtectiveDeviceTypeEnum)
                    Enum.Parse(typeof(IfcProtectiveDeviceTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 9:
                _predefinedType = (IfcProtectiveDeviceTypeEnum)System.Enum.Parse(typeof(IfcProtectiveDeviceTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _predefinedType =
                 (IfcProtectiveDeviceTypeEnum)
                 Enum.Parse(typeof (IfcProtectiveDeviceTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemplo n.º 4
0
 public IfcProtectiveDevice(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcProtectiveDeviceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     PredefinedType = predefinedType;
 }
Exemplo n.º 5
0
		internal IfcProtectiveDeviceType(DatabaseIfc m, string name, IfcProtectiveDeviceTypeEnum t) : base(m) { Name = name; mPredefinedType = t; }
Exemplo n.º 6
0
		internal IfcProtectiveDeviceType(IfcProtectiveDeviceType t) : base(t) { mPredefinedType = t.mPredefinedType; }
Exemplo n.º 7
0
		internal IfcProtectiveDevice(IfcProtectiveDevice d) : base(d) { mPredefinedType = d.mPredefinedType; }
Exemplo n.º 8
0
 public IfcProtectiveDeviceType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcProtectiveDeviceTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType = __PredefinedType;
 }
Exemplo n.º 9
0
 public IfcProtectiveDeviceType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcProtectiveDeviceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType = predefinedType;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Construct a IfcProtectiveDeviceType with all required attributes.
 /// </summary>
 public IfcProtectiveDeviceType(IfcGloballyUniqueId globalId, IfcProtectiveDeviceTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }