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())); } }
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; }
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; }
} // optional /// <summary> /// Construct a IfcTaskType with all required attributes. /// </summary> public IfcTaskType(IfcGloballyUniqueId globalId, IfcTaskTypeEnum predefinedType) : base(globalId) { PredefinedType = predefinedType; }
internal IfcTaskType(DatabaseIfc m, string name, IfcTaskTypeEnum t) : base(m) { Name = name; mPredefinedType = t; }
internal IfcTaskType(IfcTaskType t) : base(t) { mPredefinedType = t.mPredefinedType; mWorkMethod = t.mWorkMethod; }
internal IfcTask(IfcTask o) : base(o) { mStatus = o.mStatus; mWorkMethod = o.mWorkMethod; mIsMilestone = o.mIsMilestone; mPriority = o.mPriority; mTaskTime = o.mTaskTime; mPredefinedType = o.mPredefinedType; }
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; }