Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | Protected Member Functions | List of all members
libdar::user_interaction_blind Class Reference

full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question More...

#include <user_interaction_blind.hpp>

+ Inheritance diagram for libdar::user_interaction_blind:
+ Collaboration diagram for libdar::user_interaction_blind:

Public Member Functions

 user_interaction_blind (const user_interaction_blind &ref)=default
 
 user_interaction_blind (user_interaction_blind &&ref) noexcept=default
 
user_interaction_blindoperator= (const user_interaction_blind &ref)=default
 
user_interaction_blindoperator= (user_interaction_blind &&ref) noexcept=default
 
- Public Member Functions inherited from libdar::user_interaction
 user_interaction (const user_interaction &ref)=default
 
 user_interaction (user_interaction &&ref) noexcept=default
 
user_interactionoperator= (const user_interaction &ref)=default
 
user_interactionoperator= (user_interaction &&ref) noexcept=default
 
void message (const std::string &message)
 
void pause (const std::string &message)
 
std::string get_string (const std::string &message, bool echo)
 
secu_string get_secu_string (const std::string &message, bool echo)
 
virtual void printf (const char *format,...)
 libdar uses this call to format output before send to message() method. More...
 

Protected Member Functions

virtual void inherited_message (const std::string &message) override
 
virtual bool inherited_pause (const std::string &message) override
 method used to ask a boolean question to the user. More...
 
virtual std::string inherited_get_string (const std::string &message, bool echo) override
 method used to ask a question that needs an arbitrary answer. More...
 
virtual secu_string inherited_get_secu_string (const std::string &message, bool echo) override
 same a get_string() but uses libdar::secu_string instead of std::string More...
 

Detailed Description

full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question

Definition at line 46 of file user_interaction_blind.hpp.

Member Function Documentation

◆ inherited_get_secu_string()

virtual secu_string libdar::user_interaction_blind::inherited_get_secu_string ( const std::string &  message,
bool  echo 
)
inlineoverrideprotectedvirtual

same a get_string() but uses libdar::secu_string instead of std::string

Parameters
[in]messageis the question to display to the user.
[in]echois set to false is the answer must not be shown while the user answers.
Returns
the user's answer.
Note
messages passed by libdar are not ending with a newline by default its up to the implementation to separate messages by the adequate mean

Implements libdar::user_interaction.

Definition at line 60 of file user_interaction_blind.hpp.

◆ inherited_get_string()

virtual std::string libdar::user_interaction_blind::inherited_get_string ( const std::string &  message,
bool  echo 
)
inlineoverrideprotectedvirtual

method used to ask a question that needs an arbitrary answer.

Parameters
[in]messageis the question to display to the user.
[in]echois set to false is the answer must not be shown while the user answers.
Returns
the user's answer.
Note
messages passed by libdar are not ending with a newline by default its up to the implementation to separate messages by the adequate mean

Implements libdar::user_interaction.

Definition at line 59 of file user_interaction_blind.hpp.

◆ inherited_message()

virtual void libdar::user_interaction_blind::inherited_message ( const std::string &  message)
inlineoverrideprotectedvirtual

method used to display a warning or a message to the user.

Parameters
[in]messageis the message to display.
Note
messages passed by libdar are not ending with a newline by default its up to the implementation to separate messages by the adequate mean

Implements libdar::user_interaction.

Definition at line 57 of file user_interaction_blind.hpp.

◆ inherited_pause()

virtual bool libdar::user_interaction_blind::inherited_pause ( const std::string &  message)
inlineoverrideprotectedvirtual

method used to ask a boolean question to the user.

Parameters
[in]messageThe boolean question to ask to the user
Returns
the answer of the user (true/yes or no/false)
Note
messages passed by libdar are not ending with a newline by default its up to the implementation to separate messages by the adequate mean

Implements libdar::user_interaction.

Definition at line 58 of file user_interaction_blind.hpp.


The documentation for this class was generated from the following file: