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

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

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #2
0
ファイル: IFC C.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcConstructionMaterialResourceType(DatabaseIfc m, string name, IfcConstructionMaterialResourceTypeEnum type) : base(m) { Name = name; mPredefinedType = type; }
コード例 #3
0
 public IfcConstructionMaterialResourceType(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcIdentifier?__ApplicableOccurrence, IfcPropertySetDefinition[] __HasPropertySets, IfcIdentifier?__Identification, IfcText?__LongDescription, IfcLabel?__ResourceType, IfcAppliedValue[] __BaseCosts, IfcPhysicalQuantity __BaseQuantity, IfcConstructionMaterialResourceTypeEnum __PredefinedType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ApplicableOccurrence, __HasPropertySets, __Identification, __LongDescription, __ResourceType, __BaseCosts, __BaseQuantity)
 {
     this._PredefinedType = __PredefinedType;
 }
コード例 #4
0
ファイル: IFC C.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcConstructionMaterialResourceType(IfcConstructionMaterialResourceType t) : base(t) { mPredefinedType = t.mPredefinedType; }
コード例 #5
0
ファイル: IFC C.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcConstructionMaterialResource(IfcConstructionMaterialResource o) : base(o) { mPredefinedType = o.mPredefinedType; }
コード例 #6
0
 public IfcConstructionMaterialResource(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcIdentifier identification, IfcText longDescription, IfcResourceTime usage, List <IfcAppliedValue> baseCosts, IfcPhysicalQuantity baseQuantity, IfcConstructionMaterialResourceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, objectType, identification, longDescription, usage, baseCosts, baseQuantity)
 {
     PredefinedType = predefinedType;
 }
コード例 #7
0
 public IfcConstructionMaterialResourceType(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcIdentifier applicableOccurrence, List <IfcPropertySetDefinition> hasPropertySets, IfcIdentifier identification, IfcText longDescription, IfcLabel resourceType, List <IfcAppliedValue> baseCosts, IfcPhysicalQuantity baseQuantity, IfcConstructionMaterialResourceTypeEnum predefinedType) : base(globalId, ownerHistory, name, description, applicableOccurrence, hasPropertySets, identification, longDescription, resourceType, baseCosts, baseQuantity)
 {
     PredefinedType = predefinedType;
 }
コード例 #8
0
 /// <summary>
 /// Construct a IfcConstructionMaterialResourceType with all required attributes.
 /// </summary>
 public IfcConstructionMaterialResourceType(IfcGloballyUniqueId globalId, IfcConstructionMaterialResourceTypeEnum predefinedType) : base(globalId)
 {
     PredefinedType = predefinedType;
 }