Beispiel #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _description = value.StringVal;
                return;

            case 2:
                _relatingConstraint = (IfcConstraint)(value.EntityVal);
                return;

            case 3:
                _relatedConstraints.InternalAdd((IfcConstraint)value.EntityVal);
                return;

            case 4:
                _logicalAggregator = (IfcLogicalOperatorEnum)System.Enum.Parse(typeof(IfcLogicalOperatorEnum), value.EnumVal, true);
                return;

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

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _relatingConstraint = (IfcConstraint)value.EntityVal;
                break;

            case 3:
                ((IXbimNoNotifyCollection)_relatedConstraints).Add((IfcConstraint)value.EntityVal);
                break;

            case 4:
                _logicalAggregator =
                    (IfcLogicalOperatorEnum)Enum.Parse(typeof(IfcLogicalOperatorEnum), value.EnumVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _classifiedConstraint = (IfcConstraint)(value.EntityVal);
                return;

            case 1:
                _relatedClassifications.InternalAdd((IfcClassificationNotationSelect)value.EntityVal);
                return;

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

            case 1:
                ((IXbimNoNotifyCollection)_relatedClassifications).Add((IfcClassificationNotationSelect)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        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
            IfcConstraint root = (IfcConstraint)obj;

            return(this == root);
        }
 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:
             _Intent = value.StringVal;
             break;
         case 6:
             _RelatingConstraint = (IfcConstraint)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _relatingConstraint = (IfcConstraint)value.EntityVal;
                break;

            case 1:
                ((IXbimNoNotifyCollection)_relatedProperties).Add((IfcProperty)value.EntityVal);
                break;

            case 2:
                _name = value.StringVal;
                break;

            case 3:
                _description = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _relatingConstraint = (IfcConstraint)(value.EntityVal);
                return;

            case 1:
                _relatedProperties.InternalAdd((IfcProperty)value.EntityVal);
                return;

            case 2:
                _name = value.StringVal;
                return;

            case 3:
                _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 void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _description = value.StringVal;
             break;
         case 2:
             _relatingConstraint = (IfcConstraint) value.EntityVal;
             break;
         case 3:
             ((IXbimNoNotifyCollection)_relatedConstraints).Add((IfcConstraint) value.EntityVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _description = value.StringVal;
             break;
         case 2:
             _relatingConstraint = (IfcConstraint) value.EntityVal;
             break;
         case 3:
             _relatedConstraints.Add_Reversible((IfcConstraint) value.EntityVal);
             break;
         case 4:
             _logicalAggregator =
                 (IfcLogicalOperatorEnum) Enum.Parse(typeof (IfcLogicalOperatorEnum), value.EnumVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _classifiedConstraint = (IfcConstraint) value.EntityVal;
             break;
         case 1:
             ((IXbimNoNotifyCollection)_relatedClassifications).Add((IfcClassificationNotationSelect) value.EntityVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _relatingConstraint = (IfcConstraint) value.EntityVal;
             break;
         case 1:
             _relatedProperties.Add_Reversible((IfcProperty) value.EntityVal);
             break;
         case 2:
             _name = value.StringVal;
             break;
         case 3:
             _description = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }