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
            IfcClassificationNotationFacet root = (IfcClassificationNotationFacet)obj;

            return(this == root);
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _notation = (IfcClassificationNotationFacet)(value.EntityVal);
                return;

            case 1:
                _itemOf = (IfcClassification)(value.EntityVal);
                return;

            case 2:
                _title = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #3
0
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _notation = (IfcClassificationNotationFacet)value.EntityVal;
                break;

            case 1:
                _itemOf = (IfcClassification)value.EntityVal;
                break;

            case 2:
                _title = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _notation = (IfcClassificationNotationFacet) value.EntityVal;
             break;
         case 1:
             _itemOf = (IfcClassification) value.EntityVal;
             break;
         case 2:
             _title = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }