Tag Parser
9.2.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file. 1 #ifndef TAG_PARSER_ID3GENRES_H
2 #define TAG_PARSER_ID3GENRES_H
13 static inline const char *stringFromIndex(
int index);
14 static int indexFromString(
const std::string &
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 char *
const *genreNames();
69 #endif // TAG_PARSER_ID3GENRES_H
The Id3Genres class converts pre-defined ID3 genres to strings and vise versa.
Contains all classes and functions of the TagInfo library.
static constexpr int emptyGenreIndex()
Returns the preferred genre index to indicate that no genre is set at all.
static constexpr bool isEmptyGenre(int index)
Returns whether the genre index indicates the genre field is not set at all.
static constexpr int genreCount()
Returns the number of supported genres.
static constexpr bool isIndexSupported(int index)
Returns an indication whether the specified numerical denotation is supported by this class.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
constexpr TAG_PARSER_EXPORT const char * genre()
static const char * stringFromIndex(int index)
Returns the genre name for the specified numerical denotation as C-style string.