internal static void parseFields(IfcTask t, List<string> arrFields, ref int ipos, Schema schema) { IfcProcess.parseFields(t, arrFields, ref ipos); if (schema == Schema.IFC2x3) t.mIdentification = arrFields[ipos++]; t.mStatus = arrFields[ipos++]; t.mWorkMethod = arrFields[ipos++]; t.mIsMilestone = ParserSTEP.ParseBool(arrFields[ipos++]); t.mPriority = ParserSTEP.ParseInt(arrFields[ipos++]); if (schema != Schema.IFC2x3) { t.mTaskTime = ParserSTEP.ParseLink(arrFields[ipos++]); string s = arrFields[ipos++]; if (s.StartsWith(".")) t.mPredefinedType = (IfcTaskTypeEnum)Enum.Parse(typeof(IfcTaskTypeEnum), s.Replace(".", "")); } }
internal IfcTask(IfcTask o) : base(o) { mStatus = o.mStatus; mWorkMethod = o.mWorkMethod; mIsMilestone = o.mIsMilestone; mPriority = o.mPriority; mTaskTime = o.mTaskTime; mPredefinedType = o.mPredefinedType; }
internal static IfcTask Parse(string strDef, Schema schema) { IfcTask t = new IfcTask(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return t; }
internal IfcRelAssignsTasks(IfcWorkControl relControl, IfcTask relObject, IfcScheduleTimeControl timeControl) : base(relControl, relObject) { if (timeControl != null) { mTimeForTask = timeControl.mIndex; timeControl.mScheduleTimeControlAssigned = this; } }