Inheritance: GeometryGym.Ifc.IfcControl
示例#1
0
        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(".", ""));
            }
        }
示例#2
0
 internal static IfcWorkCalendar Parse(string strDef)
 {
     IfcWorkCalendar p = new IfcWorkCalendar(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return(p);
 }
示例#3
0
 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(".", ""));
 }
示例#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, 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;
 }
示例#6
0
 internal static IfcWorkCalendar Parse(string strDef)
 {
     IfcWorkCalendar p = new IfcWorkCalendar(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p;
 }
示例#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; }