void IfcStructuralAnalysisModel::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 IfcStructuralAnalysisModel, expecting 10, 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_PredefinedType = IfcAnalysisModelTypeEnum::createObjectFromSTEP( args[5] ); readEntityReference( args[6], m_OrientationOf2DPlane, map ); readEntityReferenceList( args[7], m_LoadedBy, map ); readEntityReferenceList( args[8], m_HasResults, map ); readEntityReference( args[9], m_SharedPlacement, 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 IfcActuator::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 IfcActuator, 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] ); readEntityReference( args[5], m_ObjectPlacement, map ); readEntityReference( args[6], m_Representation, map ); m_Tag = IfcIdentifier::createObjectFromSTEP( args[7] ); m_PredefinedType = IfcActuatorTypeEnum::createObjectFromSTEP( args[8] ); }
void IfcStairFlight::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 != 13 ){ std::stringstream err; err << "Wrong parameter count for entity IfcStairFlight, 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] ); readEntityReference( args[5], m_ObjectPlacement, map ); readEntityReference( args[6], m_Representation, map ); m_Tag = IfcIdentifier::createObjectFromSTEP( args[7] ); readIntValue( args[8], m_NumberOfRiser ); readIntValue( args[9], m_NumberOfTreads ); m_RiserHeight = IfcPositiveLengthMeasure::createObjectFromSTEP( args[10] ); m_TreadLength = IfcPositiveLengthMeasure::createObjectFromSTEP( args[11] ); m_PredefinedType = IfcStairFlightTypeEnum::createObjectFromSTEP( args[12] ); }
void IfcRectangularTrimmedSurface::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 IfcRectangularTrimmedSurface, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReference( args[0], m_BasisSurface, map ); m_U1 = IfcParameterValue::createObjectFromSTEP( args[1] ); m_V1 = IfcParameterValue::createObjectFromSTEP( args[2] ); m_U2 = IfcParameterValue::createObjectFromSTEP( args[3] ); m_V2 = IfcParameterValue::createObjectFromSTEP( args[4] ); m_Usense = IfcBoolean::createObjectFromSTEP( args[5] ); m_Vsense = IfcBoolean::createObjectFromSTEP( args[6] ); }
void IfcQuantitySet::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 IfcQuantitySet, expecting 4, 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] ); }
void IfcTShapeProfileDef::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 12 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTShapeProfileDef, expecting 12, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_ProfileType = IfcProfileTypeEnum::createObjectFromSTEP( args[0] ); m_ProfileName = IfcLabel::createObjectFromSTEP( args[1] ); readEntityReference( args[2], m_Position, map ); m_Depth = IfcPositiveLengthMeasure::createObjectFromSTEP( args[3] ); m_FlangeWidth = IfcPositiveLengthMeasure::createObjectFromSTEP( args[4] ); m_WebThickness = IfcPositiveLengthMeasure::createObjectFromSTEP( args[5] ); m_FlangeThickness = IfcPositiveLengthMeasure::createObjectFromSTEP( args[6] ); m_FilletRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[7] ); m_FlangeEdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[8] ); m_WebEdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[9] ); m_WebSlope = IfcPlaneAngleMeasure::createObjectFromSTEP( args[10] ); m_FlangeSlope = IfcPlaneAngleMeasure::createObjectFromSTEP( args[11] ); }
void IfcQuantityTime::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 IfcQuantityTime, expecting 5, 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] ); readEntityReference( args[2], m_Unit, map ); m_TimeValue = IfcTimeMeasure::createObjectFromSTEP( args[3] ); m_Formula = IfcLabel::createObjectFromSTEP( args[4] ); }
void IfcMedicalDeviceType::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 IfcMedicalDeviceType, 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 IfcMedicalDeviceType, 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 = IfcMedicalDeviceTypeEnum::createObjectFromStepData( args[9] ); }
void IfcPropertyListValue::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 IfcPropertyListValue, expecting 4, 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_ListValues, map ); m_Unit = IfcUnit::createObjectFromSTEP( args[3], map ); }
void IfcTask::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 IfcTask, 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_LongDescription = IfcText::createObjectFromSTEP( args[6] ); m_Status = IfcLabel::createObjectFromSTEP( args[7] ); m_WorkMethod = IfcLabel::createObjectFromSTEP( args[8] ); m_IsMilestone = IfcBoolean::createObjectFromSTEP( args[9] ); m_Priority = IfcInteger::createObjectFromSTEP( args[10] ); readEntityReference( args[11], m_TaskTime, map ); m_PredefinedType = IfcTaskTypeEnum::createObjectFromSTEP( args[12] ); }
void IfcMaterialProfileSetUsageTapering::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 5 ){ std::stringstream err; err << "Wrong parameter count for entity IfcMaterialProfileSetUsageTapering, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReference( args[0], m_ForProfileSet, map ); m_CardinalPoint = IfcCardinalPointReference::createObjectFromSTEP( args[1] ); m_ReferenceExtent = IfcPositiveLengthMeasure::createObjectFromSTEP( args[2] ); readEntityReference( args[3], m_ForProfileEndSet, map ); m_CardinalEndPoint = IfcCardinalPointReference::createObjectFromSTEP( args[4] ); }
void IfcOrganization::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 IfcOrganization, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Identification = IfcIdentifier::createObjectFromSTEP( args[0] ); m_Name = IfcLabel::createObjectFromSTEP( args[1] ); m_Description = IfcText::createObjectFromSTEP( args[2] ); readEntityReferenceList( args[3], m_Roles, map ); readEntityReferenceList( args[4], m_Addresses, map ); }
void IfcBSplineSurfaceWithKnots::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<12 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcBSplineSurfaceWithKnots, expecting 12, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>12 ){ std::cout << "Wrong parameter count for entity IfcBSplineSurfaceWithKnots, expecting 12, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readIntValue( args[0], m_UDegree ); readIntValue( args[1], m_VDegree ); readEntityReferenceList2D( args[2], m_ControlPointsList, map ); m_SurfaceForm = IfcBSplineSurfaceForm::createObjectFromStepData( args[3] ); if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_UClosed = LOGICAL_FALSE; } else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_UClosed = LOGICAL_TRUE; } else if( _stricmp( args[4].c_str(), ".U." ) == 0 ) { m_UClosed = LOGICAL_UNKNOWN; } if( _stricmp( args[5].c_str(), ".F." ) == 0 ) { m_VClosed = LOGICAL_FALSE; } else if( _stricmp( args[5].c_str(), ".T." ) == 0 ) { m_VClosed = LOGICAL_TRUE; } else if( _stricmp( args[5].c_str(), ".U." ) == 0 ) { m_VClosed = LOGICAL_UNKNOWN; } if( _stricmp( args[6].c_str(), ".F." ) == 0 ) { m_SelfIntersect = LOGICAL_FALSE; } else if( _stricmp( args[6].c_str(), ".T." ) == 0 ) { m_SelfIntersect = LOGICAL_TRUE; } else if( _stricmp( args[6].c_str(), ".U." ) == 0 ) { m_SelfIntersect = LOGICAL_UNKNOWN; } readIntList( args[7], m_UMultiplicities ); readIntList( args[8], m_VMultiplicities ); readTypeOfRealList( args[9], m_UKnots ); readTypeOfRealList( args[10], m_VKnots ); m_KnotSpec = IfcKnotType::createObjectFromStepData( args[11] ); }
void IfcNamedUnit::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 != 2 ){ std::stringstream err; err << "Wrong parameter count for entity IfcNamedUnit, expecting 2, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReference( args[0], m_Dimensions, map ); m_UnitType = IfcUnitEnum::createObjectFromSTEP( args[1] ); }
void IfcColourSpecification::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<1 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcColourSpecification, expecting 1, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>1 ){ std::cout << "Wrong parameter count for entity IfcColourSpecification, expecting 1, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::createObjectFromStepData( args[0] ); }
void IfcLagTime::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 IfcLagTime, 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 IfcLagTime, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::createObjectFromStepData( args[0] ); m_DataOrigin = IfcDataOriginEnum::createObjectFromStepData( args[1] ); m_UserDefinedDataOrigin = IfcLabel::createObjectFromStepData( args[2] ); m_LagValue = IfcTimeOrRatioSelect::createObjectFromStepData( args[3], map ); m_DurationType = IfcTaskDurationEnum::createObjectFromStepData( args[4] ); }
void IfcTextLiteralWithExtent::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 IfcTextLiteralWithExtent, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Literal = IfcPresentableText::createObjectFromSTEP( args[0] ); m_Placement = IfcAxis2Placement::createObjectFromSTEP( args[1], map ); m_Path = IfcTextPath::createObjectFromSTEP( args[2] ); readEntityReference( args[3], m_Extent, map ); m_BoxAlignment = IfcBoxAlignment::createObjectFromSTEP( args[4] ); }
void IfcStructuralLoadLinearForce::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 7 ){ std::stringstream err; err << "Wrong parameter count for entity IfcStructuralLoadLinearForce, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); m_LinearForceX = IfcLinearForceMeasure::createObjectFromSTEP( args[1] ); m_LinearForceY = IfcLinearForceMeasure::createObjectFromSTEP( args[2] ); m_LinearForceZ = IfcLinearForceMeasure::createObjectFromSTEP( args[3] ); m_LinearMomentX = IfcLinearMomentMeasure::createObjectFromSTEP( args[4] ); m_LinearMomentY = IfcLinearMomentMeasure::createObjectFromSTEP( args[5] ); m_LinearMomentZ = IfcLinearMomentMeasure::createObjectFromSTEP( args[6] ); }
void IfcSurfaceTexture::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 IfcSurfaceTexture, 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 IfcSurfaceTexture, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif if( _stricmp( args[0].c_str(), ".F." ) == 0 ) { m_RepeatS = false; } else if( _stricmp( args[0].c_str(), ".T." ) == 0 ) { m_RepeatS = true; } if( _stricmp( args[1].c_str(), ".F." ) == 0 ) { m_RepeatT = false; } else if( _stricmp( args[1].c_str(), ".T." ) == 0 ) { m_RepeatT = true; } m_Mode = IfcIdentifier::createObjectFromStepData( args[2] ); readEntityReference( args[3], m_TextureTransform, map ); readTypeList( args[4], m_Parameter ); }
void IfcFlowControllerType::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 IfcFlowControllerType, 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 ); readEntityReferenceList( args[6], m_RepresentationMaps, map ); m_Tag = IfcLabel::createObjectFromSTEP( args[7] ); m_ElementType = IfcLabel::createObjectFromSTEP( args[8] ); }
void IfcRectangularTrimmedSurface::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<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRectangularTrimmedSurface, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcRectangularTrimmedSurface, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_BasisSurface, map ); m_U1 = IfcParameterValue::createObjectFromStepData( args[1] ); m_V1 = IfcParameterValue::createObjectFromStepData( args[2] ); m_U2 = IfcParameterValue::createObjectFromStepData( args[3] ); m_V2 = IfcParameterValue::createObjectFromStepData( args[4] ); if( _stricmp( args[5].c_str(), ".F." ) == 0 ) { m_Usense = false; } else if( _stricmp( args[5].c_str(), ".T." ) == 0 ) { m_Usense = true; } if( _stricmp( args[6].c_str(), ".F." ) == 0 ) { m_Vsense = false; } else if( _stricmp( args[6].c_str(), ".T." ) == 0 ) { m_Vsense = true; } }
void IfcCurtainWall::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 IfcCurtainWall, 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 IfcCurtainWall, 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] ); m_ObjectType = IfcLabel::createObjectFromStepData( args[4] ); readEntityReference( args[5], m_ObjectPlacement, map ); readEntityReference( args[6], m_Representation, map ); m_Tag = IfcIdentifier::createObjectFromStepData( args[7] ); m_PredefinedType = IfcCurtainWallTypeEnum::createObjectFromStepData( args[8] ); }
void IfcDoorStyle::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map ) { const auto num_args = args.size(); if( num_args != 12 ){ std::stringstream err; err << "Wrong parameter count for entity IfcDoorStyle, expecting 12, 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 ); readEntityReferenceList( args[6], m_RepresentationMaps, map ); m_Tag = IfcLabel::createObjectFromSTEP( args[7] ); m_OperationType = IfcDoorStyleOperationEnum::createObjectFromSTEP( args[8] ); m_ConstructionType = IfcDoorStyleConstructionEnum::createObjectFromSTEP( args[9] ); m_ParameterTakesPrecedence = IfcBoolean::createObjectFromSTEP( args[10] ); m_Sizeable = IfcBoolean::createObjectFromSTEP( args[11] ); }
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 IfcFace::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 IfcFace, expecting 1, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReferenceList( args[0], m_Bounds, map ); }
void IfcEllipse::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 IfcEllipse, 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 IfcEllipse, expecting 3, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Position = IfcAxis2Placement::createObjectFromStepData( args[0], map ); m_SemiAxis1 = IfcPositiveLengthMeasure::createObjectFromStepData( args[1] ); m_SemiAxis2 = IfcPositiveLengthMeasure::createObjectFromStepData( args[2] ); }
void IfcLightSourceDirectional::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 IfcLightSourceDirectional, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Name = IfcLabel::createObjectFromSTEP( args[0] ); readEntityReference( args[1], m_LightColour, map ); m_AmbientIntensity = IfcNormalisedRatioMeasure::createObjectFromSTEP( args[2] ); m_Intensity = IfcNormalisedRatioMeasure::createObjectFromSTEP( args[3] ); readEntityReference( args[4], m_Orientation, map ); }
void IfcPhysicalComplexQuantity::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 IfcPhysicalComplexQuantity, expecting 6, 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] ); readEntityReferenceList( args[2], m_HasQuantities, map ); m_Discrimination = IfcLabel::createObjectFromSTEP( args[3] ); m_Quality = IfcLabel::createObjectFromSTEP( args[4] ); m_Usage = IfcLabel::createObjectFromSTEP( args[5] ); }
void IfcLibraryReference::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 IfcLibraryReference, expecting 6, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } m_Location = IfcURIReference::createObjectFromSTEP( args[0] ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[1] ); m_Name = IfcLabel::createObjectFromSTEP( args[2] ); m_Description = IfcText::createObjectFromSTEP( args[3] ); m_Language = IfcLanguageId::createObjectFromSTEP( args[4] ); readEntityReference( args[5], m_ReferencedLibrary, map ); }