HulaLoop
Simple cross-platform audio loopback and recording.
InteractiveCLI.h
1 #ifndef HL_INTERACTIVE_CLI_H
2 #define HL_INTERACTIVE_CLI_H
3 
4 #include <hlcontrol/hlcontrol.h>
5 
6 namespace hula
7 {
12  enum HulaCliStatus
13  {
14  HULA_CLI_SUCCESS,
15  HULA_CLI_FAILURE,
16  HULA_CLI_EXIT
17  };
18 
23  private:
24  Transport *t;
25  HulaSettings *settings;
26 
27  public:
29 
30  void unusedArgs(const std::vector<std::string> &args, int numUsed) const;
31  void missingArg(const std::string &argName) const;
32  void malformedArg(const std::string &argName, const std::string &val, const std::string &type) const;
33 
34  void start();
35  HulaCliStatus processCommand(const std::string &command, const std::vector<std::string> &args);
36  TransportState getState();
37 
39  };
40 }
41 
42 #endif // END HL_INTERACTIVE_CLI_H
<hlcontrol/hlcontrol.h>
TransportState getState()
Destroy the Hula Interactive Cli:: Hula Interactive Cli object.
Definition: InteractiveCLI.cpp:391
void unusedArgs(const std::vector< std::string > &args, int numUsed) const
Print a warning to the user detailing extra arguments that they provided.
Definition: InteractiveCLI.cpp:32
Extra class for managing the state of the application and all audio related processes.
Definition: Transport.h:29
HulaInteractiveCli()
Constuct a new instance of HulaInteractiveCli.
Definition: InteractiveCLI.cpp:19
void malformedArg(const std::string &argName, const std::string &val, const std::string &type) const
Print a warning about a malformed argument.
Definition: InteractiveCLI.cpp:57
~HulaInteractiveCli()
Destructor for HulaInteractiveCli.
Definition: InteractiveCLI.cpp:399
HulaCliStatus processCommand(const std::string &command, const std::vector< std::string > &args)
Proccess the command entered by the user.
Definition: InteractiveCLI.cpp:117
Class containing the interactive CLI.
Definition: InteractiveCLI.h:22
Definition: Controller.h:11
Singleton class containing all settings for the application.
Definition: HulaSettings.h:12
void missingArg(const std::string &argName) const
Print a warning about missing args to the specified command.
Definition: InteractiveCLI.cpp:45
void start()
Start taking in commands.
Definition: InteractiveCLI.cpp:68