Tag Parser  8.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Static Public Member Functions | List of all members
TagParser::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 or -1 if genre is unknown. 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 12 of file id3genres.h.

Member Function Documentation

◆ genreCount()

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

Returns the number of supported genres.

Definition at line 34 of file id3genres.h.

◆ indexFromString()

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

Returns the numerical denotation of the specified genre or -1 if genre is unknown.

Definition at line 41 of file id3genres.cpp.

◆ isIndexSupported()

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

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

Definition at line 43 of file id3genres.h.

◆ stringFromIndex()

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

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

Definition at line 26 of file id3genres.h.


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