public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.IfcParse(propIndex, value);
                break;

            case 4:
                _applicableValueRatio = value.RealVal;
                break;

            case 5:
                _thermalLoadSource =
                    (IfcThermalLoadSourceEnum)Enum.Parse(typeof(IfcThermalLoadSourceEnum), value.EnumVal, true);
                break;

            case 6:
                _propertySource =
                    (IfcPropertySourceEnum)Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                break;

            case 7:
                _sourceDescription = value.StringVal;
                break;

            case 8:
                _maximumValue = value.RealVal;
                break;

            case 9:
                _minimumValue = value.RealVal;
                break;

            case 10:
                _thermalLoadTimeSeriesValues = (IfcTimeSeries)value.EntityVal;
                break;

            case 11:
                _userDefinedThermalLoadSource = value.StringVal;
                break;

            case 12:
                _userDefinedPropertySource = value.StringVal;
                break;

            case 13:
                _thermalLoadType =
                    (IfcThermalLoadTypeEnum)Enum.Parse(typeof(IfcThermalLoadTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 4:
                _applicableValueRatio = value.RealVal;
                return;

            case 5:
                _thermalLoadSource = (IfcThermalLoadSourceEnum)System.Enum.Parse(typeof(IfcThermalLoadSourceEnum), value.EnumVal, true);
                return;

            case 6:
                _propertySource = (IfcPropertySourceEnum)System.Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                return;

            case 7:
                _sourceDescription = value.StringVal;
                return;

            case 8:
                _maximumValue = value.RealVal;
                return;

            case 9:
                _minimumValue = value.RealVal;
                return;

            case 10:
                _thermalLoadTimeSeriesValues = (IfcTimeSeries)(value.EntityVal);
                return;

            case 11:
                _userDefinedThermalLoadSource = value.StringVal;
                return;

            case 12:
                _userDefinedPropertySource = value.StringVal;
                return;

            case 13:
                _thermalLoadType = (IfcThermalLoadTypeEnum)System.Enum.Parse(typeof(IfcThermalLoadTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #3
0
 public IfcSpaceThermalLoadProperties(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcPositiveRatioMeasure?__ApplicableValueRatio, IfcThermalLoadSourceEnum __ThermalLoadSource, IfcPropertySourceEnum __PropertySource, IfcText?__SourceDescription, IfcPowerMeasure __MaximumValue, IfcPowerMeasure?__MinimumValue, IfcTimeSeries __ThermalLoadTimeSeriesValues, IfcLabel?__UserDefinedThermalLoadSource, IfcLabel?__UserDefinedPropertySource, IfcThermalLoadTypeEnum __ThermalLoadType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._ApplicableValueRatio         = __ApplicableValueRatio;
     this._ThermalLoadSource            = __ThermalLoadSource;
     this._PropertySource               = __PropertySource;
     this._SourceDescription            = __SourceDescription;
     this._MaximumValue                 = __MaximumValue;
     this._MinimumValue                 = __MinimumValue;
     this._ThermalLoadTimeSeriesValues  = __ThermalLoadTimeSeriesValues;
     this._UserDefinedThermalLoadSource = __UserDefinedThermalLoadSource;
     this._UserDefinedPropertySource    = __UserDefinedPropertySource;
     this._ThermalLoadType              = __ThermalLoadType;
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                    base.IfcParse(propIndex, value);
                    break;
                case 4:
                    _applicableValueRatio = value.RealVal;
                    break;
                case 5:
                    _thermalLoadSource =
                        (IfcThermalLoadSourceEnum) Enum.Parse(typeof (IfcThermalLoadSourceEnum), value.EnumVal, true);
                    break;
                case 6:
                    _propertySource =
                        (IfcPropertySourceEnum) Enum.Parse(typeof (IfcPropertySourceEnum), value.EnumVal, true);
                    break;
                case 7:
                    _sourceDescription = value.StringVal;
                    break;
                case 8:
                    _maximumValue = value.RealVal;
                    break;
                case 9:
                    _minimumValue = value.RealVal;
                    break;
                case 10:
                    _thermalLoadTimeSeriesValues = (IfcTimeSeries) value.EntityVal;
                    break;
                case 11:
                    _userDefinedThermalLoadSource = value.StringVal;
                    break;
                case 12:
                    _userDefinedPropertySource = value.StringVal;
                    break;
                case 13:
                    _thermalLoadType =
                        (IfcThermalLoadTypeEnum) Enum.Parse(typeof (IfcThermalLoadTypeEnum), value.EnumVal, true);
                    break;

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