示例#1
0
 public IfcTask(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier?__Identification, IfcText?__LongDescription, IfcLabel?__Status, IfcLabel?__WorkMethod, IfcBoolean __IsMilestone, IfcInteger?__Priority, IfcTaskTime __TaskTime, IfcTaskTypeEnum?__PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __Identification, __LongDescription)
 {
     this._Status         = __Status;
     this._WorkMethod     = __WorkMethod;
     this._IsMilestone    = __IsMilestone;
     this._Priority       = __Priority;
     this._TaskTime       = __TaskTime;
     this._PredefinedType = __PredefinedType;
 }
示例#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:
                _status = value.StringVal;
                return;

            case 8:
                _workMethod = value.StringVal;
                return;

            case 9:
                _isMilestone = value.BooleanVal;
                return;

            case 10:
                _priority = value.IntegerVal;
                return;

            case 11:
                _taskTime = (IfcTaskTime)(value.EntityVal);
                return;

            case 12:
                _predefinedType = (IfcTaskTypeEnum)System.Enum.Parse(typeof(IfcTaskTypeEnum), value.EnumVal, true);
                return;

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