internal static IfcMetric Parse(string strDef, Schema schema) { IfcMetric m = new IfcMetric(); int ipos = 0; parseFields(m, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return m; }
internal static void parseFields(IfcMetric m, List<string> arrFields, ref int ipos, Schema schema) { IfcConstraint.parseFields(m, arrFields, ref ipos,schema); m.mBenchMark = (IfcBenchmarkEnum)Enum.Parse(typeof(IfcBenchmarkEnum), arrFields[ipos++].Replace(".", "")); m.mValueSource = arrFields[ipos++].Replace("'", ""); string str = arrFields[ipos++]; m.mDataValueValue = ParserIfc.parseValue(str); if (m.mDataValueValue == null) m.mDataValue = ParserSTEP.ParseLink(str); m.mReferencePath = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal IfcMetric(IfcMetric m) : base(m) { mBenchMark = m.mBenchMark; mValueSource = m.mValueSource; mDataValue = m.mDataValue; mDataValueValue = m.mDataValueValue; mReferencePath = m.mReferencePath; }