public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: base.IfcParse(propIndex, value); break; case 5: _ServiceLifeType = (IfcServiceLifeTypeEnum)Enum.Parse(typeof(IfcServiceLifeTypeEnum), value.EnumVal); break; case 6: _ServiceLifeDuration = value.RealVal; 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: base.Parse(propIndex, value, nestedIndex); return; case 5: _serviceLifeType = (IfcServiceLifeTypeEnum)System.Enum.Parse(typeof(IfcServiceLifeTypeEnum), value.EnumVal, true); return; case 6: _serviceLifeDuration = value.RealVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcServiceLife(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcServiceLifeTypeEnum __ServiceLifeType, IfcTimeMeasure __ServiceLifeDuration) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType) { this._ServiceLifeType = __ServiceLifeType; this._ServiceLifeDuration = __ServiceLifeDuration; }