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 IfcBSplineCurveWithKnots::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 IfcBSplineCurveWithKnots, expecting 8, 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; } readIntList( args[5], m_KnotMultiplicities ); readTypeOfRealList( args[6], m_Knots ); m_KnotSpec = IfcKnotType::createObjectFromSTEP( args[7] ); }
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 IfcBSplineSurface::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 IfcBSplineSurface, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readIntValue( args[0], m_UDegree ); readIntValue( args[1], m_VDegree ); readEntityReferenceList2D( args[2], m_ControlPointsList, map ); m_SurfaceForm = IfcBSplineSurfaceForm::createObjectFromSTEP( args[3] ); if( boost::iequals( args[4], L".F." ) ) { m_UClosed = LOGICAL_FALSE; } else if( boost::iequals( args[4], L".T." ) ) { m_UClosed = LOGICAL_TRUE; } else if( boost::iequals( args[4], L".U." ) ) { m_UClosed = LOGICAL_UNKNOWN; } if( boost::iequals( args[5], L".F." ) ) { m_VClosed = LOGICAL_FALSE; } else if( boost::iequals( args[5], L".T." ) ) { m_VClosed = LOGICAL_TRUE; } else if( boost::iequals( args[5], L".U." ) ) { m_VClosed = LOGICAL_UNKNOWN; } if( boost::iequals( args[6], L".F." ) ) { m_SelfIntersect = LOGICAL_FALSE; } else if( boost::iequals( args[6], L".T." ) ) { m_SelfIntersect = LOGICAL_TRUE; } else if( boost::iequals( args[6], L".U." ) ) { m_SelfIntersect = LOGICAL_UNKNOWN; } }
void IfcBSplineSurface::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcTunnelEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcBSplineSurface, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcTunnelException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcBSplineSurface, expecting 7, 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::readStepData( args[3] ); if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_UClosed = false; } else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_UClosed = true; } if( _stricmp( args[5].c_str(), ".F." ) == 0 ) { m_VClosed = false; } else if( _stricmp( args[5].c_str(), ".T." ) == 0 ) { m_VClosed = true; } if( _stricmp( args[6].c_str(), ".F." ) == 0 ) { m_SelfIntersect = false; } else if( _stricmp( args[6].c_str(), ".T." ) == 0 ) { m_SelfIntersect = true; } }
void IfcDerivedUnitElement::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<2 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcDerivedUnitElement, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>2 ){ std::cout << "Wrong parameter count for entity IfcDerivedUnitElement, expecting 2, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_Unit, map ); readIntValue( args[1], m_Exponent ); }
void IfcRationalBSplineSurfaceWithKnots::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcRoadEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<13 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRationalBSplineSurfaceWithKnots, expecting 13, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcRoadException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>13 ){ std::cout << "Wrong parameter count for entity IfcRationalBSplineSurfaceWithKnots, expecting 13, 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::readStepData( args[3] ); m_UClosed = IfcLogical::readStepData( args[4] ); m_VClosed = IfcLogical::readStepData( args[5] ); m_SelfIntersect = IfcLogical::readStepData( args[6] ); readIntList( args[7], m_UMultiplicities ); readIntList( args[8], m_VMultiplicities ); readTypeOfRealList( args[9], m_UKnots ); readTypeOfRealList( args[10], m_VKnots ); m_KnotSpec = IfcKnotType::readStepData( args[11] ); readTypeOfRealList2D( args[12], m_WeightsData ); }
void IfcStairFlight::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<13 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcStairFlight, expecting 13, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>13 ){ std::cout << "Wrong parameter count for entity IfcStairFlight, expecting 13, 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] ); readEntityReference( args[5], m_ObjectPlacement, map ); readEntityReference( args[6], m_Representation, map ); m_Tag = IfcIdentifier::readStepData( args[7] ); readIntValue( args[8], m_NumberOfRiser ); readIntValue( args[9], m_NumberOfTreads ); m_RiserHeight = IfcPositiveLengthMeasure::readStepData( args[10] ); m_TreadLength = IfcPositiveLengthMeasure::readStepData( args[11] ); m_PredefinedType = IfcStairFlightTypeEnum::readStepData( args[12] ); }
void IfcMaterialProfileWithOffsets::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcMaterialProfileWithOffsets, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcMaterialProfileWithOffsets, expecting 7, 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_Material, map ); readEntityReference( args[3], m_Profile, map ); readIntValue( args[4], m_Priority ); m_Category = IfcLabel::readStepData( args[5] ); readTypeOfRealList( args[6], m_OffsetValues ); }
void IfcDimensionalExponents::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 IfcDimensionalExponents, 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 IfcDimensionalExponents, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readIntValue( args[0], m_LengthExponent ); readIntValue( args[1], m_MassExponent ); readIntValue( args[2], m_TimeExponent ); readIntValue( args[3], m_ElectricCurrentExponent ); readIntValue( args[4], m_ThermodynamicTemperatureExponent ); readIntValue( args[5], m_AmountOfSubstanceExponent ); readIntValue( args[6], m_LuminousIntensityExponent ); }
void IfcBSplineCurve::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 IfcBSplineCurve, 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 IfcBSplineCurve, 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::createObjectFromStepData( args[2] ); if( _stricmp( args[3].c_str(), ".F." ) == 0 ) { m_ClosedCurve = LOGICAL_FALSE; } else if( _stricmp( args[3].c_str(), ".T." ) == 0 ) { m_ClosedCurve = LOGICAL_TRUE; } else if( _stricmp( args[3].c_str(), ".U." ) == 0 ) { m_ClosedCurve = LOGICAL_UNKNOWN; } if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_SelfIntersect = LOGICAL_FALSE; } else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_SelfIntersect = LOGICAL_TRUE; } else if( _stricmp( args[4].c_str(), ".U." ) == 0 ) { m_SelfIntersect = LOGICAL_UNKNOWN; } }
void IfcTask::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 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] ); if( boost::iequals( args[9], L".F." ) ) { m_IsMilestone = false; } else if( boost::iequals( args[9], L".T." ) ) { m_IsMilestone = true; } readIntValue( args[10], m_Priority ); readEntityReference( args[11], m_TaskTime, map ); m_PredefinedType = IfcTaskTypeEnum::createObjectFromSTEP( args[12] ); }
void IfcOrderAction::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 IfcOrderAction, 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 IfcOrderAction, 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_TaskId = IfcIdentifier::readStepData( args[5] ); m_Status = IfcLabel::readStepData( args[6] ); m_WorkMethod = IfcLabel::readStepData( args[7] ); if( _stricmp( args[8].c_str(), ".F." ) == 0 ) { m_IsMilestone = false; } else if( _stricmp( args[8].c_str(), ".T." ) == 0 ) { m_IsMilestone = true; } readIntValue( args[9], m_Priority ); m_ActionID = IfcIdentifier::readStepData( args[10] ); }