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 =
                    (IfcSwitchingDeviceTypeEnum)
                    Enum.Parse(typeof(IfcSwitchingDeviceTypeEnum), 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 = (IfcSwitchingDeviceTypeEnum)System.Enum.Parse(typeof(IfcSwitchingDeviceTypeEnum), 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 =
                 (IfcSwitchingDeviceTypeEnum)
                 Enum.Parse(typeof (IfcSwitchingDeviceTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
예제 #4
0
 public IfcSwitchingDevice(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcSwitchingDeviceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     PredefinedType = predefinedType;
 }
예제 #5
0
 public IfcSwitchingDeviceType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcSwitchingDeviceTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType = __PredefinedType;
 }
예제 #6
0
파일: IFC S.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcSwitchingDeviceType(DatabaseIfc m, string name, IfcSwitchingDeviceTypeEnum type) : base(m) { Name = name; mPredefinedType = type; }
예제 #7
0
파일: IFC S.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcSwitchingDeviceType(IfcSwitchingDeviceType t) : base(t) { mPredefinedType = t.mPredefinedType; }
예제 #8
0
파일: IFC S.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcSwitchingDevice(IfcSwitchingDevice d) : base(d) { mPredefinedType = d.mPredefinedType; }
예제 #9
0
 public IfcSwitchingDeviceType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcSwitchingDeviceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType = predefinedType;
 }
예제 #10
0
 /// <summary>
 /// Construct a IfcSwitchingDeviceType with all required attributes.
 /// </summary>
 public IfcSwitchingDeviceType(IfcGloballyUniqueId globalId, IfcSwitchingDeviceTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }