Наследование: 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; }