Parse() 정적인 개인적인 메소드

static private Parse ( string str, ReleaseVersion schema ) : IfcQuantityCount
str string
schema ReleaseVersion
리턴 IfcQuantityCount
예제 #1
0
        internal static IfcQuantityCount Parse(string str, ReleaseVersion schema)
        {
            IfcQuantityCount q = new IfcQuantityCount();
            int pos = 0, len = str.Length;

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

            if (!double.TryParse(s, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mCountValue))
            {
                if (s.StartsWith("IFCCOUNTMEASURE"))
                {
                    s = s.Substring(16, s.Length - 17);
                    double.TryParse(s, out q.mCountValue);
                }
            }
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
예제 #2
0
 internal static IfcQuantityCount Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityCount q = new IfcQuantityCount();
     int pos = 0, len = str.Length;
     q.Parse(str, ref pos, len);
     string s = ParserSTEP.StripField(str, ref pos, len);
     if (!double.TryParse(s, System.Globalization.NumberStyles.Any, ParserSTEP.NumberFormat, out q.mCountValue))
     {
         if (s.StartsWith("IFCCOUNTMEASURE"))
         {
             s = s.Substring(16, s.Length - 17);
             double.TryParse(s, out q.mCountValue);
         }
     }
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula = ParserSTEP.StripString(str, ref pos, len);
     return q;
 }