public static ParseIFCLogical ( string str ) : IfcLogicalEnum | ||
str | string | |
Результат | IfcLogicalEnum |
internal override void parseJObject(JObject obj) { base.parseJObject(obj); JToken fixedAxisVertical = obj.GetValue("FixedAxisVertical", StringComparison.InvariantCultureIgnoreCase); if (fixedAxisVertical != null) { mFixedAxisVertical = ParserIfc.ParseIFCLogical(fixedAxisVertical.Value <string>()); } JObject jobj = obj.GetValue("Inclinating", StringComparison.InvariantCultureIgnoreCase) as JObject; if (jobj != null) { Inclinating = mDatabase.ParseJObject <IfcAxisLateralInclination>(jobj); } }
internal override void ParseXml(XmlElement xml) { base.ParseXml(xml); string fixedAxisVertical = xml.GetAttribute("FixedAxisVertical"); if (!string.IsNullOrEmpty(fixedAxisVertical)) { mFixedAxisVertical = ParserIfc.ParseIFCLogical(fixedAxisVertical); } foreach (XmlNode child in xml.ChildNodes) { string name = child.Name; if (string.Compare(name, "Inclinating", true) == 0) { Inclinating = mDatabase.ParseXml <IfcAxisLateralInclination>(child as XmlElement); } } }
protected static void parseFields(IfcAlignment2DSegment a, List <string> arrFields, ref int ipos) { a.mTangentialContinuity = ParserIfc.ParseIFCLogical(arrFields[ipos++]); a.mStartTag = arrFields[ipos++].Replace("'", ""); a.mEndTag = arrFields[ipos++].Replace("'", ""); }