internal static IfcValue extractValue(string keyword, string value)
{
Type type = Type.GetType("GeometryGym.Ifc." + keyword, false, true);
if (type != null)
{
Type[] interfaces = type.GetInterfaces();
if (interfaces.Contains(typeof(IfcSimpleValue)))
return extractSimpleValue(type, value);
if (interfaces.Contains(typeof(IfcMeasureValue)))
return extractMeasureValue(type, value);
if (interfaces.Contains(typeof(IfcDerivedMeasureValue)))
return extractDerivedMeasureValue(type, value);
}
return null;
}