void IfcPropertyTableValue::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 8 ){ std::stringstream err; err << "Wrong parameter count for entity IfcPropertyTableValue, expecting 8, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcIdentifier::createObjectFromSTEP( args[0] ); m_Description = IfcText::createObjectFromSTEP( args[1] ); readSelectList( args[2], m_DefiningValues, map ); readSelectList( args[3], m_DefinedValues, map ); m_Expression = IfcText::createObjectFromSTEP( args[4] ); m_DefiningUnit = IfcUnit::createObjectFromSTEP( args[5], map ); m_DefinedUnit = IfcUnit::createObjectFromSTEP( args[6], map ); m_CurveInterpolation = IfcCurveInterpolationEnum::createObjectFromSTEP( args[7] ); }
void IfcIrregularTimeSeriesValue::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 2 ){ std::stringstream err; err << "Wrong parameter count for entity IfcIrregularTimeSeriesValue, expecting 2, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_TimeStamp = IfcDateTime::createObjectFromSTEP( args[0], map ); readSelectList( args[1], m_ListValues, map ); }
void IfcPropertyTableValue::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcTunnelEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<8 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcPropertyTableValue, expecting 8, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcTunnelException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>8 ){ std::cout << "Wrong parameter count for entity IfcPropertyTableValue, expecting 8, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcIdentifier::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); readSelectList( args[2], m_DefiningValues, map ); readSelectList( args[3], m_DefinedValues, map ); m_Expression = IfcText::readStepData( args[4] ); m_DefiningUnit = IfcUnit::readStepData( args[5], map ); m_DefinedUnit = IfcUnit::readStepData( args[6], map ); m_CurveInterpolation = IfcCurveInterpolationEnum::readStepData( args[7] ); }
void IfcDocumentInformation::readStepArguments( const std::vector<std::string>& args, const std::map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<17 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcDocumentInformation, expecting 17, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>17 ){ std::cout << "Wrong parameter count for entity IfcDocumentInformation, expecting 17, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Identification = IfcIdentifier::createObjectFromStepData( args[0] ); m_Name = IfcLabel::createObjectFromStepData( args[1] ); m_Description = IfcText::createObjectFromStepData( args[2] ); m_Location = IfcURIReference::createObjectFromStepData( args[3] ); m_Purpose = IfcText::createObjectFromStepData( args[4] ); m_IntendedUse = IfcText::createObjectFromStepData( args[5] ); m_Scope = IfcText::createObjectFromStepData( args[6] ); m_Revision = IfcLabel::createObjectFromStepData( args[7] ); m_DocumentOwner = IfcActorSelect::createObjectFromStepData( args[8], map ); readSelectList( args[9], m_Editors, map ); m_CreationTime = IfcDateTime::createObjectFromStepData( args[10] ); m_LastRevisionTime = IfcDateTime::createObjectFromStepData( args[11] ); m_ElectronicFormat = IfcIdentifier::createObjectFromStepData( args[12] ); m_ValidFrom = IfcDate::createObjectFromStepData( args[13] ); m_ValidUntil = IfcDate::createObjectFromStepData( args[14] ); m_Confidentiality = IfcDocumentConfidentialityEnum::createObjectFromStepData( args[15] ); m_Status = IfcDocumentStatusEnum::createObjectFromStepData( args[16] ); }
void IfcIndexedPolyCurve::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 3 ){ std::stringstream err; err << "Wrong parameter count for entity IfcIndexedPolyCurve, expecting 3, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReference( args[0], m_Points, map ); readSelectList( args[1], m_Segments, map ); m_SelfIntersect = IfcBoolean::createObjectFromSTEP( args[2] ); }
void IfcPropertyEnumeration::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 3 ){ std::stringstream err; err << "Wrong parameter count for entity IfcPropertyEnumeration, expecting 3, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); readSelectList( args[1], m_EnumerationValues, map ); m_Unit = IfcUnit::createObjectFromSTEP( args[2], map ); }
void IfcGeometricCurveSet::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcTunnelEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<1 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcGeometricCurveSet, expecting 1, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcTunnelException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>1 ){ std::cout << "Wrong parameter count for entity IfcGeometricCurveSet, expecting 1, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readSelectList( args[0], m_Elements, map ); }
void IfcFillAreaStyle::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 3 ){ std::stringstream err; err << "Wrong parameter count for entity IfcFillAreaStyle, expecting 3, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); readSelectList( args[1], m_FillStyles, map ); if( boost::iequals( args[2], L".F." ) ) { m_ModelorDraughting = false; } else if( boost::iequals( args[2], L".T." ) ) { m_ModelorDraughting = true; } }
void IfcResourceApprovalRelationship::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 4 ){ std::stringstream err; err << "Wrong parameter count for entity IfcResourceApprovalRelationship, expecting 4, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); m_Description = IfcText::createObjectFromSTEP( args[1] ); readSelectList( args[2], m_RelatedResourceObjects, map ); readEntityReference( args[3], m_RelatingApproval, map ); }
void IfcResourceConstraintRelationship::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 4 ){ std::stringstream err; err << "Wrong parameter count for entity IfcResourceConstraintRelationship, expecting 4, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0], map ); m_Description = IfcText::createObjectFromSTEP( args[1], map ); readEntityReference( args[2], m_RelatingConstraint, map ); readSelectList( args[3], m_RelatedResourceObjects, map ); }
void IfcPropertyEnumeratedValue::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 4 ){ std::stringstream err; err << "Wrong parameter count for entity IfcPropertyEnumeratedValue, expecting 4, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_Name = IfcIdentifier::createObjectFromSTEP( args[0], map ); m_Description = IfcText::createObjectFromSTEP( args[1], map ); readSelectList( args[2], m_EnumerationValues, map ); readEntityReference( args[3], m_EnumerationReference, map ); }
void IfcRelAssociates::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 5 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRelAssociates, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_GlobalId = IfcGloballyUniqueId::createObjectFromSTEP( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::createObjectFromSTEP( args[2] ); m_Description = IfcText::createObjectFromSTEP( args[3] ); readSelectList( args[4], m_RelatedObjects, map ); }
void IfcIrregularTimeSeriesValue::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<2 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcIrregularTimeSeriesValue, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>2 ){ std::cout << "Wrong parameter count for entity IfcIrregularTimeSeriesValue, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_TimeStamp = IfcDateTime::readStepData( args[0] ); readSelectList( args[1], m_ListValues, map ); }
void IfcMaterialClassificationRelationship::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<2 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcMaterialClassificationRelationship, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>2 ){ std::cout << "Wrong parameter count for entity IfcMaterialClassificationRelationship, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readSelectList( args[0], m_MaterialClassifications, map ); readEntityReference( args[1], m_ClassifiedMaterial, map ); }
void IfcTableRow::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<2 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcTableRow, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>2 ){ std::cout << "Wrong parameter count for entity IfcTableRow, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readSelectList( args[0], m_RowCells, map ); m_IsHeading = IfcBoolean::readStepData( args[1] ); }
void IfcRelAssociatesApproval::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 6 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRelAssociatesApproval, expecting 6, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_GlobalId = IfcGloballyUniqueId::createObjectFromSTEP( args[0], map ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::createObjectFromSTEP( args[2], map ); m_Description = IfcText::createObjectFromSTEP( args[3], map ); readSelectList( args[4], m_RelatedObjects, map ); readEntityReference( args[5], m_RelatingApproval, map ); }
void IfcTextStyleFontModel::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 6 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTextStyleFontModel, expecting 6, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); readSelectList( args[1], m_FontFamily, map ); m_FontStyle = IfcFontStyle::createObjectFromSTEP( args[2] ); m_FontVariant = IfcFontVariant::createObjectFromSTEP( args[3] ); m_FontWeight = IfcFontWeight::createObjectFromSTEP( args[4] ); m_FontSize = IfcSizeSelect::createObjectFromSTEP( args[5], map ); }
void IfcStyledItem::readStepArguments( const std::vector<std::string>& args, const std::map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<3 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcStyledItem, expecting 3, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>3 ){ std::cout << "Wrong parameter count for entity IfcStyledItem, expecting 3, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_Item, map ); readSelectList( args[1], m_Styles, map ); m_Name = IfcLabel::createObjectFromStepData( args[2] ); }
void IfcSurfaceStyle::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcRoadEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<3 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcSurfaceStyle, expecting 3, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcRoadException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>3 ){ std::cout << "Wrong parameter count for entity IfcSurfaceStyle, expecting 3, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Side = IfcSurfaceSide::readStepData( args[1] ); readSelectList( args[2], m_Styles, map ); }
void IfcPropertyEnumeratedValue::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<4 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcPropertyEnumeratedValue, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>4 ){ std::cout << "Wrong parameter count for entity IfcPropertyEnumeratedValue, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcIdentifier::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); readSelectList( args[2], m_EnumerationValues, map ); readEntityReference( args[3], m_EnumerationReference, map ); }
void IfcResourceConstraintRelationship::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<4 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcResourceConstraintRelationship, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>4 ){ std::cout << "Wrong parameter count for entity IfcResourceConstraintRelationship, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); readEntityReference( args[2], m_RelatingConstraint, map ); readSelectList( args[3], m_RelatedResourceObjects, map ); }
void IfcPresentationLayerAssignment::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<4 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcPresentationLayerAssignment, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>4 ){ std::cout << "Wrong parameter count for entity IfcPresentationLayerAssignment, expecting 4, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); readSelectList( args[2], m_AssignedItems, map ); m_Identifier = IfcIdentifier::readStepData( args[3] ); }
void IfcClassification::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 7 ){ std::stringstream err; err << "Wrong parameter count for entity IfcClassification, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Source = IfcLabel::createObjectFromSTEP( args[0] ); m_Edition = IfcLabel::createObjectFromSTEP( args[1] ); m_EditionDate = IfcDate::createObjectFromSTEP( args[2] ); m_Name = IfcLabel::createObjectFromSTEP( args[3] ); m_Description = IfcText::createObjectFromSTEP( args[4] ); m_Location = IfcURIReference::createObjectFromSTEP( args[5] ); readSelectList( args[6], m_ReferenceTokens, map ); }
void IfcBlobTexture::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 7 ){ std::stringstream err; err << "Wrong parameter count for entity IfcBlobTexture, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } if( boost::iequals( args[0], L".F." ) ) { m_RepeatS = false; } else if( boost::iequals( args[0], L".T." ) ) { m_RepeatS = true; } if( boost::iequals( args[1], L".F." ) ) { m_RepeatT = false; } else if( boost::iequals( args[1], L".T." ) ) { m_RepeatT = true; } m_Mode = IfcIdentifier::createObjectFromSTEP( args[2] ); readEntityReference( args[3], m_TextureTransform, map ); readSelectList( args[4], m_Parameter, map ); m_RasterFormat = IfcIdentifier::createObjectFromSTEP( args[5] ); }
void IfcRelAssociatesDocument::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelAssociatesDocument, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcRelAssociatesDocument, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::readStepData( args[2] ); m_Description = IfcText::readStepData( args[3] ); readSelectList( args[4], m_RelatedObjects, map ); m_RelatingDocument = IfcDocumentSelect::readStepData( args[5], map ); }
void IfcConstructionMaterialResource::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<11 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcConstructionMaterialResource, expecting 11, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>11 ){ std::cout << "Wrong parameter count for entity IfcConstructionMaterialResource, expecting 11, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::readStepData( args[2] ); m_Description = IfcText::readStepData( args[3] ); m_ObjectType = IfcLabel::readStepData( args[4] ); m_ResourceIdentifier = IfcIdentifier::readStepData( args[5] ); m_ResourceGroup = IfcLabel::readStepData( args[6] ); m_ResourceConsumption = IfcResourceConsumptionEnum::readStepData( args[7] ); readEntityReference( args[8], m_BaseQuantity, map ); readSelectList( args[9], m_Suppliers, map ); m_UsageRatio = IfcRatioMeasure::readStepData( args[10] ); }
void IfcDocumentInformation::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 17 ){ std::stringstream err; err << "Wrong parameter count for entity IfcDocumentInformation, expecting 17, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_Identification = IfcIdentifier::createObjectFromSTEP( args[0], map ); m_Name = IfcLabel::createObjectFromSTEP( args[1], map ); m_Description = IfcText::createObjectFromSTEP( args[2], map ); m_Location = IfcURIReference::createObjectFromSTEP( args[3], map ); m_Purpose = IfcText::createObjectFromSTEP( args[4], map ); m_IntendedUse = IfcText::createObjectFromSTEP( args[5], map ); m_Scope = IfcText::createObjectFromSTEP( args[6], map ); m_Revision = IfcLabel::createObjectFromSTEP( args[7], map ); m_DocumentOwner = IfcActorSelect::createObjectFromSTEP( args[8], map ); readSelectList( args[9], m_Editors, map ); m_CreationTime = IfcDateTime::createObjectFromSTEP( args[10], map ); m_LastRevisionTime = IfcDateTime::createObjectFromSTEP( args[11], map ); m_ElectronicFormat = IfcIdentifier::createObjectFromSTEP( args[12], map ); m_ValidFrom = IfcDate::createObjectFromSTEP( args[13], map ); m_ValidUntil = IfcDate::createObjectFromSTEP( args[14], map ); m_Confidentiality = IfcDocumentConfidentialityEnum::createObjectFromSTEP( args[15], map ); m_Status = IfcDocumentStatusEnum::createObjectFromSTEP( args[16], map ); }
void IfcReinforcingBarType::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<16 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcReinforcingBarType, expecting 16, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>16 ){ std::cout << "Wrong parameter count for entity IfcReinforcingBarType, expecting 16, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::readStepData( args[2] ); m_Description = IfcText::readStepData( args[3] ); m_ApplicableOccurrence = IfcIdentifier::readStepData( args[4] ); readEntityReferenceList( args[5], m_HasPropertySets, map ); readEntityReferenceList( args[6], m_RepresentationMaps, map ); m_Tag = IfcLabel::readStepData( args[7] ); m_ElementType = IfcLabel::readStepData( args[8] ); m_PredefinedType = IfcReinforcingBarTypeEnum::readStepData( args[9] ); m_NominalDiameter = IfcPositiveLengthMeasure::readStepData( args[10] ); m_CrossSectionArea = IfcAreaMeasure::readStepData( args[11] ); m_BarLength = IfcPositiveLengthMeasure::readStepData( args[12] ); m_BarSurface = IfcReinforcingBarSurfaceEnum::readStepData( args[13] ); m_BendingShapeCode = IfcLabel::readStepData( args[14] ); readSelectList( args[15], m_BendingParameters, map ); }
void IfcGeometricSet::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map ) { const int num_args = (int)args.size(); if( num_args != 1 ){ std::stringstream err; err << "Wrong parameter count for entity IfcGeometricSet, expecting 1, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readSelectList( args[0], m_Elements, map ); }
void IfcUnitAssignment::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map ) { const size_t num_args = args.size(); if( num_args != 1 ){ std::stringstream err; err << "Wrong parameter count for entity IfcUnitAssignment, expecting 1, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } readSelectList( args[0], m_Units, map ); }