コード例 #1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                base.IfcParse(propIndex, value);
                break;

            case 7:
                _benchmarkValues = (IfcMetric)value.EntityVal;
                break;

            case 8:
                _resultValues = (IfcMetric)value.EntityVal;
                break;

            case 9:
                _objectiveQualifier = (IfcObjectiveEnum)Enum.Parse(typeof(IfcObjectiveEnum), value.EnumVal);
                break;

            case 10:
                _userDefinedQualifier = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 7:
                _benchmarkValues = (IfcMetric)(value.EntityVal);
                return;

            case 8:
                _resultValues = (IfcMetric)(value.EntityVal);
                return;

            case 9:
                _objectiveQualifier = (IfcObjectiveEnum)System.Enum.Parse(typeof(IfcObjectiveEnum), value.EnumVal, true);
                return;

            case 10:
                _userDefinedQualifier = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #3
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _benchmarkValues = (IfcMetric) value.EntityVal;
             break;
         case 8:
             _resultValues = (IfcMetric) value.EntityVal;
             break;
         case 9:
             _objectiveQualifier = (IfcObjectiveEnum) Enum.Parse(typeof (IfcObjectiveEnum), value.EnumVal);
             break;
         case 10:
             _userDefinedQualifier = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }