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: case 9: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: base.Parse(propIndex, value, nestedIndex); return; case 20: _recurrence = (IfcRecurrencePattern)(value.EntityVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: base.Parse(propIndex, value, nestedIndex); return; case 3: _recurrencePattern = (IfcRecurrencePattern)(value.EntityVal); return; case 4: _start = value.StringVal; return; case 5: _finish = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
internal IfcWorkTime(DatabaseIfc db, IfcRecurrencePattern recur, DateTime start, DateTime finish) : base(db) { if (recur != null) { mRecurrencePattern = recur.mIndex; } if (start != DateTime.MinValue) { mStart = IfcDate.convert(start); } if (finish != DateTime.MinValue) { mFinish = IfcDate.convert(finish); } }
internal IfcWorkTime(DatabaseIfc m, string name, IfcDataOriginEnum origin, string userOrigin, IfcRecurrencePattern recur, DateTime start, DateTime finish) : base(m, name, origin, userOrigin) { if (recur != null) { mRecurrencePattern = recur.mIndex; } if (start != DateTime.MinValue) { mStart = IfcDate.convert(start); } if (finish != DateTime.MinValue) { mFinish = IfcDate.convert(finish); } }
internal IfcWorkTime(DatabaseIfc db, IfcWorkTime t, DuplicateOptions options) : base(db, t, options) { mRecurrencePattern = t.mRecurrencePattern; mStartDate = t.mStartDate; mFinishDate = t.mFinishDate; }