131 THROW_IO_ERROR( wxT(
"The target format does not support this generator kind." ) );
136 THROW_IO_ERROR( wxT(
"The tuning generator contains unreviewed properties." ) );
138 if( aV9 && pattern->GetSettings().m_isTimeDomain )
139 THROW_IO_ERROR( wxT(
"Time-domain tuning editability must be removed before writing KiCad 9." ) );
145 if( !( aV9 ? property.m_v9 : property.m_v10 ) )
148 if( aV9 && std::string( property.m_key ) ==
"last_tuning" )
150 result.set( property.m_key, pattern->GetTuningInfo() );
152 else if(
const auto value = current.find( property.m_key ); value != current.end() )
154 result.emplace( value->first, value->second );
wxString result
Test unit parsing edge cases and error handling.