Пример #1
0
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _dayComponent = (int)value.IntegerVal;
                break;

            case 1:
                _monthComponent = (int)value.IntegerVal;
                break;

            case 2:
                _yearComponent = (int)value.IntegerVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _dayComponent = value.IntegerVal;
                return;

            case 1:
                _monthComponent = value.IntegerVal;
                return;

            case 2:
                _yearComponent = value.IntegerVal;
                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:
                    _dayComponent = (int) value.IntegerVal;
                    break;
                case 1:
                    _monthComponent = (int) value.IntegerVal;
                    break;
                case 2:
                    _yearComponent = (int) value.IntegerVal;
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }