void IfcSurfaceStyleWithTextures::getAttributes( std::vector<std::pair<std::string, shared_ptr<IfcPPObject> > >& vec_attributes ) { IfcPresentationItem::getAttributes( vec_attributes ); if( m_Textures.size() > 0 ) { shared_ptr<IfcPPAttributeObjectVector> Textures_vec_object( new IfcPPAttributeObjectVector() ); std::copy( m_Textures.begin(), m_Textures.end(), std::back_inserter( Textures_vec_object->m_vec ) ); vec_attributes.push_back( std::make_pair( "Textures", Textures_vec_object ) ); } }
void IfcSurfaceStyleWithTextures::getAttributes( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes ) const { IfcPresentationItem::getAttributes( vec_attributes ); if( !m_Textures.empty() ) { shared_ptr<AttributeObjectVector> Textures_vec_object( new AttributeObjectVector() ); std::copy( m_Textures.begin(), m_Textures.end(), std::back_inserter( Textures_vec_object->m_vec ) ); vec_attributes.emplace_back( std::make_pair( "Textures", Textures_vec_object ) ); } }