internal static void parseFields(IfcCostItem c, List<string> arrFields, ref int ipos, Schema schema) { IfcControl.parseFields(c, arrFields, ref ipos,schema); if (schema != Schema.IFC2x3) { string s = arrFields[ipos++]; if (s.StartsWith(".")) c.mPredefinedType = (IfcCostItemTypeEnum)Enum.Parse(typeof(IfcCostItemTypeEnum), s.Replace(".", "")); s = arrFields[ipos++]; if(s != "$") c.mCostValues = ParserSTEP.SplitListLinks(s); s = arrFields[ipos++]; if(s != "$") c.mCostQuantities = ParserSTEP.SplitListLinks(s); } }
internal IfcCostItem(IfcCostItem i, List<IfcCostValue> values, List<IfcPhysicalQuantity> quants) : this(i.mDatabase, values, quants) { i.AddNested(this); }
internal static IfcCostItem Parse(string strDef, Schema schema) { IfcCostItem c = new IfcCostItem(); int ipos = 0; parseFields(c, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return c; }
internal IfcCostItem(IfcCostItem i) : base(i) { }