1 #ifndef TAG_PARSER_ID3GENRES_H 2 #define TAG_PARSER_ID3GENRES_H 6 #include <c++utilities/conversion/types.h> 14 static inline const char *stringFromIndex(
int index);
15 static int indexFromString(
const std::string &
genre);
16 static constexpr
int genreCount();
17 static constexpr
int emptyGenreIndex();
18 static constexpr
bool isEmptyGenre(
int index);
19 static constexpr
bool isIndexSupported(
int index);
22 static const char **genreNames();
70 #endif // TAG_PARSER_ID3GENRES_H static const char * stringFromIndex(int index)
Returns the genre name for the specified numerical denotation as C-style string.
static constexpr int genreCount()
Returns the number of supported genres.
static constexpr int emptyGenreIndex()
Returns the preferred genre index to indicate that no genre is set at all.
constexpr TAG_PARSER_EXPORT const char * genre()
The Id3Genres class converts pre-defined ID3 genres to strings and vise 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.
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.