![]() |
HulaLoop
Simple cross-platform audio loopback and recording.
|
Class containing the interactive CLI. More...
#include <InteractiveCLI.h>
Public Member Functions | |
| HulaInteractiveCli () | |
| Constuct a new instance of HulaInteractiveCli. More... | |
| void | unusedArgs (const std::vector< std::string > &args, int numUsed) const |
| Print a warning to the user detailing extra arguments that they provided. More... | |
| void | missingArg (const std::string &argName) const |
| Print a warning about missing args to the specified command. More... | |
| void | malformedArg (const std::string &argName, const std::string &val, const std::string &type) const |
| Print a warning about a malformed argument. More... | |
| void | start () |
| Start taking in commands. More... | |
| HulaCliStatus | processCommand (const std::string &command, const std::vector< std::string > &args) |
| Proccess the command entered by the user. More... | |
| TransportState | getState () |
| Destroy the Hula Interactive Cli:: Hula Interactive Cli object. More... | |
| ~HulaInteractiveCli () | |
| Destructor for HulaInteractiveCli. | |
Class containing the interactive CLI.
| HulaInteractiveCli::HulaInteractiveCli | ( | ) |
Constuct a new instance of HulaInteractiveCli.
This will not start the command loop.
| TransportState HulaInteractiveCli::getState | ( | ) |
Destroy the Hula Interactive Cli:: Hula Interactive Cli object.
| void HulaInteractiveCli::malformedArg | ( | const std::string & | argName, |
| const std::string & | val, | ||
| const std::string & | type | ||
| ) | const |
Print a warning about a malformed argument.
| argName | Name of the malformed argument |
| val | Value given by user |
| type | Expected type of value |
| void HulaInteractiveCli::missingArg | ( | const std::string & | argName | ) | const |
Print a warning about missing args to the specified command.
| argName | Name of the missing argument |
| HulaCliStatus HulaInteractiveCli::processCommand | ( | const std::string & | command, |
| const std::vector< std::string > & | args | ||
| ) |
Proccess the command entered by the user.
| command | Name of command in short or long form |
| args | Vector of arguments that should be used with the command |
| void HulaInteractiveCli::start | ( | ) |
Start taking in commands.
This is an infinite loop.
| void HulaInteractiveCli::unusedArgs | ( | const std::vector< std::string > & | args, |
| int | numUsed | ||
| ) | const |
Print a warning to the user detailing extra arguments that they provided.
| args | Vector of all arguments provided to the command |
| numUsed | Number of arguments actually used by the command |
1.8.11