void IfcRationalBSplineCurveWithKnots::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 != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRationalBSplineCurveWithKnots, expecting 9, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_Degree = IfcInteger::createObjectFromSTEP( args[0], map ); readEntityReferenceList( args[1], m_ControlPointsList, map ); m_CurveForm = IfcBSplineCurveForm::createObjectFromSTEP( args[2], map ); m_ClosedCurve = IfcLogical::createObjectFromSTEP( args[3], map ); m_SelfIntersect = IfcLogical::createObjectFromSTEP( args[4], map ); readTypeOfIntegerList( args[5], m_KnotMultiplicities ); readTypeOfRealList( args[6], m_Knots ); m_KnotSpec = IfcKnotType::createObjectFromSTEP( args[7], map ); readTypeOfRealList( args[8], m_WeightsData ); }
void IfcReinforcementDefinitionProperties::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcReinforcementDefinitionProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcReinforcementDefinitionProperties, 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] ); m_DefinitionType = IfcLabel::readStepData( args[4] ); readEntityReferenceList( args[5], m_ReinforcementSectionDefinitions, map ); }
void IfcSectionReinforcementProperties::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<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcSectionReinforcementProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcSectionReinforcementProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_LongitudinalStartPosition = IfcLengthMeasure::createObjectFromStepData( args[0] ); m_LongitudinalEndPosition = IfcLengthMeasure::createObjectFromStepData( args[1] ); m_TransversePosition = IfcLengthMeasure::createObjectFromStepData( args[2] ); m_ReinforcementRole = IfcReinforcingBarRoleEnum::createObjectFromStepData( args[3] ); readEntityReference( args[4], m_SectionDefinition, map ); readEntityReferenceList( args[5], m_CrossSectionReinforcementDefinitions, map ); }
void IfcRelReferencedInSpatialStructure::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelReferencedInSpatialStructure, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcRelReferencedInSpatialStructure, 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] ); readEntityReferenceList( args[4], m_RelatedElements, map ); readEntityReference( args[5], m_RelatingStructure, map ); }
void IfcBSplineCurve::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 IfcBSplineCurve, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readIntValue( args[0], m_Degree ); readEntityReferenceList( args[1], m_ControlPointsList, map ); m_CurveForm = IfcBSplineCurveForm::createObjectFromSTEP( args[2] ); if( boost::iequals( args[3], L".F." ) ) { m_ClosedCurve = LOGICAL_FALSE; } else if( boost::iequals( args[3], L".T." ) ) { m_ClosedCurve = LOGICAL_TRUE; } else if( boost::iequals( args[3], L".U." ) ) { m_ClosedCurve = LOGICAL_UNKNOWN; } if( boost::iequals( args[4], L".F." ) ) { m_SelfIntersect = LOGICAL_FALSE; } else if( boost::iequals( args[4], L".T." ) ) { m_SelfIntersect = LOGICAL_TRUE; } else if( boost::iequals( args[4], L".U." ) ) { m_SelfIntersect = LOGICAL_UNKNOWN; } }
void IfcContext::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 != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcContext, expecting 9, 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] ); m_ObjectType = IfcLabel::createObjectFromSTEP( args[4] ); m_LongName = IfcLabel::createObjectFromSTEP( args[5] ); m_Phase = IfcLabel::createObjectFromSTEP( args[6] ); readEntityReferenceList( args[7], m_RepresentationContexts, map ); readEntityReference( args[8], m_UnitsInContext, map ); }
void IfcRelConnectsWithRealizingElements::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 != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRelConnectsWithRealizingElements, expecting 9, 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 ); readEntityReference( args[4], m_ConnectionGeometry, map ); readEntityReference( args[5], m_RelatingElement, map ); readEntityReference( args[6], m_RelatedElement, map ); readEntityReferenceList( args[7], m_RealizingElements, map ); m_ConnectionType = IfcLabel::createObjectFromSTEP( args[8], map ); }
void IfcPhysicalComplexQuantity::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 IfcPhysicalComplexQuantity, 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 IfcPhysicalComplexQuantity, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); readEntityReferenceList( args[2], m_HasQuantities, map ); m_Discrimination = IfcLabel::readStepData( args[3] ); m_Quality = IfcLabel::readStepData( args[4] ); m_Usage = IfcLabel::readStepData( args[5] ); }
void IfcTypeResource::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 != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTypeResource, expecting 9, 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] ); m_ApplicableOccurrence = IfcIdentifier::createObjectFromSTEP( args[4] ); readEntityReferenceList( args[5], m_HasPropertySets, map ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[6] ); m_LongDescription = IfcText::createObjectFromSTEP( args[7] ); m_ResourceType = IfcLabel::createObjectFromSTEP( args[8] ); }
void IfcIrregularTimeSeries::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 != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcIrregularTimeSeries, expecting 9, 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 ); m_StartTime = IfcDateTime::createObjectFromSTEP( args[2], map ); m_EndTime = IfcDateTime::createObjectFromSTEP( args[3], map ); m_TimeSeriesDataType = IfcTimeSeriesDataTypeEnum::createObjectFromSTEP( args[4], map ); m_DataOrigin = IfcDataOriginEnum::createObjectFromSTEP( args[5], map ); m_UserDefinedDataOrigin = IfcLabel::createObjectFromSTEP( args[6], map ); m_Unit = IfcUnit::createObjectFromSTEP( args[7], map ); readEntityReferenceList( args[8], m_Values, map ); }
void IfcBezierCurve::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcBezierCurve, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcBezierCurve, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readIntValue( args[0], m_Degree ); readEntityReferenceList( args[1], m_ControlPointsList, map ); m_CurveForm = IfcBSplineCurveForm::readStepData( args[2] ); if( _stricmp( args[3].c_str(), ".F." ) == 0 ) { m_ClosedCurve = false; } else if( _stricmp( args[3].c_str(), ".T." ) == 0 ) { m_ClosedCurve = true; } if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_SelfIntersect = false; } else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_SelfIntersect = true; } }
void IfcShapeAspect::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<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcShapeAspect, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcShapeAspect, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReferenceList( args[0], m_ShapeRepresentations, map ); m_Name = IfcLabel::createObjectFromStepData( args[1] ); m_Description = IfcText::createObjectFromStepData( args[2] ); if( _stricmp( args[3].c_str(), ".F." ) == 0 ) { m_ProductDefinitional = LOGICAL_FALSE; } else if( _stricmp( args[3].c_str(), ".T." ) == 0 ) { m_ProductDefinitional = LOGICAL_TRUE; } else if( _stricmp( args[3].c_str(), ".U." ) == 0 ) { m_ProductDefinitional = LOGICAL_UNKNOWN; } m_PartOfProductDefinitionShape = IfcProductRepresentationSelect::createObjectFromStepData( args[4], map ); }
void IfcComplexPropertyTemplate::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcComplexPropertyTemplate, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcComplexPropertyTemplate, expecting 7, 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_UsageName = IfcLabel::readStepData( args[4] ); m_TemplateType = IfcComplexPropertyTemplateTypeEnum::readStepData( args[5] ); readEntityReferenceList( args[6], m_HasPropertyTemplates, map ); }
void IfcRelAssignsToControl::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelAssignsToControl, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcRelAssignsToControl, expecting 7, 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] ); readEntityReferenceList( args[4], m_RelatedObjects, map ); m_RelatedObjectsType = IfcObjectTypeEnum::readStepData( args[5] ); readEntityReference( args[6], m_RelatingControl, 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 IfcProcedureType::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 != 10 ){ std::stringstream err; err << "Wrong parameter count for entity IfcProcedureType, expecting 10, 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 ); m_ApplicableOccurrence = IfcIdentifier::createObjectFromSTEP( args[4], map ); readEntityReferenceList( args[5], m_HasPropertySets, map ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[6], map ); m_LongDescription = IfcText::createObjectFromSTEP( args[7], map ); m_ProcessType = IfcLabel::createObjectFromSTEP( args[8], map ); m_PredefinedType = IfcProcedureTypeEnum::createObjectFromSTEP( args[9], map ); }
void IfcAppliedValue::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 != 10 ){ std::stringstream err; err << "Wrong parameter count for entity IfcAppliedValue, expecting 10, 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] ); m_AppliedValue = IfcAppliedValueSelect::createObjectFromSTEP( args[2], map ); readEntityReference( args[3], m_UnitBasis, map ); m_ApplicableDate = IfcDate::createObjectFromSTEP( args[4] ); m_FixedUntilDate = IfcDate::createObjectFromSTEP( args[5] ); m_Category = IfcLabel::createObjectFromSTEP( args[6] ); m_Condition = IfcLabel::createObjectFromSTEP( args[7] ); m_ArithmeticOperator = IfcArithmeticOperatorEnum::createObjectFromSTEP( args[8] ); readEntityReferenceList( args[9], m_Components, map ); }
void IfcRoofType::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<10 ) { std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRoofType, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>10 ) { std::cout << "Wrong parameter count for entity IfcRoofType, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::createObjectFromStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::createObjectFromStepData( args[2] ); m_Description = IfcText::createObjectFromStepData( args[3] ); m_ApplicableOccurrence = IfcIdentifier::createObjectFromStepData( args[4] ); readEntityReferenceList( args[5], m_HasPropertySets, map ); readEntityReferenceList( args[6], m_RepresentationMaps, map ); m_Tag = IfcLabel::createObjectFromStepData( args[7] ); m_ElementType = IfcLabel::createObjectFromStepData( args[8] ); m_PredefinedType = IfcRoofTypeEnum::createObjectFromStepData( args[9] ); }
void IfcObjective::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 11 ){ std::stringstream err; err << "Wrong parameter count for entity IfcObjective, expecting 11, 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] ); m_ConstraintGrade = IfcConstraintEnum::createObjectFromSTEP( args[2] ); m_ConstraintSource = IfcLabel::createObjectFromSTEP( args[3] ); m_CreatingActor = IfcActorSelect::createObjectFromSTEP( args[4], map ); m_CreationTime = IfcDateTime::createObjectFromSTEP( args[5] ); m_UserDefinedGrade = IfcLabel::createObjectFromSTEP( args[6] ); readEntityReferenceList( args[7], m_BenchmarkValues, map ); m_LogicalAggregator = IfcLogicalOperatorEnum::createObjectFromSTEP( args[8] ); m_ObjectiveQualifier = IfcObjectiveEnum::createObjectFromSTEP( args[9] ); m_UserDefinedQualifier = IfcLabel::createObjectFromSTEP( args[10] ); }
void IfcRecurrencePattern::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 IfcRecurrencePattern, 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 IfcRecurrencePattern, expecting 8, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_RecurrenceType = IfcRecurrenceTypeEnum::readStepData( args[0] ); readTypeOfIntList( args[1], m_DayComponent ); readTypeOfIntList( args[2], m_WeekdayComponent ); readTypeOfIntList( args[3], m_MonthComponent ); m_Position = IfcInteger::readStepData( args[4] ); m_Interval = IfcInteger::readStepData( args[5] ); m_Occurrences = IfcInteger::readStepData( args[6] ); readEntityReferenceList( args[7], m_TimePeriods, map ); }
void IfcCrewResource::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 != 11 ){ std::stringstream err; err << "Wrong parameter count for entity IfcCrewResource, expecting 11, 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] ); m_ObjectType = IfcLabel::createObjectFromSTEP( args[4] ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[5] ); m_LongDescription = IfcText::createObjectFromSTEP( args[6] ); readEntityReference( args[7], m_Usage, map ); readEntityReferenceList( args[8], m_BaseCosts, map ); readEntityReference( args[9], m_BaseQuantity, map ); m_PredefinedType = IfcCrewResourceTypeEnum::createObjectFromSTEP( args[10] ); }
void IfcProjectLibrary::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<9 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcProjectLibrary, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>9 ){ std::cout << "Wrong parameter count for entity IfcProjectLibrary, expecting 9, 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_LongName = IfcLabel::readStepData( args[5] ); m_Phase = IfcLabel::readStepData( args[6] ); readEntityReferenceList( args[7], m_RepresentationContexts, map ); readEntityReference( args[8], m_UnitsInContext, map ); }
void IfcRelConnectsWithRealizingElements::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<9 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelConnectsWithRealizingElements, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>9 ){ std::cout << "Wrong parameter count for entity IfcRelConnectsWithRealizingElements, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::createObjectFromStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::createObjectFromStepData( args[2] ); m_Description = IfcText::createObjectFromStepData( args[3] ); readEntityReference( args[4], m_ConnectionGeometry, map ); readEntityReference( args[5], m_RelatingElement, map ); readEntityReference( args[6], m_RelatedElement, map ); readEntityReferenceList( args[7], m_RealizingElements, map ); m_ConnectionType = IfcLabel::createObjectFromStepData( args[8] ); }
void IfcRationalBSplineCurveWithKnots::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<9 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRationalBSplineCurveWithKnots, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>9 ){ std::cout << "Wrong parameter count for entity IfcRationalBSplineCurveWithKnots, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readIntValue( args[0], m_Degree ); readEntityReferenceList( args[1], m_ControlPointsList, map ); m_CurveForm = IfcBSplineCurveForm::readStepData( args[2] ); m_ClosedCurve = IfcLogical::readStepData( args[3] ); m_SelfIntersect = IfcLogical::readStepData( args[4] ); readIntList( args[5], m_KnotMultiplicities ); readTypeOfRealList( args[6], m_Knots ); m_KnotSpec = IfcKnotType::readStepData( args[7] ); readDoubleList( args[8], m_WeightsData ); }
void IfcTypeProcess::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcTunnelEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<9 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcTypeProcess, expecting 9, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcTunnelException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>9 ){ std::cout << "Wrong parameter count for entity IfcTypeProcess, expecting 9, 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 ); m_Identification = IfcIdentifier::readStepData( args[6] ); m_LongDescription = IfcText::readStepData( args[7] ); m_ProcessType = IfcLabel::readStepData( args[8] ); }
void IfcWorkControl::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 13 ){ std::stringstream err; err << "Wrong parameter count for entity IfcWorkControl, expecting 13, 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] ); m_ObjectType = IfcLabel::createObjectFromSTEP( args[4] ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[5] ); m_CreationDate = IfcDateTime::createObjectFromSTEP( args[6] ); readEntityReferenceList( args[7], m_Creators, map ); m_Purpose = IfcLabel::createObjectFromSTEP( args[8] ); m_Duration = IfcDuration::createObjectFromSTEP( args[9] ); m_TotalFloat = IfcDuration::createObjectFromSTEP( args[10] ); m_StartTime = IfcDateTime::createObjectFromSTEP( args[11] ); m_FinishTime = IfcDateTime::createObjectFromSTEP( args[12] ); }
void IfcConstructionResource::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<10 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcConstructionResource, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>10 ){ std::cout << "Wrong parameter count for entity IfcConstructionResource, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_GlobalId = IfcGloballyUniqueId::createObjectFromStepData( args[0] ); readEntityReference( args[1], m_OwnerHistory, map ); m_Name = IfcLabel::createObjectFromStepData( args[2] ); m_Description = IfcText::createObjectFromStepData( args[3] ); m_ObjectType = IfcLabel::createObjectFromStepData( args[4] ); m_Identification = IfcIdentifier::createObjectFromStepData( args[5] ); m_LongDescription = IfcText::createObjectFromStepData( args[6] ); readEntityReference( args[7], m_Usage, map ); readEntityReferenceList( args[8], m_BaseCosts, map ); readEntityReference( args[9], m_BaseQuantity, map ); }
void IfcCostValue::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<10 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcCostValue, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>10 ){ std::cout << "Wrong parameter count for entity IfcCostValue, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); m_AppliedValue = IfcAppliedValueSelect::readStepData( args[2], map ); readEntityReference( args[3], m_UnitBasis, map ); m_ApplicableDate = IfcDate::readStepData( args[4] ); m_FixedUntilDate = IfcDate::readStepData( args[5] ); m_Category = IfcLabel::readStepData( args[6] ); m_Condition = IfcLabel::readStepData( args[7] ); m_ArithmeticOperator = IfcArithmeticOperatorEnum::readStepData( args[8] ); readEntityReferenceList( args[9], m_Components, map ); }
void IfcRegularTimeSeries::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<10 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRegularTimeSeries, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>10 ){ std::cout << "Wrong parameter count for entity IfcRegularTimeSeries, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); m_StartTime = IfcDateTimeSelect::readStepData( args[2], map ); m_EndTime = IfcDateTimeSelect::readStepData( args[3], map ); m_TimeSeriesDataType = IfcTimeSeriesDataTypeEnum::readStepData( args[4] ); m_DataOrigin = IfcDataOriginEnum::readStepData( args[5] ); m_UserDefinedDataOrigin = IfcLabel::readStepData( args[6] ); m_Unit = IfcUnit::readStepData( args[7], map ); m_TimeStep = IfcTimeMeasure::readStepData( args[8] ); readEntityReferenceList( args[9], m_Values, map ); }
void IfcObjective::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<11 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcObjective, expecting 11, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>11 ){ std::cout << "Wrong parameter count for entity IfcObjective, expecting 11, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); m_ConstraintGrade = IfcConstraintEnum::readStepData( args[2] ); m_ConstraintSource = IfcLabel::readStepData( args[3] ); m_CreatingActor = IfcActorSelect::readStepData( args[4], map ); m_CreationTime = IfcDateTime::readStepData( args[5] ); m_UserDefinedGrade = IfcLabel::readStepData( args[6] ); readEntityReferenceList( args[7], m_BenchmarkValues, map ); m_LogicalAggregator = IfcLogicalOperatorEnum::readStepData( args[8] ); m_ObjectiveQualifier = IfcObjectiveEnum::readStepData( args[9] ); m_UserDefinedQualifier = IfcLabel::readStepData( args[10] ); }