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 override bool Equals(object obj) { // Check for null if (obj == null) { return(false); } // Check for type if (this.GetType() != obj.GetType()) { return(false); } // Cast as IfcRoot IfcCoordinatedUniversalTimeOffset root = (IfcCoordinatedUniversalTimeOffset)obj; return(this == root); }
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 static void SetTimeLocal(this IfcLocalTime lt, int hour, int minute, int second, IfcCoordinatedUniversalTimeOffset uctOffset, int daylightSavingOffset) { SetTimeLocal(lt, hour, minute, second, uctOffset); lt.DaylightSavingOffset = daylightSavingOffset; }
public static void SetTimeLocal(this IfcLocalTime lt, int hour, int minute, int second, IfcCoordinatedUniversalTimeOffset uctOffset) { SetTimeLocal(lt, hour, minute, second); lt.Zone = uctOffset; }