Пример #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _dateComponent = (IfcCalendarDate)(value.EntityVal);
                return;

            case 1:
                _timeComponent = (IfcLocalTime)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #2
0
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _dateComponent = (IfcCalendarDate)value.EntityVal;
                break;

            case 1:
                _localTime = (IfcLocalTime)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcCalendarDate root = (IfcCalendarDate)obj;

            return(this == root);
        }
Пример #4
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:
             _AssetID = value.StringVal;
             break;
         case 6:
             _OriginalValue = (IfcCostValue)value.EntityVal;
             break;
         case 7:
             _CurrentValue = (IfcCostValue)value.EntityVal;
             break;
         case 8:
             _TotalReplacementCost = (IfcCostValue)value.EntityVal;
             break;
         case 9:
             _Owner = (IfcActorSelect)value.EntityVal;
             break;
         case 10:
             _User = (IfcActorSelect)value.EntityVal;
             break;
         case 11:
             _ResponsiblePerson = (IfcPerson)value.EntityVal;
             break;
         case 12:
             _IncorporationDate = (IfcCalendarDate)value.EntityVal;
             break;
         case 13:
             _DepreciatedValue = (IfcCostValue)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #5
0
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _documentId = value.StringVal;
             break;
         case 1:
             _name = value.StringVal;
             break;
         case 2:
             _description = value.StringVal;
             break;
         case 3:
             if (_documentReferences == null) _documentReferences = new XbimSet<IfcDocumentReference>(this);
             _documentReferences.Add_Reversible((IfcDocumentReference) value.EntityVal);
             break;
         case 4:
             _purpose = value.StringVal;
             break;
         case 5:
             _intendedUse = value.StringVal;
             break;
         case 6:
             _scope = value.StringVal;
             break;
         case 7:
             _revision = value.StringVal;
             break;
         case 8:
             _documentOwner = (IfcActorSelect) value.EntityVal;
             break;
         case 9:
             if (_editors == null) _editors = new XbimSet<IfcActorSelect>(this);
             _editors.Add_Reversible((IfcActorSelect) value.EntityVal);
             break;
         case 10:
             _creationTime = (IfcDateAndTime) value.EntityVal;
             break;
         case 11:
             _lastRevisionTime = (IfcDateAndTime) value.EntityVal;
             break;
         case 12:
             _electronicFormat = (IfcDocumentElectronicFormat) value.EntityVal;
             break;
         case 13:
             _validFrom = (IfcCalendarDate) value.EntityVal;
             break;
         case 14:
             _validUntil = (IfcCalendarDate) value.EntityVal;
             break;
         case 15:
             _confidentiality =
                 (IfcDocumentConfidentialityEnum)
                 Enum.Parse(typeof (IfcDocumentConfidentialityEnum), value.EnumVal, true);
             break;
         case 16:
             _status = (IfcDocumentStatusEnum) Enum.Parse(typeof (IfcDocumentStatusEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _version = value.StringVal;
             break;
         case 2:
             _publisher = (IfcOrganization) value.EntityVal;
             break;
         case 3:
             _versionDate = (IfcCalendarDate) value.EntityVal;
             break;
         case 4:
             if (_libraryReference == null) _libraryReference = new XbimSet<IfcLibraryReference>(this);
             ((IXbimNoNotifyCollection)_libraryReference).Add((IfcLibraryReference) value.EntityVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #7
0
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _dateComponent = (IfcCalendarDate) value.EntityVal;
             break;
         case 1:
             _localTime = (IfcLocalTime) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #8
0
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _source = value.StringVal;
             break;
         case 1:
             _edition = value.StringVal;
             break;
         case 2:
             _editionDate = (IfcCalendarDate) value.EntityVal;
             break;
         case 3:
             _name = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #9
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;
     }
 }