internal IfcWorkCalendar(DatabaseIfc m, List <IfcWorkTime> working, List <IfcWorkTime> exception, IfcWorkCalendarTypeEnum type, IfcProject prj) : base(m) { if (working != null) { mWorkingTimes = working.ConvertAll(x => x.mIndex); } if (exception != null) { mExceptionTimes = exception.ConvertAll(x => x.mIndex); } mPredefinedType = type; if (prj != null) { prj.AddDeclared(this); } }
public IfcWorkCalendar(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcIdentifier identification, List <IfcWorkTime> workingTimes, List <IfcWorkTime> exceptionTimes, IfcWorkCalendarTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, identification) { WorkingTimes = workingTimes; ExceptionTimes = exceptionTimes; PredefinedType = predefinedType; }
internal IfcWorkCalendar(DatabaseIfc m, List<IfcWorkTime> working, List<IfcWorkTime> exception, IfcWorkCalendarTypeEnum type, IfcProject prj) : base(m) { if (working != null) mWorkingTimes = working.ConvertAll(x => x.mIndex); if (exception != null) mExceptionTimes = exception.ConvertAll(x => x.mIndex); mPredefinedType = type; if (prj != null) prj.AddDeclared(this); }
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, string name, IfcWorkCalendarTypeEnum type) : base(db) { Name = name; mPredefinedType = type; }
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(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; }