|
pianod2
multisource multiuser scriptable networked music player
|
Interpreter for tonegenerator commands. More...
#include <pandoracommand.h>


Public Member Functions | |
| virtual const Parsnip::Parser::Definitions & | getParserDefinitions () override |
| Retrieve the parser definitions handled by the interpreter. More... | |
Public Member Functions inherited from PianodInterpreter | |
| virtual void | registerInterpreter (PianodDispatcher &dispatcher) |
| Register the interpreter with a dispatcher. More... | |
| const HelpList | getHelp (const std::vector< std::string > &search, std::set< std::string > *option_parsers) |
| Search the interpreter's definitions for any definitions matching search criteria. More... | |
Static Public Member Functions | |
| static const Parsnip::Parser::Definitions & | parser_definitions () |
| static const PianodSchema::CommandIds & | json_request_names () |
| Retrieve names for our JSON requests. More... | |
Static Public Member Functions inherited from PianodInterpreter | |
| static bool | optionIs (const Parsnip::Data &options, const char *name, const char *expected) |
| Check if a string value exists and is case-blind equal to a particular value. More... | |
| template<typename ValueType , typename LookupType > | |
| static ValueType | optionalValue (const Parsnip::Data &options, const char *name, const LookupType &lookup, const ValueType default_value) |
| Retrieve the ID of a string value. More... | |
Private Member Functions | |
| virtual bool | authorizedCommand (Parsnip::Parser::CommandId, PianodConnection &conn) override |
| Check whether a command is authorized. More... | |
| virtual ResponseCollector | handleCommand (Parsnip::Parser::CommandId, const Parsnip::Data &options, PianodConnection &conn) override |
| Command handler. More... | |
Additional Inherited Members | |
Public Types inherited from PianodInterpreter | |
| using | HelpList = PianodDispatcher::HelpList |
Protected Types inherited from PianodInterpreter | |
| using | StringVector = std::vector< std::string > |
Static Protected Attributes inherited from PianodInterpreter | |
| static const Parsnip::Data | EmptyDictionary {Parsnip::Data::Dictionary} |
| An empty dictionary, often used as a default with Parsnip::Data::getOr. More... | |
| static const StringVector | EmptyStringVector |
| An empty string vector, often used as a default with Parsnip::Data::getOr. More... | |
Interpreter for tonegenerator commands.
|
overrideprivatevirtual |
Check whether a command is authorized.
| command_id | The command requesting execution. |
| context | Connection details, including authentication state and privileges. |
Implements PianodInterpreter.

|
overridevirtual |
Retrieve the parser definitions handled by the interpreter.
Implements PianodInterpreter.

|
overrideprivatevirtual |
Command handler.
| command_id | Command to execute. |
| parameters | Command parameters. |
| context | Connection details, including authentication state and privileges. |
| CommandError | or other exception if an error occurs. |
Implements PianodInterpreter.

|
static |
Retrieve names for our JSON requests.

|
static |
