コード例 #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:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 8:
                _constructionType = (IfcWindowStyleConstructionEnum)System.Enum.Parse(typeof(IfcWindowStyleConstructionEnum), value.EnumVal, true);
                return;

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

            case 10:
                _parameterTakesPrecedence = value.BooleanVal;
                return;

            case 11:
                _sizeable = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #2
0
 /// <summary>
 /// Construct a IfcWindowStyle with all required attributes.
 /// </summary>
 public IfcWindowStyle(IfcGloballyUniqueId globalId, IfcWindowStyleConstructionEnum constructionType, IfcWindowStyleOperationEnum operationType, IfcBoolean parameterTakesPrecedence, IfcBoolean sizeable) : base(globalId)
 {
     ConstructionType         = constructionType;
     OperationType            = operationType;
     ParameterTakesPrecedence = parameterTakesPrecedence;
     Sizeable = sizeable;
 }
コード例 #3
0
 public IfcWindowStyle(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcWindowStyleConstructionEnum constructionType, IfcWindowStyleOperationEnum operationType, IfcBoolean parameterTakesPrecedence, IfcBoolean sizeable) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag)
 {
     ConstructionType         = constructionType;
     OperationType            = operationType;
     ParameterTakesPrecedence = parameterTakesPrecedence;
     Sizeable = sizeable;
 }
コード例 #4
0
 public IfcWindowStyle(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcWindowStyleConstructionEnum __ConstructionType, IfcWindowStyleOperationEnum __OperationType, Boolean __ParameterTakesPrecedence, Boolean __Sizeable)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag)
 {
     this._ConstructionType         = __ConstructionType;
     this._OperationType            = __OperationType;
     this._ParameterTakesPrecedence = __ParameterTakesPrecedence;
     this._Sizeable = __Sizeable;
 }
コード例 #5
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
                base.IfcParse(propIndex, value);
                break;

            case 8:
                _constructionType =
                    (IfcWindowStyleConstructionEnum)
                    Enum.Parse(typeof(IfcWindowStyleConstructionEnum), value.EnumVal, true);
                break;

            case 9:
                _operationType =
                    (IfcWindowStyleOperationEnum)
                    Enum.Parse(typeof(IfcWindowStyleOperationEnum), value.EnumVal, true);
                break;

            case 10:
                _parameterTakesPrecedence = value.BooleanVal;
                break;

            case 11:
                _sizeable = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #6
0
ファイル: IFC W.cs プロジェクト: jddaigle/GeometryGymIFC
 internal IfcWindowStyle(DatabaseIfc db, IfcWindowStyle s) : base(db, s)
 {
     mConstructionType = s.mConstructionType; mOperationType = s.mOperationType; mParameterTakesPrecedence = s.mParameterTakesPrecedence; mSizeable = s.mSizeable;
 }
コード例 #7
0
ファイル: IFC W.cs プロジェクト: jmirtsch/GeometryGymIFC
 internal IfcWindowStyle(DatabaseIfc db, IfcWindowStyle s)
     : base(db,s)
 {
     mConstructionType = s.mConstructionType; mOperationType = s.mOperationType; mParameterTakesPrecedence = s.mParameterTakesPrecedence; mSizeable = s.mSizeable;
 }
コード例 #8
0
 internal IfcWindowStyle(IfcWindowStyle el) : base(el)
 {
     mConstructionType = el.mConstructionType; mOperationType = el.mOperationType; mParameterTakesPrecedence = el.mParameterTakesPrecedence; mSizeable = el.mSizeable;
 }
コード例 #9
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                    base.IfcParse(propIndex, value);
                    break;
                case 8:
                    _constructionType =
                        (IfcWindowStyleConstructionEnum)
                        Enum.Parse(typeof (IfcWindowStyleConstructionEnum), value.EnumVal, true);
                    break;
                case 9:
                    _operationType =
                        (IfcWindowStyleOperationEnum)
                        Enum.Parse(typeof (IfcWindowStyleOperationEnum), value.EnumVal, true);
                    break;
                case 10:
                    _parameterTakesPrecedence = value.BooleanVal;
                    break;
                case 11:
                    _sizeable = value.BooleanVal;
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #10
0
ファイル: IFC W.cs プロジェクト: pietlambert/GeometryGymIFC
 internal IfcWindowStyle(DatabaseIfc db, IfcWindowStyle s, IfcOwnerHistory ownerHistory, bool downStream) : base(db, s, ownerHistory, downStream)
 {
     mConstructionType = s.mConstructionType; mOperationType = s.mOperationType; mParameterTakesPrecedence = s.mParameterTakesPrecedence; mSizeable = s.mSizeable;
 }
コード例 #11
-1
ファイル: IFC W.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcWindowStyle(IfcWindowStyle el) : base(el) { mConstructionType = el.mConstructionType; mOperationType = el.mOperationType; mParameterTakesPrecedence = el.mParameterTakesPrecedence; mSizeable = el.mSizeable; }