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: base.Parse(propIndex, value, nestedIndex); return; case 7: _predefinedType = (IfcEventTypeEnum)System.Enum.Parse(typeof(IfcEventTypeEnum), value.EnumVal, true); return; case 8: _eventTriggerType = (IfcEventTriggerTypeEnum)System.Enum.Parse(typeof(IfcEventTriggerTypeEnum), value.EnumVal, true); return; case 9: _userDefinedEventTriggerType = value.StringVal; return; case 10: _eventOccurenceTime = (IfcEventTime)(value.EntityVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcEvent(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier?__Identification, IfcText?__LongDescription, IfcEventTypeEnum?__PredefinedType, IfcEventTriggerTypeEnum?__EventTriggerType, IfcLabel?__UserDefinedEventTriggerType, IfcEventTime __EventOccurenceTime) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __Identification, __LongDescription) { this._PredefinedType = __PredefinedType; this._EventTriggerType = __EventTriggerType; this._UserDefinedEventTriggerType = __UserDefinedEventTriggerType; this._EventOccurenceTime = __EventOccurenceTime; }