1 #ifndef HL_INTERACTIVE_CLI_H 2 #define HL_INTERACTIVE_CLI_H 6 #include <QCoreApplication> 26 Q_DECLARE_TR_FUNCTIONS(
CLI)
29 QCoreApplication *app;
34 double duration = HL_INFINITE_RECORD;
35 std::string outputFilePath;
40 void unusedArgs(
const std::vector<std::string> &args,
int numUsed)
const;
41 void missingArg(
const std::string &argName)
const;
42 void malformedArg(
const std::string &argName,
const std::string &val,
const std::string &type)
const;
53 #endif // END HL_INTERACTIVE_CLI_H
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:59
Extra class for managing the state of the application and all audio related processes.
Definition: Transport.h:33
Definition: CLICommon.h:49
~InteractiveCLI()
Destructor for InteractiveCLI.
Definition: InteractiveCLI.cpp:557
void missingArg(const std::string &argName) const
Print a warning about missing args to the specified command.
Definition: InteractiveCLI.cpp:47
HulaCliStatus
Status returned by calls to processCommand.
Definition: InteractiveCLI.h:14
Class containing the interactive CLI.
Definition: InteractiveCLI.h:24
InteractiveCLI(QCoreApplication *app)
Constuct a new instance of InteractiveCLI.
Definition: InteractiveCLI.cpp:20
void start()
Start taking in commands.
Definition: InteractiveCLI.cpp:70
Wrapper around translation functions for Qt.
Definition: Controller.h:10
Singleton class containing all settings for the application.
Definition: HulaSettings.h:23
void setOutputFilePath(const std::string &path)
Set the default output file path used by the CLI.
Definition: InteractiveCLI.cpp:549
HulaCliStatus processCommand(const std::string &command, const std::vector< std::string > &args)
Proccess the command entered by the user.
Definition: InteractiveCLI.cpp:118
TransportState getState()
Fetch the state of the internal Transport.
Definition: InteractiveCLI.cpp:539
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:34
TransportState
Available states for the recording/playback logic of the application.
Definition: Transport.h:19