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

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _appliedValue = (IfcAppliedValueSelect)value.EntityVal;
                break;

            case 3:
                _unitBasis = (IfcMeasureWithUnit)value.EntityVal;
                break;

            case 4:
                _applicableDate = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 5:
                _fixedUntilDate = (IfcDateTimeSelect)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #2
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:
                _appliedValue = (IfcAppliedValueSelect)(value.EntityVal);
                return;

            case 3:
                _unitBasis = (IfcMeasureWithUnit)(value.EntityVal);
                return;

            case 4:
                _applicableDate = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 5:
                _fixedUntilDate = (IfcDateTimeSelect)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #3
0
		public IfcEnvironmentalImpactValue(IfcLabel? __Name, IfcText? __Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDateTimeSelect __ApplicableDate, IfcDateTimeSelect __FixedUntilDate, IfcLabel __ImpactType, IfcEnvironmentalImpactCategoryEnum __Category, IfcLabel? __UserDefinedCategory)
			: base(__Name, __Description, __AppliedValue, __UnitBasis, __ApplicableDate, __FixedUntilDate)
		{
			this._ImpactType = __ImpactType;
			this._Category = __Category;
			this._UserDefinedCategory = __UserDefinedCategory;
		}
Пример #4
0
 public IfcAppliedValue(IfcLabel?__Name, IfcText?__Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDateTimeSelect __ApplicableDate, IfcDateTimeSelect __FixedUntilDate)
 {
     this._Name           = __Name;
     this._Description    = __Description;
     this._AppliedValue   = __AppliedValue;
     this._UnitBasis      = __UnitBasis;
     this._ApplicableDate = __ApplicableDate;
     this._FixedUntilDate = __FixedUntilDate;
 }
Пример #5
0
 public IfcAppliedValue(IfcLabel?__Name, IfcText?__Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDate?__ApplicableDate, IfcDate?__FixedUntilDate, IfcLabel?__Category, IfcLabel?__Condition, IfcArithmeticOperatorEnum?__ArithmeticOperator, IfcAppliedValue[] __Components)
 {
     this._Name               = __Name;
     this._Description        = __Description;
     this._AppliedValue       = __AppliedValue;
     this._UnitBasis          = __UnitBasis;
     this._ApplicableDate     = __ApplicableDate;
     this._FixedUntilDate     = __FixedUntilDate;
     this._Category           = __Category;
     this._Condition          = __Condition;
     this._ArithmeticOperator = __ArithmeticOperator;
     this._Components         = new List <IfcAppliedValue>(__Components);
 }
Пример #6
0
 public IfcAppliedValue(IfcLabel?__Name, IfcText?__Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDate?__ApplicableDate, IfcDate?__FixedUntilDate, IfcLabel?__Category, IfcLabel?__Condition, IfcArithmeticOperatorEnum?__ArithmeticOperator, IfcAppliedValue[] __Components)
 {
     this.Name                 = __Name;
     this.Description          = __Description;
     this.AppliedValue         = __AppliedValue;
     this.UnitBasis            = __UnitBasis;
     this.ApplicableDate       = __ApplicableDate;
     this.FixedUntilDate       = __FixedUntilDate;
     this.Category             = __Category;
     this.Condition            = __Condition;
     this.ArithmeticOperator   = __ArithmeticOperator;
     this.Components           = new List <IfcAppliedValue>(__Components);
     this.HasExternalReference = new HashSet <IfcExternalReferenceRelationship>();
 }
Пример #7
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:
                _appliedValue = (IfcAppliedValueSelect)(value.EntityVal);
                return;

            case 3:
                _unitBasis = (IfcMeasureWithUnit)(value.EntityVal);
                return;

            case 4:
                _applicableDate = value.StringVal;
                return;

            case 5:
                _fixedUntilDate = value.StringVal;
                return;

            case 6:
                _category = value.StringVal;
                return;

            case 7:
                _condition = value.StringVal;
                return;

            case 8:
                _arithmeticOperator = (IfcArithmeticOperatorEnum)System.Enum.Parse(typeof(IfcArithmeticOperatorEnum), value.EnumVal, true);
                return;

            case 9:
                _components.InternalAdd((IfcAppliedValue)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #8
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                    _name = value.StringVal;
                    break;
                case 1:
                    _description = value.StringVal;
                    break;
                case 2:
                    _appliedValue = (IfcAppliedValueSelect) value.EntityVal;
                    break;
                case 3:
                    _unitBasis = (IfcMeasureWithUnit) value.EntityVal;
                    break;
                case 4:
                    _applicableDate = (IfcDateTimeSelect) value.EntityVal;
                    break;
                case 5:
                    _fixedUntilDate = (IfcDateTimeSelect) value.EntityVal;
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #9
0
 public IfcCostValue(IfcLabel?__Name, IfcText?__Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDateTimeSelect __ApplicableDate, IfcDateTimeSelect __FixedUntilDate, IfcLabel __CostType, IfcText?__Condition)
     : base(__Name, __Description, __AppliedValue, __UnitBasis, __ApplicableDate, __FixedUntilDate)
 {
     this._CostType  = __CostType;
     this._Condition = __Condition;
 }
Пример #10
0
 public IfcCostValue(IfcLabel?__Name, IfcText?__Description, IfcAppliedValueSelect __AppliedValue, IfcMeasureWithUnit __UnitBasis, IfcDate?__ApplicableDate, IfcDate?__FixedUntilDate, IfcLabel?__Category, IfcLabel?__Condition, IfcArithmeticOperatorEnum?__ArithmeticOperator, IfcAppliedValue[] __Components)
     : base(__Name, __Description, __AppliedValue, __UnitBasis, __ApplicableDate, __FixedUntilDate, __Category, __Condition, __ArithmeticOperator, __Components)
 {
 }
Пример #11
0
		public IfcAppliedValue(IfcAppliedValueSelect appliedValue) : base(appliedValue.Database) { AppliedValue = appliedValue; }