26#ifndef USER_INTERACTION_HPP 
   27#define USER_INTERACTION_HPP 
   29#include "../my_config.h" 
   70    void message(
const std::string & message);
 
   71    void pause(
const std::string & message);
 
   72    std::string get_string(
const std::string & message, 
bool echo);
 
   73    secu_string get_secu_string(
const std::string & message, 
bool echo);
 
   84    virtual void printf(
const char *format, ...);
 
  153    std::list<pthread_t> monitoring;
 
class to be used as parent to provide checkpoints to inherited classes
 
This is a pure virtual class that is used by libdar when interaction with the user is required.
 
virtual bool inherited_pause(const std::string &message)=0
method used to ask a boolean question to the user.
 
virtual void inherited_message(const std::string &message)=0
 
virtual std::string inherited_get_string(const std::string &message, bool echo)=0
method used to ask a question that needs an arbitrary answer.
 
void add_thread_to_monitor(pthread_t tid)
add a thread to monitor
 
virtual void printf(const char *format,...)
libdar uses this call to format output before sending to the message() method.
 
virtual secu_string inherited_get_secu_string(const std::string &message, bool echo)=0
same a get_string() but uses libdar::secu_string instead of std::string
 
void remove_thread_from_monitor(pthread_t tid)
remove a thread from monitoring
 
bool cancellation_requested() const
known whether cancellation was requested for the current thread or an added thread
 
switch module to limitint (32 ou 64 bits integers) or infinint
 
libdar namespace encapsulate all libdar symbols
 
this file contains the definition of secu_string class, a std::string like class but allocated in sec...
 
to be able to cancel libdar operation while running in a given thread.