public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _componentOfTotal = (IfcAppliedValue)(value.EntityVal);
                return;

            case 1:
                _components.InternalAdd((IfcAppliedValue)value.EntityVal);
                return;

            case 2:
                _arithmeticOperator = (IfcArithmeticOperatorEnum)System.Enum.Parse(typeof(IfcArithmeticOperatorEnum), value.EnumVal, true);
                return;

            case 3:
                _name = value.StringVal;
                return;

            case 4:
                _description = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _componentOfTotal = (IfcAppliedValue)value.EntityVal;
                break;

            case 1:
                ((IXbimNoNotifyCollection)_components).Add((IfcAppliedValue)value.EntityVal);
                break;

            case 2:
                _arithmeticOperator =
                    (IfcArithmeticOperatorEnum)
                    Enum.Parse(typeof(IfcArithmeticOperatorEnum), value.EnumVal, true);
                break;

            case 3:
                _name = value.StringVal;
                break;

            case 4:
                _description = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
             base.IfcParse(propIndex, value);
             break;
         case 5:
             _RelatingAppliedValue = (IfcAppliedValue)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcAppliedValue root = (IfcAppliedValue)obj;

            return(this == root);
        }
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _componentOfTotal = (IfcAppliedValue) value.EntityVal;
             break;
         case 1:
             _components.Add((IfcAppliedValue) value.EntityVal);
             break;
         case 2:
             _arithmeticOperator =
                 (IfcArithmeticOperatorEnum)
                 Enum.Parse(typeof (IfcArithmeticOperatorEnum), value.EnumVal, true);
             break;
         case 3:
             _name = value.StringVal;
             break;
         case 4:
             _description = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }