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

            case 1:
                _relatedMonetaryUnit = (IfcMonetaryUnit)(value.EntityVal);
                return;

            case 2:
                _exchangeRate = value.RealVal;
                return;

            case 3:
                _rateDateTime = (IfcDateAndTime)(value.EntityVal);
                return;

            case 4:
                _rateSource = (IfcLibraryInformation)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Esempio n. 2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 3:
                _description = value.StringVal;
                return;

            case 4:
                _language = value.StringVal;
                return;

            case 5:
                _referencedLibrary = (IfcLibraryInformation)(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:
                _relatingMonetaryUnit = (IfcMonetaryUnit)value.EntityVal;
                break;

            case 1:
                _relatedMonetaryUnit = (IfcMonetaryUnit)value.EntityVal;
                break;

            case 2:
                _exchangeRate = value.RealVal;
                break;

            case 3:
                _rateDateTime = (IfcDateAndTime)value.EntityVal;
                break;

            case 4:
                _rateSource = (IfcLibraryInformation)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Esempio n. 4
0
 public IfcCurrencyRelationship(IfcMonetaryUnit __RelatingMonetaryUnit, IfcMonetaryUnit __RelatedMonetaryUnit, IfcPositiveRatioMeasure __ExchangeRate, IfcDateAndTime __RateDateTime, IfcLibraryInformation __RateSource)
 {
     this._RelatingMonetaryUnit = __RelatingMonetaryUnit;
     this._RelatedMonetaryUnit  = __RelatedMonetaryUnit;
     this._ExchangeRate         = __ExchangeRate;
     this._RateDateTime         = __RateDateTime;
     this._RateSource           = __RateSource;
 }
Esempio n. 5
0
 public IfcCurrencyRelationship(IfcLabel?__Name, IfcText?__Description, IfcMonetaryUnit __RelatingMonetaryUnit, IfcMonetaryUnit __RelatedMonetaryUnit, IfcPositiveRatioMeasure __ExchangeRate, IfcDateTime?__RateDateTime, IfcLibraryInformation __RateSource)
     : base(__Name, __Description)
 {
     this.RelatingMonetaryUnit = __RelatingMonetaryUnit;
     this.RelatedMonetaryUnit  = __RelatedMonetaryUnit;
     this.ExchangeRate         = __ExchangeRate;
     this.RateDateTime         = __RateDateTime;
     this.RateSource           = __RateSource;
 }