void IfcIrregularTimeSeriesValue::getAttributes( std::vector<std::pair<std::string, shared_ptr<BuildingObject> > >& vec_attributes ) const { vec_attributes.push_back( std::make_pair( "TimeStamp", m_TimeStamp ) ); if( m_ListValues.size() > 0 ) { shared_ptr<AttributeObjectVector> ListValues_vec_object( new AttributeObjectVector() ); std::copy( m_ListValues.begin(), m_ListValues.end(), std::back_inserter( ListValues_vec_object->m_vec ) ); vec_attributes.push_back( std::make_pair( "ListValues", ListValues_vec_object ) ); } }
void IfcPropertyListValue::getAttributes( std::vector<std::pair<std::string, shared_ptr<IfcPPObject> > >& vec_attributes ) { IfcSimpleProperty::getAttributes( vec_attributes ); if( m_ListValues.size() > 0 ) { shared_ptr<IfcPPAttributeObjectVector> ListValues_vec_object( new IfcPPAttributeObjectVector() ); std::copy( m_ListValues.begin(), m_ListValues.end(), std::back_inserter( ListValues_vec_object->m_vec ) ); vec_attributes.push_back( std::make_pair( "ListValues", ListValues_vec_object ) ); } vec_attributes.push_back( std::make_pair( "Unit", m_Unit ) ); }