Tag Parser  6.2.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Static Public Member Functions | List of all members
Media::Id3Genres Class Reference

The Id3Genres class converts pre-defined ID3 genres to strings and vise versa. More...

#include <id3genres.h>

Static Public Member Functions

static const char * stringFromIndex (int index)
 Returns the genre name for the specified numerical denotation as C-style string. More...
 
static int indexFromString (const std::string &genre)
 Returns the numerical denotation of the specified genre. More...
 
static constexpr int genreCount ()
 Returns the number of supported genres. More...
 
static constexpr bool isIndexSupported (int index)
 Returns an indication whether the specified numerical denotation is supported by this class. More...
 

Detailed Description

The Id3Genres class converts pre-defined ID3 genres to strings and vise versa.

Definition at line 13 of file id3genres.h.

Member Function Documentation

◆ genreCount()

constexpr int Media::Id3Genres::genreCount ( )
static

Returns the number of supported genres.

Definition at line 36 of file id3genres.h.

◆ indexFromString()

int Media::Id3Genres::indexFromString ( const std::string &  genre)
static

Returns the numerical denotation of the specified genre.

Definition at line 52 of file id3genres.cpp.

◆ isIndexSupported()

constexpr bool Media::Id3Genres::isIndexSupported ( int  index)
static

Returns an indication whether the specified numerical denotation is supported by this class.

Definition at line 45 of file id3genres.h.

◆ stringFromIndex()

const char * Media::Id3Genres::stringFromIndex ( int  index)
inlinestatic

Returns the genre name for the specified numerical denotation as C-style string.

Definition at line 28 of file id3genres.h.


The documentation for this class was generated from the following files: