예제 #1
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:
                _applicableDates.InternalAdd((IfcDateTimeSelect)value.EntityVal);
                return;

            case 6:
                _timeSeriesScheduleType = (IfcTimeSeriesScheduleTypeEnum)System.Enum.Parse(typeof(IfcTimeSeriesScheduleTypeEnum), value.EnumVal, true);
                return;

            case 7:
                _timeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
예제 #2
0
 public IfcTimeSeriesSchedule(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcDateTimeSelect[] __ApplicableDates, IfcTimeSeriesScheduleTypeEnum __TimeSeriesScheduleType, IfcTimeSeries __TimeSeries)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._ApplicableDates        = new List <IfcDateTimeSelect>(__ApplicableDates);
     this._TimeSeriesScheduleType = __TimeSeriesScheduleType;
     this._TimeSeries             = __TimeSeries;
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.IfcParse(propIndex, value);
                break;

            case 5:
                _ApplicableDates.Add((IfcDateTimeSelect)value.EntityVal);
                break;

            case 6:
                _TimeSeriesScheduleType = (IfcTimeSeriesScheduleTypeEnum)Enum.Parse(typeof(IfcTimeSeriesScheduleTypeEnum), value.EnumVal);
                break;

            case 7:
                _TimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
             base.IfcParse(propIndex, value);
             break;
         case 5:
             _ApplicableDates.Add((IfcDateTimeSelect)value.EntityVal);
             break;
         case 6:
             _TimeSeriesScheduleType = (IfcTimeSeriesScheduleTypeEnum)Enum.Parse(typeof(IfcTimeSeriesScheduleTypeEnum), value.EnumVal);
             break;
         case 7:
             _TimeSeries = (IfcTimeSeries)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }