public void SetValue(string val, StepParserType parserType) { if (parserType == StepParserType.Boolean && String.Compare(val, "unknown", StringComparison.OrdinalIgnoreCase) == 0) //do nothing with IfcLogicals that are undefined { return; } var propVal = new PropertyValue(); propVal.Init(val, parserType); ((XmlEntity)Parent).Entity.Parse(PropertyIndex - 1, propVal, null); }
public void Init(object value) { _entityVal = value; _stepParserType = StepParserType.Entity; }
public void Init(string value, StepParserType type) { _strVal = value; _stepParserType = type; }
internal void Init(bool value, StepParserType stepParserType) { _bool = value; _parserType = stepParserType; }
internal void Init(double value, StepParserType stepParserType) { _double = value; _parserType = stepParserType; }
internal void Init(byte[] value, StepParserType stepParserType) { _bytes = value; _parserType = stepParserType; }
internal void Init(string value, StepParserType stepParserType) { _string = value; _parserType = stepParserType; }
internal void Init(long value, StepParserType stepParserType) { _long = value; _parserType = stepParserType; }
internal void Init(IPersist iPersistIfc) { _object = iPersistIfc; _parserType = StepParserType.Entity; }
private bool IsPrimitiveType(string elementName, out StepParserType basicType) { return(Primitives.TryGetValue(elementName, out basicType)); //we have a primitive type }
public XmlBasicType(XmlNode parent, StepParserType type) : base(parent) { Type = type; }