169 const std::string
getInfo(
const unsigned int indent = 0)
const;
180 void _displayHelp()
const;
182 const std::string _gatherResponse()
const;
188 const std::string _getUserChoice()
const;
190 std::atomic<bool> _echo =
false;
191 std::atomic<bool> _help =
false;
192 std::atomic<bool> _hangUp =
false;
193 std::atomic<bool> _playing =
false;
194 std::atomic<bool> _looping =
true;
195 std::atomic<bool> _recording =
false;
Aggregates custom exception headers.
Aggregates logging-related headers.
Aggregates headers from the Recoded folder.
Manages user input and control states.
void spamUserChoice()
Continuously prompts the user for input and processes it.
const bool getEcho() const
Gets the echo state.
void togglePlaying()
Toggles the playing state.
void setUserChoice(const std::string &userChoice)
Processes the user choice.
const bool getRecording() const
Gets the recording state.
const bool isRecording() const
Checks if recording is enabled.
const bool isPlaying() const
Checks if playing is enabled.
void setRecording(const bool recording)
Sets the recording state.
void toggleLooping()
Toggles the looping state.
const bool getHelp() const
Gets the help state.
void setHelp(const bool help)
Sets the help state.
void setPlaying(const bool playing)
Sets the playing state.
const bool getLooping() const
Gets the looping state.
void setLooping(const bool looping)
Sets the looping state.
const bool hangUpTheCall() const
Checks if the call should be hung up.
void toggleHelp()
Toggles the help state.
const bool isHelp() const
Checks if help is enabled.
const bool getPlaying() const
Gets the playing state.
void setEcho(const bool echo)
Sets the echo state.
void toggleRecording()
Toggles the recording state.
const bool isEcho() const
Checks if echo is enabled.
void toggleEcho()
Toggles the echo state.
const bool isLooping() const
Checks if looping is enabled.
void showPrompt() const
Displays the prompt to the user.
const std::string getInfo(const unsigned int indent=0) const
Dumps the current state of the variables for debugging purposes.
std::ostream & operator<<(std::ostream &os, const ThreadCapsule &network)
Overloads the stream insertion operator for ThreadCapsule.