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);
            }
Exemple #2
0
 public void Init(object value)
 {
     _entityVal      = value;
     _stepParserType = StepParserType.Entity;
 }
Exemple #3
0
 public void Init(string value, StepParserType type)
 {
     _strVal         = value;
     _stepParserType = type;
 }
Exemple #4
0
 internal void Init(bool value, StepParserType stepParserType)
 {
     _bool       = value;
     _parserType = stepParserType;
 }
Exemple #5
0
 internal void Init(double value, StepParserType stepParserType)
 {
     _double     = value;
     _parserType = stepParserType;
 }
Exemple #6
0
 internal void Init(byte[] value, StepParserType stepParserType)
 {
     _bytes      = value;
     _parserType = stepParserType;
 }
Exemple #7
0
 internal void Init(string value, StepParserType stepParserType)
 {
     _string     = value;
     _parserType = stepParserType;
 }
Exemple #8
0
 internal void Init(long value, StepParserType stepParserType)
 {
     _long       = value;
     _parserType = stepParserType;
 }
Exemple #9
0
 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;
 }