Parse() static private method

static private Parse ( string str, ReleaseVersion schema ) : IfcQuantityTime
str string
schema ReleaseVersion
return IfcQuantityTime
Exemplo n.º 1
0
        internal static IfcQuantityTime Parse(string str, ReleaseVersion schema)
        {
            IfcQuantityTime q = new IfcQuantityTime();
            int             pos = 0, len = str.Length;

            q.Parse(str, ref pos, len);
            double.TryParse(ParserSTEP.StripField(str, ref pos, len), out q.mTimeValue);
            if (schema != ReleaseVersion.IFC2x3)
            {
                q.mFormula = ParserSTEP.StripString(str, ref pos, len);
            }
            return(q);
        }
Exemplo n.º 2
0
 internal static IfcQuantityTime Parse(string str, ReleaseVersion schema)
 {
     IfcQuantityTime q = new IfcQuantityTime();
     int pos = 0, len = str.Length;
     q.Parse(str, ref pos, len);
     double.TryParse(ParserSTEP.StripField(str, ref pos, len), out q.mTimeValue);
     if (schema != ReleaseVersion.IFC2x3)
         q.mFormula = ParserSTEP.StripString(str, ref pos, len);
     return q;
 }