void IfcTypeObject::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcTypeObject, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcTypeObject, 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_ApplicableOccurrence = IfcIdentifier::readStepData( args[4] ); readEntityReferenceList( args[5], m_HasPropertySets, map ); }
void IfcProjectOrder::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 IfcProjectOrder, 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 ); m_ObjectType = IfcLabel::createObjectFromSTEP( args[4], map ); m_Identification = IfcIdentifier::createObjectFromSTEP( args[5], map ); m_PredefinedType = IfcProjectOrderTypeEnum::createObjectFromSTEP( args[6], map ); m_Status = IfcLabel::createObjectFromSTEP( args[7], map ); m_LongDescription = IfcText::createObjectFromSTEP( args[8], map ); }
void IfcControl::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 IfcControl, 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 IfcControl, expecting 6, 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] ); }
void IfcAppliedValue::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 IfcAppliedValue, 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 IfcAppliedValue, expecting 6, 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 = IfcDateTimeSelect::readStepData( args[4], map ); m_FixedUntilDate = IfcDateTimeSelect::readStepData( args[5], map ); }
void IfcCostItem::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 IfcCostItem, 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_Identification = IfcIdentifier::createObjectFromSTEP( args[5] ); m_PredefinedType = IfcCostItemTypeEnum::createObjectFromSTEP( args[6] ); readEntityReferenceList( args[7], m_CostValues, map ); readEntityReferenceList( args[8], m_CostQuantities, 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 IfcPropertySet::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 IfcPropertySet, 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] ); readEntityReferenceList( args[4], m_HasProperties, map ); }
void IfcZShapeProfileDef::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 IfcZShapeProfileDef, expecting 9, 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_EdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[8] ); }
void IfcTriangulatedFaceSet::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 IfcTriangulatedFaceSet, 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 IfcTriangulatedFaceSet, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_Coordinates, map ); readTypeOfRealList2D( args[1], m_Normals ); if( _stricmp( args[2].c_str(), ".F." ) == 0 ) { m_Closed = false; } else if( _stricmp( args[2].c_str(), ".T." ) == 0 ) { m_Closed = true; } readIntList2D( args[3], m_CoordIndex ); readIntList2D( args[4], m_NormalIndex ); }
void IfcWorkTime::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 IfcWorkTime, 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 IfcWorkTime, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_DataOrigin = IfcDataOriginEnum::readStepData( args[1] ); m_UserDefinedDataOrigin = IfcLabel::readStepData( args[2] ); readEntityReference( args[3], m_RecurrencePattern, map ); m_Start = IfcDate::readStepData( args[4] ); m_Finish = IfcDate::readStepData( args[5] ); }
void IfcRelAssociatesClassification::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 IfcRelAssociatesClassification, 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 IfcRelAssociatesClassification, 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_RelatedObjects, map ); m_RelatingClassification = IfcClassificationNotationSelect::readStepData( args[5], map ); }
void IfcFlowMovingDeviceType::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 IfcFlowMovingDeviceType, 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 IfcLShapeProfileDef::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 IfcLShapeProfileDef, expecting 9, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); } m_ProfileType = IfcProfileTypeEnum::createObjectFromSTEP( args[0], map ); m_ProfileName = IfcLabel::createObjectFromSTEP( args[1], map ); readEntityReference( args[2], m_Position, map ); m_Depth = IfcPositiveLengthMeasure::createObjectFromSTEP( args[3], map ); m_Width = IfcPositiveLengthMeasure::createObjectFromSTEP( args[4], map ); m_Thickness = IfcPositiveLengthMeasure::createObjectFromSTEP( args[5], map ); m_FilletRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[6], map ); m_EdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[7], map ); m_LegSlope = IfcPlaneAngleMeasure::createObjectFromSTEP( args[8], map ); }
void IfcSurfaceStyleRendering::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 IfcSurfaceStyleRendering, expecting 9, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); } readEntityReference( args[0], m_SurfaceColour, map ); m_Transparency = IfcNormalisedRatioMeasure::createObjectFromSTEP( args[1] ); m_DiffuseColour = IfcColourOrFactor::createObjectFromSTEP( args[2], map ); m_TransmissionColour = IfcColourOrFactor::createObjectFromSTEP( args[3], map ); m_DiffuseTransmissionColour = IfcColourOrFactor::createObjectFromSTEP( args[4], map ); m_ReflectionColour = IfcColourOrFactor::createObjectFromSTEP( args[5], map ); m_SpecularColour = IfcColourOrFactor::createObjectFromSTEP( args[6], map ); m_SpecularHighlight = IfcSpecularHighlightSelect::createObjectFromSTEP( args[7], map ); m_ReflectanceMethod = IfcReflectanceMethodEnum::createObjectFromSTEP( args[8] ); }
void IfcRoundedRectangleProfileDef::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 IfcRoundedRectangleProfileDef, 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 IfcRoundedRectangleProfileDef, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_ProfileType = IfcProfileTypeEnum::readStepData( args[0] ); m_ProfileName = IfcLabel::readStepData( args[1] ); readEntityReference( args[2], m_Position, map ); m_XDim = IfcPositiveLengthMeasure::readStepData( args[3] ); m_YDim = IfcPositiveLengthMeasure::readStepData( args[4] ); m_RoundingRadius = IfcPositiveLengthMeasure::readStepData( args[5] ); }
void IfcGeometricRepresentationContext::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 IfcGeometricRepresentationContext, 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 IfcGeometricRepresentationContext, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_ContextIdentifier = IfcLabel::readStepData( args[0] ); m_ContextType = IfcLabel::readStepData( args[1] ); m_CoordinateSpaceDimension = IfcDimensionCount::readStepData( args[2] ); readRealValue( args[3], m_Precision ); m_WorldCoordinateSystem = IfcAxis2Placement::readStepData( args[4], map ); readEntityReference( args[5], m_TrueNorth, map ); }
void IfcLibraryReference::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc4Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcLibraryReference, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc4Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcLibraryReference, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Location = IfcURIReference::readStepData( args[0] ); m_Identification = IfcIdentifier::readStepData( args[1] ); m_Name = IfcLabel::readStepData( args[2] ); m_Description = IfcText::readStepData( args[3] ); m_Language = IfcLanguageId::readStepData( args[4] ); readEntityReference( args[5], m_ReferencedLibrary, 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 IfcVertexPoint::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 IfcVertexPoint, 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 IfcVertexPoint, expecting 1, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_VertexGeometry, map ); }
void IfcRelAssignsToResource::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 IfcRelAssignsToResource, 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 IfcRelAssignsToResource, 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] ); m_RelatingResource = IfcResourceSelect::readStepData( args[6], map ); }
void IfcStructuralLoadGroup::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 IfcStructuralLoadGroup, 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 = IfcLoadGroupTypeEnum::createObjectFromSTEP( args[5] ); m_ActionType = IfcActionTypeEnum::createObjectFromSTEP( args[6] ); m_ActionSource = IfcActionSourceTypeEnum::createObjectFromSTEP( args[7] ); m_Coefficient = IfcRatioMeasure::createObjectFromSTEP( args[8] ); m_Purpose = IfcLabel::createObjectFromSTEP( args[9] ); }
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 IfcMaterialLayer::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 IfcMaterialLayer, 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 IfcMaterialLayer, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_Material, map ); m_LayerThickness = IfcNonNegativeLengthMeasure::createObjectFromStepData( args[1] ); m_IsVentilated = IfcLogical::createObjectFromStepData( args[2] ); m_Name = IfcLabel::createObjectFromStepData( args[3] ); m_Description = IfcText::createObjectFromStepData( args[4] ); m_Category = IfcLabel::createObjectFromStepData( args[5] ); m_Priority = IfcNormalisedRatioMeasure::createObjectFromStepData( 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 IfcDistributionCircuit::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 IfcDistributionCircuit, 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 IfcDistributionCircuit, 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_ObjectType = IfcLabel::readStepData( args[4] ); m_LongName = IfcLabel::readStepData( args[5] ); m_PredefinedType = IfcDistributionSystemEnum::readStepData( args[6] ); }
void IfcTriangulatedFaceSet::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map ) { const int num_args = (int)args.size(); if( num_args<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcTriangulatedFaceSet, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcTriangulatedFaceSet, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; } #endif readEntityReference( args[0], m_Coordinates, map ); readTypeOfRealList2D( args[1], m_Normals ); m_Closed = IfcBoolean::readStepData( args[2] ); IfcStepCTE::readListOfListOfIntegers(args[3], m_CoordIndex); IfcStepCTE::readListOfListOfIntegers(args[4], m_NormalIndex); //readIntList2D( args[3], m_CoordIndex ); //readIntList2D( args[4], m_NormalIndex ); }
void IfcProjectedCRS::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 IfcProjectedCRS, 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 IfcProjectedCRS, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_Description = IfcText::readStepData( args[1] ); m_GeodeticDatum = IfcIdentifier::readStepData( args[2] ); m_VerticalDatum = IfcIdentifier::readStepData( args[3] ); m_MapProjection = IfcIdentifier::readStepData( args[4] ); m_MapZone = IfcIdentifier::readStepData( args[5] ); readEntityReference( args[6], m_MapUnit, map ); }
void IfcTrapeziumProfileDef::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 IfcTrapeziumProfileDef, 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 IfcTrapeziumProfileDef, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_ProfileType = IfcProfileTypeEnum::readStepData( args[0] ); m_ProfileName = IfcLabel::readStepData( args[1] ); readEntityReference( args[2], m_Position, map ); m_BottomXDim = IfcPositiveLengthMeasure::readStepData( args[3] ); m_TopXDim = IfcPositiveLengthMeasure::readStepData( args[4] ); m_YDim = IfcPositiveLengthMeasure::readStepData( args[5] ); m_TopXOffset = IfcLengthMeasure::readStepData( args[6] ); }
void IfcPipeFittingType::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 IfcPipeFittingType, 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 ); readEntityReferenceList( args[6], m_RepresentationMaps, map ); m_Tag = IfcLabel::createObjectFromSTEP( args[7], map ); m_ElementType = IfcLabel::createObjectFromSTEP( args[8], map ); m_PredefinedType = IfcPipeFittingTypeEnum::createObjectFromSTEP( args[9], map ); }
void IfcWindowLiningProperties::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 IfcWindowLiningProperties, 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 IfcWindowLiningProperties, 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_LiningDepth = IfcPositiveLengthMeasure::readStepData( args[4] ); m_LiningThickness = IfcNonNegativeLengthMeasure::readStepData( args[5] ); m_TransomThickness = IfcNonNegativeLengthMeasure::readStepData( args[6] ); m_MullionThickness = IfcNonNegativeLengthMeasure::readStepData( args[7] ); m_FirstTransomOffset = IfcNormalisedRatioMeasure::readStepData( args[8] ); m_SecondTransomOffset = IfcNormalisedRatioMeasure::readStepData( args[9] ); m_FirstMullionOffset = IfcNormalisedRatioMeasure::readStepData( args[10] ); m_SecondMullionOffset = IfcNormalisedRatioMeasure::readStepData( args[11] ); readEntityReference( args[12], m_ShapeAspectStyle, map ); m_LiningOffset = IfcLengthMeasure::readStepData( args[13] ); m_LiningToPanelOffsetX = IfcLengthMeasure::readStepData( args[14] ); m_LiningToPanelOffsetY = IfcLengthMeasure::readStepData( args[15] ); }