Esempio n. 1
0
		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(".", ""));
			}
		}
Esempio n. 2
0
		internal IfcTask(IfcTask o) : base(o) { mStatus = o.mStatus; mWorkMethod = o.mWorkMethod; mIsMilestone = o.mIsMilestone; mPriority = o.mPriority; mTaskTime = o.mTaskTime; mPredefinedType = o.mPredefinedType; }
Esempio n. 3
0
		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; }
Esempio n. 4
0
		internal IfcRelAssignsTasks(IfcWorkControl relControl, IfcTask relObject, IfcScheduleTimeControl timeControl)
			: base(relControl, relObject) { if (timeControl != null) { mTimeForTask = timeControl.mIndex; timeControl.mScheduleTimeControlAssigned = this; } }