|
pianod2
multisource multiuser scriptable networked music player
|
pianod command processing. More...
#include <cctype>#include <cstring>#include <set>#include <parsnip/parsnip_command.h>#include <parsnip/parsnip_argv.h>#include "fundamentals.h"#include "interpreter.h"
Functions | |
| static bool | helpMatches (std::string help, const std::vector< std::string > search) |
| Determine if search criteria match a help string. More... | |
| static std::string | simplify_statement (const std::string &statement, std::set< std::string > *option_parsers) |
| Remove cruft from a statement definition to clean up its presentation as help. More... | |
| static std::string | getRequestName (const Parsnip::Data &request, const std::set< std::string > &ignore=IgnoreNothing) |
| Retrieve the request name by searching keys in a dictionary. More... | |
| static void | rewrite_push (const char *name, Parsnip::Data *piece, Parsnip::Data *request) |
| Move pieces of requests into a tree structure for execution. More... | |
Variables | |
| static const std::set< std::string > | IgnoreNothing |
| Empty set. More... | |
pianod command processing.
|
static |
Retrieve the request name by searching keys in a dictionary.
| request | The request. |
| ignore | A set of keys to ignore. |
| Command | error if there are no keys or multiple non-ignored keys in the dictionary. |


|
static |
Determine if search criteria match a help string.
| help | The help string to check. |
| search | A list of search criteria (words). |

|
static |
Move pieces of requests into a tree structure for execution.
| name | The new name of the piece being moved. |
| piece | The piece being moved. If nullptr, then nothing is performed. |
| request | The existing request. On return, the moved piece is moved to wrap this. |


|
static |
Remove cruft from a statement definition to clean up its presentation as help.
| statement | The statement to clean up. |
| option_parsers | If the statement references option parsers, they are added to the set. |


|
static |
Empty set.