Beispiel #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:
                _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()));
            }
        }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
		internal IfcProjectOrder(IfcProjectOrder i) : base(i) { mPredefinedType = i.mPredefinedType; mStatus = i.mStatus; mLongDescription = i.mLongDescription; }
 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;
     }
 }
Beispiel #6
0
 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;
 }