parseFields() static private method

static private parseFields ( IfcBridgeStructureElement e, List arrFields, int &ipos ) : void
e IfcBridgeStructureElement
arrFields List
ipos int
return void
Beispiel #1
0
        internal static void parseFields(IfcBridge b, List <string> arrFields, ref int ipos)
        {
            IfcBridgeStructureElement.parseFields(b, arrFields, ref ipos);
            string s = arrFields[ipos++];

            if (s[0] == '.')
            {
                b.mPredefinedType = (IfcBridgeStructureType)Enum.Parse(typeof(IfcBridgeStructureType), s.Replace(".", ""));
            }
        }
Beispiel #2
0
        internal static void parseFields(IfcBridgePart b, List <string> arrFields, ref int ipos)
        {
            IfcBridgeStructureElement.parseFields(b, arrFields, ref ipos);
            string s = arrFields[ipos++];

            if (s[0] == '.')
            {
                b.mStructureElementType = (IfcBridgeStructureElementType)Enum.Parse(typeof(IfcBridgeStructureElementType), s.Replace(".", ""));
            }
            s = arrFields[ipos++];
            if (s[0] == '.')
            {
                b.mTechnoElementType = (IfcBridgeTechnologicalElementType)Enum.Parse(typeof(IfcBridgeTechnologicalElementType), s.Replace(".", ""));
            }
        }