Disk ARchive
2.4.2
|
full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question More...
#include <user_interaction.hpp>
Inherits libdar::user_interaction.
Public Member Functions | |
bool | pause2 (const std::string &message) |
alternative method to the pause() method | |
std::string | get_string (const std::string &message, bool echo) |
method used to ask a question that needs an arbitrary answer. | |
secu_string | get_secu_string (const std::string &message, bool echo) |
same a get_string() but uses secu_string instead | |
user_interaction * | clone () const |
make a newly allocated object which has the same properties as "this". | |
Protected Member Functions | |
void | inherited_warning (const std::string &message) |
need to be overwritten in place of the warning() method since API 3.1.x |
full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question
Definition at line 515 of file user_interaction.hpp.
user_interaction* libdar::user_interaction_blind::clone | ( | ) | const [inline, virtual] |
make a newly allocated object which has the same properties as "this".
This *is* a virtual method, it *must* be overwritten in any inherited class copy constructor and = operator may have to be overwrittent too if necessary Warning ! clone() must throw exception if necessary (Ememory), but never return a NULL pointer !
Implements libdar::user_interaction.
Definition at line 523 of file user_interaction.hpp.
secu_string libdar::user_interaction_blind::get_secu_string | ( | const std::string & | message, |
bool | echo | ||
) | [inline, virtual] |
same a get_string() but uses secu_string instead
[in] | message | is the question to display to the user. |
[in] | echo | is set to false is the answer must not be shown while the user answers. |
Implements libdar::user_interaction.
Definition at line 521 of file user_interaction.hpp.
std::string libdar::user_interaction_blind::get_string | ( | const std::string & | message, |
bool | echo | ||
) | [inline, virtual] |
method used to ask a question that needs an arbitrary answer.
[in] | message | is the question to display to the user. |
[in] | echo | is set to false is the answer must not be shown while the user answers. |
Implements libdar::user_interaction.
Definition at line 520 of file user_interaction.hpp.
void libdar::user_interaction_blind::inherited_warning | ( | const std::string & | message | ) | [inline, protected, virtual] |
need to be overwritten in place of the warning() method since API 3.1.x
[in] | message | message to display |
Implements libdar::user_interaction.
Definition at line 526 of file user_interaction.hpp.
bool libdar::user_interaction_blind::pause2 | ( | const std::string & | message | ) | [inline, virtual] |
alternative method to the pause() method
[in] | message | The boolean question to ask to the user |
Reimplemented from libdar::user_interaction.
Definition at line 518 of file user_interaction.hpp.