Beispiel #1
0
 public IfcInventory(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcInventoryTypeEnum predefinedType, IfcActorSelect jurisdiction, List <IfcPerson> responsiblePersons, IfcDate lastUpdateDate, IfcCostValue currentValue, IfcCostValue originalValue) : base(globalId, ownerHistory, name, description, objectType)
 {
     PredefinedType     = predefinedType;
     Jurisdiction       = jurisdiction;
     ResponsiblePersons = responsiblePersons;
     LastUpdateDate     = lastUpdateDate;
     CurrentValue       = currentValue;
     OriginalValue      = originalValue;
 }
Beispiel #2
0
 public IfcInventory(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcInventoryTypeEnum __InventoryType, IfcActorSelect __Jurisdiction, IfcPerson[] __ResponsiblePersons, IfcCalendarDate __LastUpdateDate, IfcCostValue __CurrentValue, IfcCostValue __OriginalValue)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._InventoryType      = __InventoryType;
     this._Jurisdiction       = __Jurisdiction;
     this._ResponsiblePersons = new HashSet <IfcPerson>(__ResponsiblePersons);
     this._LastUpdateDate     = __LastUpdateDate;
     this._CurrentValue       = __CurrentValue;
     this._OriginalValue      = __OriginalValue;
 }
Beispiel #3
0
 internal IfcInventory(DatabaseIfc db, IfcInventory i, DuplicateOptions options) : base(db, i, options)
 {
     PredefinedType = i.PredefinedType;
     mJurisdiction  = db.Factory.Duplicate(i.mJurisdiction, options);
     mResponsiblePersons.AddRange(i.mResponsiblePersons.Select(x => db.Factory.Duplicate(x, options)));
     mLastUpdateDate = i.mLastUpdateDate;
     if (mLastUpdateDateSS != null)
     {
         mLastUpdateDateSS = db.Factory.Duplicate(i.mLastUpdateDateSS, options);
     }
     if (i.mCurrentValue != null)
     {
         mCurrentValue = db.Factory.Duplicate(i.mCurrentValue, options);
     }
     if (i.mOriginalValue != null)
     {
         mOriginalValue = db.Factory.Duplicate(i.mOriginalValue, options);
     }
 }
        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:
                _inventoryType = (IfcInventoryTypeEnum)System.Enum.Parse(typeof(IfcInventoryTypeEnum), value.EnumVal, true);
                return;

            case 6:
                _jurisdiction = (IfcActorSelect)(value.EntityVal);
                return;

            case 7:
                _responsiblePersons.InternalAdd((IfcPerson)value.EntityVal);
                return;

            case 8:
                _lastUpdateDate = (IfcCalendarDate)(value.EntityVal);
                return;

            case 9:
                _currentValue = (IfcCostValue)(value.EntityVal);
                return;

            case 10:
                _originalValue = (IfcCostValue)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #5
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:
                _InventoryType = (IfcInventoryTypeEnum)Enum.Parse(typeof(IfcInventoryTypeEnum), value.EnumVal);
                break;

            case 6:
                _Jurisdiction = (IfcActorSelect)value.EntityVal;
                break;

            case 7:
                _ResponsiblePersons.Add((IfcPerson)value.EntityVal);
                break;

            case 8:
                _LastUpdateDate = (IfcCalendarDate)value.EntityVal;
                break;

            case 9:
                _CurrentValue = (IfcCostValue)value.EntityVal;
                break;

            case 10:
                _OriginalValue = (IfcCostValue)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Beispiel #6
0
		internal IfcInventory(IfcInventory p) : base(p) { mInventoryType = p.mInventoryType; mJurisdiction = p.mJurisdiction; mResponsiblePersons = new List<int>(p.mResponsiblePersons.ToArray()); mLastUpdateDate = p.mLastUpdateDate; mCurrentValue = p.mCurrentValue; mOriginalValue = p.mOriginalValue; }
Beispiel #7
0
 internal IfcInventory(IfcInventory p) : base(p)
 {
     mInventoryType = p.mInventoryType; mJurisdiction = p.mJurisdiction; mResponsiblePersons = new List <int>(p.mResponsiblePersons.ToArray()); mLastUpdateDate = p.mLastUpdateDate; mCurrentValue = p.mCurrentValue; mOriginalValue = p.mOriginalValue;
 }
 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:
             _InventoryType = (IfcInventoryTypeEnum)Enum.Parse(typeof(IfcInventoryTypeEnum), value.EnumVal);
             break;
         case 6:
             _Jurisdiction = (IfcActorSelect)value.EntityVal;
             break;
         case 7:
             _ResponsiblePersons.Add((IfcPerson)value.EntityVal);
             break;
         case 8:
             _LastUpdateDate = (IfcCalendarDate)value.EntityVal;
             break;
         case 9:
             _CurrentValue = (IfcCostValue)value.EntityVal;
             break;
         case 10:
             _OriginalValue = (IfcCostValue)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }