|
pianod2
multisource multiuser scriptable networked music player
|
Ratings support. More...


Go to the source code of this file.
Classes | |
| class | RatingAverager |
| A class to average ratings. More... | |
| struct | rating_lookup_t |
| class | RatingLookup |
| String to rating conversion. More... | |
Typedefs | |
| typedef struct rating_lookup_t | RATING_LOOKUP |
Enumerations | |
| enum class | RatingScheme { NOBODY , INDIVIDUAL , OWNER } |
| Rules of who may rate an object. More... | |
| enum class | Rating { UNRATED , REPUGNANT , AWFUL , BAD , POOR , LACKLUSTER , NEUTRAL , OKAY , GOOD , EXCELLENT , SUPERB } |
| Discrete ratings values. More... | |
Functions | |
| constexpr float | ratingAsFloat (Rating rating) |
| Convert from a ratings enumeration to a floating-point star-rating. More... | |
| Rating | floatToRating (float rating) |
| Convert a star-rating to a ratings enumeration. More... | |
Variables | |
| const RatingLookup | RATINGS |
Ratings support.
Ratings enumerations, conversion to stars, averaging and text equivalence.
| typedef struct rating_lookup_t RATING_LOOKUP |
|
strong |
Discrete ratings values.
|
strong |
| Rating floatToRating | ( | float | rating | ) |
Convert a star-rating to a ratings enumeration.

|
inlineconstexpr |
Convert from a ratings enumeration to a floating-point star-rating.

|
extern |