示例#1
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
             base.IfcParse(propIndex, value); //fall through and call base
             break;
         case 6:
             _predefinedType = (IfcOccupantTypeEnum)Enum.Parse(typeof(IfcOccupantTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
示例#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:
                base.Parse(propIndex, value, nestedIndex);
                return;

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

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
示例#3
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.IfcParse(propIndex, value);     //fall through and call base
                break;

            case 6:
                _predefinedType = (IfcOccupantTypeEnum)Enum.Parse(typeof(IfcOccupantTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
示例#4
0
 public IfcOccupant(IfcActorSelect a, IfcOccupantTypeEnum type) : base(a)
 {
     mPredefinedType = type;
 }
示例#5
0
 internal IfcOccupant(DatabaseIfc db, IfcOccupant o) : base(db, o)
 {
     mPredefinedType = o.mPredefinedType;
 }
示例#6
0
 public IfcOccupant(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcActorSelect __TheActor, IfcOccupantTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __TheActor)
 {
     this._PredefinedType = __PredefinedType;
 }
示例#7
0
 public IfcOccupant(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcActorSelect theActor, IfcOccupantTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, theActor)
 {
     PredefinedType = predefinedType;
 }
示例#8
0
		internal IfcOccupant(IfcActorSelect a, IfcOccupantTypeEnum type) : base(a) { mPredefinedType = type; }