internal static IfcTaskTime Parse(string strDef) { IfcTaskTime s = new IfcTaskTime(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }
internal static void parseFields(IfcTaskTime s, List<string> arrFields, ref int ipos) { IfcSchedulingTime.parseFields(s, arrFields, ref ipos); string str = arrFields[ipos++]; if (str.StartsWith(".")) s.mDurationType = (IfcTaskDurationEnum)Enum.Parse(typeof(IfcTaskDurationEnum), str.Replace(".", "")); s.mScheduleDuration = arrFields[ipos++].Replace("'", ""); s.mScheduleStart = arrFields[ipos++].Replace("'", ""); s.mScheduleFinish = arrFields[ipos++].Replace("'", ""); s.mEarlyStart = arrFields[ipos++].Replace("'", ""); s.mEarlyFinish = arrFields[ipos++].Replace("'", ""); s.mLateStart = arrFields[ipos++].Replace("'", ""); s.mLateFinish = arrFields[ipos++].Replace("'", ""); s.mFreeFloat = arrFields[ipos++].Replace("'", ""); s.mTotalFloat = arrFields[ipos++].Replace("'", ""); s.mIsCritical = ParserSTEP.ParseBool(arrFields[ipos++]); s.mStatusTime = arrFields[ipos++].Replace("'", ""); s.mActualDuration = arrFields[ipos++].Replace("'", ""); s.mActualStart = arrFields[ipos++].Replace("'", ""); s.mActualFinish = arrFields[ipos++].Replace("'", ""); s.mRemainingTime = arrFields[ipos++].Replace("'", ""); s.mCompletion = ParserSTEP.ParseDouble(arrFields[ipos++]); }
internal IfcTaskTime(IfcTaskTime t) : base(t) { mDurationType = t.mDurationType; mScheduleDuration = t.mScheduleDuration; mScheduleStart = t.mScheduleStart; mScheduleFinish = t.mScheduleFinish; mEarlyStart = t.mEarlyStart; mEarlyFinish = t.mEarlyFinish; mLateStart = t.mLateStart; mLateFinish = t.mLateFinish; mFreeFloat = t.mFreeFloat; mTotalFloat = t.mTotalFloat; mIsCritical = t.mIsCritical; mStatusTime = t.mStatusTime; mActualDuration = t.mActualDuration; mActualStart = t.mActualStart; mActualFinish = t.mActualFinish; mRemainingTime = t.mRemainingTime; mCompletion = t.mCompletion; }