1#ifndef TAG_PARSER_ID3GENRES_H
2#define TAG_PARSER_ID3GENRES_H
13 static inline std::string_view stringFromIndex(
int index);
14 static int indexFromString(std::string_view genre);
15 static constexpr int genreCount();
16 static constexpr int emptyGenreIndex();
17 static constexpr bool isEmptyGenre(
int index);
18 static constexpr bool isIndexSupported(
int index);
21 static const std::string_view *genreNames();
The Id3Genres class converts pre-defined ID3 genres to strings and vice versa.
static constexpr bool isEmptyGenre(int index)
Returns whether the genre index indicates the genre field is not set at all.
static constexpr bool isIndexSupported(int index)
Returns an indication whether the specified numerical denotation is supported by this class.
static constexpr int emptyGenreIndex()
Returns the preferred genre index to indicate that no genre is set at all.
static constexpr int genreCount()
Returns the number of supported genres.
static std::string_view stringFromIndex(int index)
Returns the genre name for the specified numerical denotation as C-style string.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.