Exemple #1
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:
                    _predefinedType = (IfcPileTypeEnum) Enum.Parse(typeof (IfcPileTypeEnum), value.EnumVal, true);
                    break;
                case 9:
                    _constructionType =
                        (IfcPileConstructionEnum) Enum.Parse(typeof (IfcPileConstructionEnum), value.EnumVal, true);
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemple #2
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:
                _predefinedType = (IfcPileTypeEnum)Enum.Parse(typeof(IfcPileTypeEnum), value.EnumVal, true);
                break;

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

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        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:
                _predefinedType = (IfcPileTypeEnum)System.Enum.Parse(typeof(IfcPileTypeEnum), value.EnumVal, true);
                return;

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

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #4
0
 public IfcPileType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcRepresentationMap[] __RepresentationMaps, IfcLabel?__Tag, IfcLabel?__ElementType, IfcPileTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __RepresentationMaps, __Tag, __ElementType)
 {
     this._PredefinedType = __PredefinedType;
 }
Exemple #5
0
		internal IfcPileType(string name, IfcMaterialProfileSet mps, IfcPileTypeEnum type) : base(mps.mDatabase) { Name = name; mPredefinedType = type; MaterialSelect = mps; }
Exemple #6
0
		public IfcPileType(DatabaseIfc m, string name, IfcPileTypeEnum type) : base(m) { Name = name; mPredefinedType = type; }
Exemple #7
0
		internal IfcPileType(IfcPileType b) : base(b) { mPredefinedType = b.mPredefinedType; }
Exemple #8
0
		internal IfcPile(IfcPile p) : base(p) { mPredefinedType = p.mPredefinedType; mConstructionType = p.mConstructionType; }
Exemple #9
0
 public IfcPile(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcIdentifier tag, IfcPileTypeEnum predefinedType, IfcPileConstructionEnum constructionType) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation, tag)
 {
     PredefinedType   = predefinedType;
     ConstructionType = constructionType;
 }
Exemple #10
0
 public IfcPile(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcIdentifier?__Tag, IfcPileTypeEnum __PredefinedType, IfcPileConstructionEnum?__ConstructionType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation, __Tag)
 {
     this._PredefinedType   = __PredefinedType;
     this._ConstructionType = __ConstructionType;
 }
Exemple #11
0
 public IfcPileType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, List <IfcRepresentationMap> representationMaps, IfcLabel tag, IfcLabel elementType, IfcPileTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, representationMaps, tag, elementType)
 {
     PredefinedType = predefinedType;
 }
Exemple #12
0
 /// <summary>
 /// Construct a IfcPileType with all required attributes.
 /// </summary>
 public IfcPileType(IfcGloballyUniqueId globalId, IfcPileTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }