internal static void parseFields(IfcWorkCalendar c, List <string> arrFields, ref int ipos) { IfcControl.parseFields(c, arrFields, ref ipos); c.mWorkingTimes = ParserSTEP.SplitListLinks(arrFields[ipos++]); c.mExceptionTimes = ParserSTEP.SplitListLinks(arrFields[ipos++]); string s = arrFields[ipos++]; if (s.StartsWith(".")) { c.mPredefinedType = (IfcWorkCalendarTypeEnum)Enum.Parse(typeof(IfcWorkCalendarTypeEnum), s.Replace(".", "")); } }
internal static IfcWorkCalendar Parse(string strDef) { IfcWorkCalendar p = new IfcWorkCalendar(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return(p); }
internal static void parseFields(IfcWorkCalendar c, List<string> arrFields, ref int ipos) { IfcControl.parseFields(c, arrFields, ref ipos); c.mWorkingTimes = ParserSTEP.SplitListLinks(arrFields[ipos++]); c.mExceptionTimes = ParserSTEP.SplitListLinks(arrFields[ipos++]); string s = arrFields[ipos++]; if (s.StartsWith(".")) c.mPredefinedType = (IfcWorkCalendarTypeEnum)Enum.Parse(typeof(IfcWorkCalendarTypeEnum), s.Replace(".", "")); }
internal IfcWorkCalendar(DatabaseIfc db, IfcWorkCalendar c) : base(db, c) { c.WorkingTimes.ToList().ForEach(x => addWorkingTime(db.Factory.Duplicate(x) as IfcWorkTime)); c.ExceptionTimes.ToList().ForEach(x => addExceptionTimes(db.Factory.Duplicate(x) as IfcWorkTime)); mPredefinedType = c.mPredefinedType; }
internal IfcWorkCalendar(DatabaseIfc db, IfcWorkCalendar c) : base(db,c) { WorkingTimes = c.WorkingTimes.ConvertAll(x => db.Factory.Duplicate(x) as IfcWorkTime); ExceptionTimes = c.ExceptionTimes.ConvertAll(x=>db.Factory.Duplicate(x) as IfcWorkTime); mPredefinedType = c.mPredefinedType; }
internal static IfcWorkCalendar Parse(string strDef) { IfcWorkCalendar p = new IfcWorkCalendar(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
internal IfcWorkCalendar(IfcWorkCalendar i) : base(i) { mWorkingTimes.AddRange(i.mWorkingTimes); mExceptionTimes.AddRange(i.mExceptionTimes); mPredefinedType = i.mPredefinedType; }
internal IfcWorkCalendar(DatabaseIfc db, IfcWorkCalendar c) : base(db, c) { WorkingTimes = c.WorkingTimes.ConvertAll(x => db.Factory.Duplicate(x) as IfcWorkTime); ExceptionTimes = c.ExceptionTimes.ConvertAll(x => db.Factory.Duplicate(x) as IfcWorkTime); mPredefinedType = c.mPredefinedType; }
internal IfcWorkCalendar(DatabaseIfc db, IfcWorkCalendar c, DuplicateOptions options) : base(db, c, options) { mWorkingTimes.AddRange(c.WorkingTimes.Select(x => db.Factory.Duplicate(x) as IfcWorkTime)); mExceptionTimes.AddRange(c.ExceptionTimes.Select(x => db.Factory.Duplicate(x) as IfcWorkTime)); mPredefinedType = c.mPredefinedType; }
internal IfcWorkCalendar(DatabaseIfc db, IfcWorkCalendar c, IfcOwnerHistory ownerHistory, bool downStream) : base(db, c, ownerHistory, downStream) { c.WorkingTimes.ToList().ForEach(x => addWorkingTime(db.Factory.Duplicate(x) as IfcWorkTime)); c.ExceptionTimes.ToList().ForEach(x => addExceptionTimes(db.Factory.Duplicate(x) as IfcWorkTime)); mPredefinedType = c.mPredefinedType; }