Tag Parser 12.3.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The Id3Genres class converts pre-defined ID3 genres to strings and vice versa. More...
#include <id3genres.h>
Static Public Member Functions | |
static std::string_view | stringFromIndex (int index) |
Returns the genre name for the specified numerical denotation as C-style string. | |
static int | indexFromString (std::string_view genre) |
Returns the numerical denotation of the specified genre or -1 if genre is unknown. | |
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. | |
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. | |
The Id3Genres class converts pre-defined ID3 genres to strings and vice versa.
Definition at line 11 of file id3genres.h.
|
staticconstexpr |
Returns the preferred genre index to indicate that no genre is set at all.
Definition at line 45 of file id3genres.h.
|
staticconstexpr |
Returns the number of supported genres.
Definition at line 35 of file id3genres.h.
|
static |
Returns the numerical denotation of the specified genre or -1 if genre is unknown.
Definition at line 42 of file id3genres.cpp.
|
staticconstexpr |
Returns whether the genre index indicates the genre field is not set at all.
Definition at line 53 of file id3genres.h.
|
staticconstexpr |
Returns an indication whether the specified numerical denotation is supported by this class.
Definition at line 62 of file id3genres.h.
|
inlinestatic |
Returns the genre name for the specified numerical denotation as C-style string.
Definition at line 27 of file id3genres.h.