TagLib 1.3.1 (TagLib: id3v1genres.h File Reference)

id3v1genres.h File Reference

#include <tmap.h>
#include <tstringlist.h>

Go to the source code of this file.

Namespaces

namespace  TagLib
namespace  TagLib::ID3v1

Typedefs

typedef Map< String, int > GenreMap

Functions

StringList genreList ()
GenreMap genreMap ()
String genre (int index)
int genreIndex (const String &name)


Typedef Documentation

typedef Map<String, int> TagLib::ID3v1::GenreMap
 


Function Documentation

String genre int  index  ) 
 

Returns the name of the genre at index in the ID3v1 genre list. If index is out of range -- less than zero or greater than 146 -- a null string will be returned.

int genreIndex const String &  name  ) 
 

Returns the genre index for the (case sensitive) genre name. If the genre is not in the list 255 (which signifies an unknown genre in ID3v1) will be returned.

StringList genreList  ) 
 

Returns the list of canonical ID3v1 genre names in the order that they are listed in the standard.

GenreMap genreMap  ) 
 

A "reverse mapping" that goes from the canonical ID3v1 genre name to the respective genre number. genreMap()["Rock"] ==