public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _componentOfTotal = (IfcAppliedValue)value.EntityVal;
                break;

            case 1:
                ((IXbimNoNotifyCollection)_components).Add((IfcAppliedValue)value.EntityVal);
                break;

            case 2:
                _arithmeticOperator =
                    (IfcArithmeticOperatorEnum)
                    Enum.Parse(typeof(IfcArithmeticOperatorEnum), value.EnumVal, true);
                break;

            case 3:
                _name = value.StringVal;
                break;

            case 4:
                _description = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _componentOfTotal = (IfcAppliedValue)(value.EntityVal);
                return;

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

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

            case 3:
                _name = value.StringVal;
                return;

            case 4:
                _description = value.StringVal;
                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 IfcAppliedValueRelationship(IfcAppliedValue __ComponentOfTotal, IfcAppliedValue[] __Components, IfcArithmeticOperatorEnum __ArithmeticOperator, IfcLabel?__Name, IfcText?__Description)
 {
     this._ComponentOfTotal   = __ComponentOfTotal;
     this._Components         = new HashSet <IfcAppliedValue>(__Components);
     this._ArithmeticOperator = __ArithmeticOperator;
     this._Name        = __Name;
     this._Description = __Description;
 }
Example #4
0
        public IfcAppliedValue(IfcLabel name, IfcText description, IfcAppliedValueSelect appliedValue, IfcMeasureWithUnit unitBasis, IfcDate applicableDate, IfcDate fixedUntilDate, IfcLabel category, IfcLabel condition, IfcArithmeticOperatorEnum arithmeticOperator, List <IfcAppliedValue> components) : base()
        {
            HasExternalReference = new List <IfcExternalReferenceRelationship>();

            Name               = name;
            Description        = description;
            AppliedValue       = appliedValue;
            UnitBasis          = unitBasis;
            ApplicableDate     = applicableDate;
            FixedUntilDate     = fixedUntilDate;
            Category           = category;
            Condition          = condition;
            ArithmeticOperator = arithmeticOperator;
            Components         = components;
        }
Example #5
0
		internal IfcAppliedValueRelationship(IfcAppliedValueRelationship o) : base()
		{
			mComponentOfTotal = o.mComponentOfTotal;
			mComponents = new List<int>(o.mComponents.ToArray());
			mArithmeticOperator = o.mArithmeticOperator;
			mName = o.mName;
			mDescription = o.mDescription;
		}
Example #6
0
		internal IfcAppliedValue(IfcAppliedValue v) : base()
		{
			mName = v.mName; mDescription = v.mDescription; mAppliedValue = v.mAppliedValue; mAppliedValueValue = v.mAppliedValueValue; mUnitBasis = v.mUnitBasis; mApplicableDate = v.mApplicableDate;
			mFixedUntilDate = v.mFixedUntilDate; mCategory = v.mCategory; mCondition = v.mCondition; mArithmeticOperator = v.mArithmeticOperator; mComponents.AddRange(v.mComponents);
		}
Example #7
0
 public IfcCostValue(IfcLabel name, IfcText description, IfcAppliedValueSelect appliedValue, IfcMeasureWithUnit unitBasis, IfcDate applicableDate, IfcDate fixedUntilDate, IfcLabel category, IfcLabel condition, IfcArithmeticOperatorEnum arithmeticOperator, List <IfcAppliedValue> components) : base(name, description, appliedValue, unitBasis, applicableDate, fixedUntilDate, category, condition, arithmeticOperator, components)
 {
 }
Example #8
0
		internal IfcAppliedValue(DatabaseIfc db, IfcAppliedValue v) : base(db,v)
		{
			mName = v.mName; mDescription = v.mDescription; mAppliedValueIndex = v.mAppliedValueIndex; mAppliedValueValue = v.mAppliedValueValue;
			UnitBasis = db.Factory.Duplicate(v.UnitBasis) as IfcMeasureWithUnit;
			mApplicableDate = v.mApplicableDate; mFixedUntilDate = v.mFixedUntilDate; mCategory = v.mCategory; mCondition = v.mCondition; mArithmeticOperator = v.mArithmeticOperator;
			Components = v.Components.ConvertAll(x=>db.Factory.Duplicate(x) as IfcAppliedValue);
		}
Example #9
0
		public IfcAppliedValue(IfcAppliedValue component1, IfcArithmeticOperatorEnum op,IfcAppliedValue component2) : base(component1.mDatabase) { Components = new List<IfcAppliedValue>() { component1, component2 }; mArithmeticOperator = op; } 
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _componentOfTotal = (IfcAppliedValue) value.EntityVal;
             break;
         case 1:
             _components.Add((IfcAppliedValue) value.EntityVal);
             break;
         case 2:
             _arithmeticOperator =
                 (IfcArithmeticOperatorEnum)
                 Enum.Parse(typeof (IfcArithmeticOperatorEnum), value.EnumVal, true);
             break;
         case 3:
             _name = value.StringVal;
             break;
         case 4:
             _description = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }