27 #ifndef SHELL_INTERACTION_EMULATOR_HPP
28 #define SHELL_INTERACTION_EMULATOR_HPP
34 #include "../my_config.h"
44 class shell_interaction_emulator :
public shell_interaction
47 shell_interaction_emulator(user_interaction *emulator);
48 shell_interaction_emulator(
const shell_interaction_emulator & ref) =
default;
49 shell_interaction_emulator(shell_interaction_emulator && ref) noexcept =
delete;
50 shell_interaction_emulator & operator = (
const shell_interaction_emulator & ref) =
delete;
51 shell_interaction_emulator & operator = (shell_interaction_emulator && ref) noexcept =
delete;
52 virtual ~shell_interaction_emulator() =
default;
55 virtual void inherited_message(
const std::string & message)
override { emul->message(message); };
56 virtual bool inherited_pause(
const std::string & message)
override;
57 virtual std::string inherited_get_string(
const std::string & message,
bool echo)
override {
return emul->get_string(message, echo); };
58 virtual secu_string inherited_get_secu_string(
const std::string & message,
bool echo)
override {
return emul->get_secu_string(message, echo); };
61 user_interaction *emul;
libdar namespace encapsulate all libdar symbols
user_interaction class used by default