Esempio n. 1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _timeStamp = value.StringVal;
                return;

            case 1:
                _listValues.InternalAdd((IfcValue)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        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:
                _startTime = value.StringVal;
                return;

            case 3:
                _endTime = value.StringVal;
                return;

            case 4:
                _timeSeriesDataType = (IfcTimeSeriesDataTypeEnum)System.Enum.Parse(typeof(IfcTimeSeriesDataTypeEnum), value.EnumVal, true);
                return;

            case 5:
                _dataOrigin = (IfcDataOriginEnum)System.Enum.Parse(typeof(IfcDataOriginEnum), value.EnumVal, true);
                return;

            case 6:
                _userDefinedDataOrigin = value.StringVal;
                return;

            case 7:
                _unit = (IfcUnit)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }