Exemple #1
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:
            case 7:
            case 8:
                base.Parse(propIndex, value, nestedIndex);
                return;

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

            case 10:
                _workMethod = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #2
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)
 {
     Status         = status;
     WorkMethod     = workMethod;
     IsMilestone    = isMilestone;
     Priority       = priority;
     TaskTime       = taskTime;
     PredefinedType = predefinedType;
 }
Exemple #3
0
 public IfcTaskType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, IfcIdentifier identification, IfcText longDescription, IfcLabel processType, IfcTaskTypeEnum predefinedType, IfcLabel workMethod) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, identification, longDescription, processType)
 {
     PredefinedType = predefinedType;
     WorkMethod     = workMethod;
 }
Exemple #4
0
        }                                            // optional


        /// <summary>
        /// Construct a IfcTaskType with all required attributes.
        /// </summary>
        public IfcTaskType(IfcGloballyUniqueId globalId, IfcTaskTypeEnum predefinedType) : base(globalId)
        {
            PredefinedType = predefinedType;
        }
Exemple #5
0
		internal IfcTaskType(DatabaseIfc m, string name, IfcTaskTypeEnum t) : base(m) { Name = name; mPredefinedType = t; }
Exemple #6
0
		internal IfcTaskType(IfcTaskType t) : base(t) { mPredefinedType = t.mPredefinedType; mWorkMethod = t.mWorkMethod; }
Exemple #7
0
		internal IfcTask(IfcTask o) : base(o) { mStatus = o.mStatus; mWorkMethod = o.mWorkMethod; mIsMilestone = o.mIsMilestone; mPriority = o.mPriority; mTaskTime = o.mTaskTime; mPredefinedType = o.mPredefinedType; }
Exemple #8
0
 public IfcTaskType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcIdentifier?__Identification, IfcText?__LongDescription, IfcLabel?__ProcessType, IfcTaskTypeEnum __PredefinedType, IfcLabel?__WorkMethod)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __Identification, __LongDescription, __ProcessType)
 {
     this._PredefinedType = __PredefinedType;
     this._WorkMethod     = __WorkMethod;
 }