|
pianod2
multisource multiuser scriptable networked music player
|


Go to the source code of this file.
Namespaces | |
| Predicate | |
| Functions and types for parsing and interpreting predicates. | |
Macros | |
| #define | PREDKEY_MANNER "manner" |
| #define | PREDKEY_TYPE "type" |
| #define | PREDKEY_SEEDTYPE "seedtype" |
| #define | PREDKEY_SOURCE "source" |
| #define | PARSER_SIMPLE_LIST_PREDICATE "simpleListPredicate" |
| #define | PARSER_LIST_PREDICATE "listPredicate" |
| #define | PARSER_SEED_PREDICATE "seedPredicate" |
| #define | PARSER_SINGLE_PREDICATE "singleItemPredicate" |
| #define | PARSER_PLAYLIST_LIST "playlistPredicate" |
| #define | PARSER_SINGLE_PLAYLIST "singlePlaylistPredicate" |
| #define | KEY_PREDICATE "predicate" |
| #define | KEY_PLAYLIST "playlist" |
| #define | SIMPLE_LIST_PREDICATE " {" KEY_PREDICATE ":" PARSER_SIMPLE_LIST_PREDICATE "} ..." |
| #define | LIST_PREDICATE " {" KEY_PREDICATE ":" PARSER_LIST_PREDICATE "} ..." |
| #define | SEED_PREDICATE " {" KEY_PREDICATE ":" PARSER_SEED_PREDICATE "} ..." |
| #define | SINGLE_PREDICATE " {" KEY_PREDICATE ":" PARSER_SINGLE_PREDICATE "}" |
| #define | LIST_PLAYLIST " {" KEY_PLAYLIST ":" PARSER_PLAYLIST_LIST "} ..." |
| #define | SINGLE_PLAYLIST " {" KEY_PLAYLIST ":" PARSER_SINGLE_PLAYLIST "}" |
Functions | |
| void | Predicate::construct_predicate_parsers (PianodParser *parser) |
| bool | Predicate::havePredicate (const Parsnip::Data &options) |
| Check for presence of a predicate. More... | |
| std::unique_ptr< Filter > | Predicate::getPredicate (const PianodConnection &conn, const Parsnip::Data &predicate, Filter::Field field) |
| Return just the filter portion of a predicate, for external use. More... | |
| ThingieList | Predicate::getSpecifiedThings (const PianodConnection &conn, const Parsnip::Data &predicate, SearchRange search_what) |
| Gather a list of assorted things specified by a predicate. More... | |
| MusicThingie * | Predicate::getSpecifiedThing (const PianodConnection &conn, const Parsnip::Data &predicate) |
| Interpret a request for an unspecified type of thing and return it. More... | |
| SongList | Predicate::getSpecifiedSongs (const PianodConnection &conn, const Parsnip::Data &predicate, SearchRange search_what) |
| Interpret a list of songs specified by a predicate. More... | |
| PianodSong * | Predicate::getSpecifiedSong (const PianodConnection &conn, const Parsnip::Data &predicate) |
| Gather a request for a single song and return it. More... | |
| PlaylistList | Predicate::getSpecifiedPlaylists (const PianodConnection &conn, const Parsnip::Data &predicate) |
| Interpret a list of playlists specified by a predicate. More... | |
| PianodPlaylist * | Predicate::getSpecifiedPlaylist (const PianodConnection &conn, const Parsnip::Data &predicate) |
| Gather a request for a single playlist and return it. More... | |
Predicate handling.
Predicate parsing and interpretation.
| #define KEY_PLAYLIST "playlist" |
| #define KEY_PREDICATE "predicate" |
| #define LIST_PLAYLIST " {" KEY_PLAYLIST ":" PARSER_PLAYLIST_LIST "} ..." |
| #define LIST_PREDICATE " {" KEY_PREDICATE ":" PARSER_LIST_PREDICATE "} ..." |
| #define PARSER_LIST_PREDICATE "listPredicate" |
| #define PARSER_PLAYLIST_LIST "playlistPredicate" |
| #define PARSER_SEED_PREDICATE "seedPredicate" |
| #define PARSER_SIMPLE_LIST_PREDICATE "simpleListPredicate" |
| #define PARSER_SINGLE_PLAYLIST "singlePlaylistPredicate" |
| #define PARSER_SINGLE_PREDICATE "singleItemPredicate" |
| #define PREDKEY_MANNER "manner" |
| #define PREDKEY_SEEDTYPE "seedtype" |
| #define PREDKEY_SOURCE "source" |
| #define PREDKEY_TYPE "type" |
| #define SEED_PREDICATE " {" KEY_PREDICATE ":" PARSER_SEED_PREDICATE "} ..." |
| #define SIMPLE_LIST_PREDICATE " {" KEY_PREDICATE ":" PARSER_SIMPLE_LIST_PREDICATE "} ..." |
| #define SINGLE_PLAYLIST " {" KEY_PLAYLIST ":" PARSER_SINGLE_PLAYLIST "}" |
| #define SINGLE_PREDICATE " {" KEY_PREDICATE ":" PARSER_SINGLE_PREDICATE "}" |