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: _iD = value.StringVal; return; case 6: _predefinedType = (IfcProjectOrderTypeEnum)System.Enum.Parse(typeof(IfcProjectOrderTypeEnum), value.EnumVal, true); return; case 7: _status = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcProjectOrder(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __ID, IfcProjectOrderTypeEnum __PredefinedType, IfcLabel?__Status) : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType) { this._ID = __ID; this._PredefinedType = __PredefinedType; this._Status = __Status; }
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: _ID = (IfcIdentifier)value.EntityVal; break; case 6: _PredefinedType = (IfcProjectOrderTypeEnum)Enum.Parse(typeof(IfcProjectOrderTypeEnum), value.EnumVal); break; case 7: _Status = (IfcLabel)value.StringVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcProjectOrder(IfcProjectOrder i) : base(i) { mPredefinedType = i.mPredefinedType; mStatus = i.mStatus; mLongDescription = i.mLongDescription; }
public IfcProjectOrder(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcIdentifier identification, IfcProjectOrderTypeEnum predefinedType, IfcLabel status, IfcText longDescription) : base(globalId, ownerHistory, name, description, objectType, identification) { PredefinedType = predefinedType; Status = status; LongDescription = longDescription; }