示例#1
0
 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);
     }
 }
示例#2
0
 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;
 }
示例#3
0
 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);
 }
示例#4
0
 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;
 }
示例#5
0
 internal IfcWorkCalendar(DatabaseIfc db, string name, IfcWorkCalendarTypeEnum type) : base(db)
 {
     Name = name; mPredefinedType = type;
 }
示例#6
0
 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;
 }
示例#7
0
 internal IfcWorkCalendar(IfcWorkCalendar i) : base(i)
 {
     mWorkingTimes.AddRange(i.mWorkingTimes); mExceptionTimes.AddRange(i.mExceptionTimes); mPredefinedType = i.mPredefinedType;
 }
示例#8
0
 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;
 }
示例#9
0
 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;
 }
示例#10
0
 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;
 }
示例#11
0
		internal IfcWorkCalendar(IfcWorkCalendar i) : base(i) { mWorkingTimes.AddRange(i.mWorkingTimes); mExceptionTimes.AddRange(i.mExceptionTimes); mPredefinedType = i.mPredefinedType; }