Creating mapping of preferred sort section name to songs.

This commit is contained in:
Crash Cringle
2024-02-25 09:36:21 -08:00
committed by teejusb
parent 6cd43782d5
commit 3fd0bd8ade
4 changed files with 40 additions and 37 deletions
+3
View File
@@ -143,6 +143,7 @@ public:
const std::vector<Song *> &GetAllSongsOfCurrentGame() const;
void GetPreferredSortSongs( std::vector<Song*> &AddTo ) const;
std::map<RString, std::vector<Song*>> GetPreferredSortSongsMap() const { return m_mapPreferredSectionToSongs;};
RString SongToPreferredSortSectionName( const Song *pSong ) const;
std::vector<RString> GetPreferredSortSectionNames() const;
std::vector<Song*> GetPreferredSortSongsBySectionName( const RString &sSectionName ) const;
@@ -229,6 +230,8 @@ protected:
RString sName;
std::vector<Song*> vpSongs;
};
/** @brief All preferred songs, keyed by section */
std::map<RString, std::vector<Song*>> m_mapPreferredSectionToSongs;
std::vector<PreferredSortSection> m_vPreferredSongSort;
std::vector<RString> m_sSongGroupNames;
std::vector<RString> m_sSongGroupBannerPaths; // each song group may have a banner associated with it