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

            case 6:
                _impactType = value.StringVal;
                break;

            case 7:
                _category =
                    (IfcEnvironmentalImpactCategoryEnum)
                    Enum.Parse(typeof(IfcEnvironmentalImpactCategoryEnum), value.EnumVal, true);
                break;

            case 8:
                _userDefinedCategory = value.StringVal;
                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:
            case 4:
            case 5:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 6:
                _impactType = value.StringVal;
                return;

            case 7:
                _category = (IfcEnvironmentalImpactCategoryEnum)System.Enum.Parse(typeof(IfcEnvironmentalImpactCategoryEnum), value.EnumVal, true);
                return;

            case 8:
                _userDefinedCategory = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
		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;
		}
Esempio n. 4
0
		internal IfcEnvironmentalImpactValue(IfcEnvironmentalImpactValue o) : base(o) { mImpactType = o.mImpactType; mEnvCategory = o.mEnvCategory; mUserDefinedCategory = o.mUserDefinedCategory; }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
             base.IfcParse(propIndex, value);
             break;
         case 6:
             _impactType = value.StringVal;
             break;
         case 7:
             _category =
                 (IfcEnvironmentalImpactCategoryEnum)
                 Enum.Parse(typeof (IfcEnvironmentalImpactCategoryEnum), value.EnumVal, true);
             break;
         case 8:
             _userDefinedCategory = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Esempio n. 6
0
		internal IfcEnvironmentalImpactValue(DatabaseIfc db, IfcEnvironmentalImpactValue v) : base(db,v) { mImpactType = v.mImpactType; mEnvCategory = v.mEnvCategory; mUserDefinedCategory = v.mUserDefinedCategory; }