29#include "//include/dar/libdar_my_config.h"
31#include "//include/dar/user_interaction.hpp"
63 mem_ui(
const std::shared_ptr<user_interaction> & dialog);
97 std::shared_ptr<user_interaction>
get_pointer()
const {
return ui; };
100 void change_ui(
const std::shared_ptr<user_interaction> & new_dialog) {
if(!new_dialog)
throw SRC_BUG; ui = new_dialog; };
103 std::shared_ptr<user_interaction> ui;
void change_ui(const std::shared_ptr< user_interaction > &new_dialog)
change the user_interaction object
mem_ui & operator=(const mem_ui &ref)=default
assignement operator
std::shared_ptr< user_interaction > get_pointer() const
get access to the shared_ptr pointing to the user_interaction
mem_ui(const std::shared_ptr< user_interaction > &dialog)
constructor
virtual ~mem_ui() noexcept(false)
destructor
mem_ui(const mem_ui &ref)=default
the copy constructor
user_interaction & get_ui() const
get access to the user_interaction object
mem_ui(mem_ui &&ref) noexcept=default
the move constructor
This is a pure virtual class that is used by libdar when interaction with the user is required.
libdar namespace encapsulate all libdar symbols