public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _hourComponent = (int)value.IntegerVal; break; case 1: _minuteComponent = (int)value.IntegerVal; break; case 2: _secondComponent = value.RealVal; break; case 3: _zone = (IfcCoordinatedUniversalTimeOffset)value.EntityVal; break; case 4: _daylightSavingOffset = (int)value.IntegerVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _hourComponent = value.IntegerVal; return; case 1: _minuteComponent = value.IntegerVal; return; case 2: _secondComponent = value.RealVal; return; case 3: _zone = (IfcCoordinatedUniversalTimeOffset)(value.EntityVal); return; case 4: _daylightSavingOffset = value.IntegerVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _hourOffset = (int)value.IntegerVal; break; case 1: _minuteOffset = (int)value.IntegerVal; break; case 2: _sense = (IfcAheadOrBehind)Enum.Parse(typeof(IfcAheadOrBehind), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _hourOffset = value.IntegerVal; return; case 1: _minuteOffset = value.IntegerVal; return; case 2: _sense = (IfcAheadOrBehind)System.Enum.Parse(typeof(IfcAheadOrBehind), 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 void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _hourComponent = (int) value.IntegerVal; break; case 1: _minuteComponent = (int) value.IntegerVal; break; case 2: _secondComponent = value.RealVal; break; case 3: _zone = (IfcCoordinatedUniversalTimeOffset) value.EntityVal; break; case 4: _daylightSavingOffset = (int) value.IntegerVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _hourOffset = (int) value.IntegerVal; break; case 1: _minuteOffset = (int) value.IntegerVal; break; case 2: _sense = (IfcAheadOrBehind) Enum.Parse(typeof (IfcAheadOrBehind), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }