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:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 13:
                _serialNumber = value.StringVal;
                return;

            case 14:
                _installationDate = value.StringVal;
                return;

            case 15:
                _warrantyStartDate = value.StringVal;
                return;

            case 16:
                _tagNumber = value.StringVal;
                return;

            case 17:
                _barCode = value.StringVal;
                return;

            case 18:
                _assetIdentifier = value.StringVal;
                return;

            case 19:
                _type = (CobieType)(value.EntityVal);
                return;

            case 20:
                _spaces.InternalAdd((CobieSpace)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 5:
                _name = value.StringVal;
                return;

            case 6:
                _description = value.StringVal;
                return;

            case 7:
                _spareType = (CobieSpareType)(value.EntityVal);
                return;

            case 8:
                _type = (CobieType)(value.EntityVal);
                return;

            case 9:
                _suppliers.InternalAdd((CobieContact)value.EntityVal);
                return;

            case 10:
                _setNumber = value.StringVal;
                return;

            case 11:
                _partNumber = 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 override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 5:
                _taskNumber = value.StringVal;
                return;

            case 6:
                _name = value.StringVal;
                return;

            case 7:
                _description = value.StringVal;
                return;

            case 8:
                _jobType = (CobieJobType)(value.EntityVal);
                return;

            case 9:
                _jobStatusType = (CobieJobStatusType)(value.EntityVal);
                return;

            case 10:
                _duration = value.RealVal;
                return;

            case 11:
                _durationUnit = (CobieDurationUnit)(value.EntityVal);
                return;

            case 12:
                _start = value.RealVal;
                return;

            case 13:
                _startUnit = (CobieDurationUnit)(value.EntityVal);
                return;

            case 14:
                _frequency = value.RealVal;
                return;

            case 15:
                _frequencyUnit = (CobieDurationUnit)(value.EntityVal);
                return;

            case 16:
                _priors = (CobieJob)(value.EntityVal);
                return;

            case 17:
                _resources.InternalAdd((CobieResource)value.EntityVal);
                return;

            case 18:
                _type = (CobieType)(value.EntityVal);
                return;

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