Inheritance: GeometryGym.Ifc.IfcPhysicalSimpleQuantity
Esempio n. 1
0
 internal static void parseFields(IfcQuantityTime q, List <string> arrFields, ref int ipos, ReleaseVersion schema)
 {
     IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos); q.mTimeValue = int.Parse(arrFields[ipos++]); if (schema != ReleaseVersion.IFC2x3)
     {
         q.mFormula = arrFields[ipos++].Replace("'", "");
     }
 }
Esempio 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);
        }
Esempio n. 3
0
 internal IfcQuantityTime(DatabaseIfc db, IfcQuantityTime q) : base(db, q)
 {
     mTimeValue = q.mTimeValue; mFormula = q.mFormula;
 }
Esempio n. 4
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;
 }
Esempio n. 5
0
 internal static void parseFields(IfcQuantityTime q, List<string> arrFields, ref int ipos, ReleaseVersion schema)
 {
     IfcPhysicalSimpleQuantity.parseFields(q, arrFields, ref ipos); q.mTimeValue = int.Parse(arrFields[ipos++]); if (schema != ReleaseVersion.IFC2x3) q.mFormula = arrFields[ipos++].Replace("'", "");
 }
Esempio n. 6
0
 internal IfcQuantityTime(DatabaseIfc db, IfcQuantityTime q)
     : base(db,q)
 {
     mTimeValue = q.mTimeValue; mFormula = q.mFormula;
 }
Esempio n. 7
0
		internal static IfcQuantityTime Parse(string strDef, Schema schema) { IfcQuantityTime q = new IfcQuantityTime(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return q; }
Esempio n. 8
0
		internal IfcQuantityTime(IfcQuantityTime q) : base((IfcPhysicalSimpleQuantity)q) { mTimeValue = q.mTimeValue; }
Esempio n. 9
0
 internal static IfcQuantityTime Parse(string strDef, ReleaseVersion schema)
 {
     IfcQuantityTime q = new IfcQuantityTime(); int ipos = 0; parseFields(q, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(q);
 }
Esempio n. 10
0
 internal IfcQuantityTime(IfcQuantityTime q) : base((IfcPhysicalSimpleQuantity)q)
 {
     mTimeValue = q.mTimeValue;
 }