Parse() static private method

static private Parse ( string str, ReleaseVersion schema ) : IfcQuantityVolume
str string
schema ReleaseVersion
return IfcQuantityVolume
コード例 #1
0
ファイル: IFC Q.cs プロジェクト: jddaigle/GeometryGymIFC
        internal static IfcQuantityVolume Parse(string str, ReleaseVersion schema)
        {
            IfcQuantityVolume q = new IfcQuantityVolume();
            int pos = 0, len = str.Length;

            q.Parse(str, ref pos, len);
            string s = ParserSTEP.StripField(str, ref pos, len);

            if (!double.TryParse(s, out q.mVolumeValue))
            {
                IfcMeasureValue mv = ParserIfc.parseMeasureValue(s);
                if (mv != null)
                {
                    q.mVolumeValue = mv.Measure;
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
コード例 #2
0
ファイル: IFC Q.cs プロジェクト: jmirtsch/GeometryGymIFC
 internal static IfcQuantityVolume Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityVolume q = new IfcQuantityVolume();
     int pos = 0, len = str.Length;
     q.Parse(str, ref pos, len);
     string s = ParserSTEP.StripField(str, ref pos, len);
     if (!double.TryParse(s, out q.mVolumeValue))
     {
         IfcMeasureValue mv = ParserIfc.parseMeasureValue(s);
         if (mv != null)
             q.mVolumeValue = mv.Measure;
     }
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula = ParserSTEP.StripString(str, ref pos, len);
     return q;
 }