24#ifndef ARCHIVE_INIT_LIST_HPP
25#define ARCHIVE_INIT_LIST_HPP
36#include <dar/libdar.hpp>
37#include <libthreadar/libthreadar.hpp>
41#include "html_web_user_interaction.hpp"
67 void set_parametrage(
const saisie* x_param) { param = x_param; };
72 bool opened()
const {
return ptr !=
nullptr; };
76 bool has_subdirectory(
const std::string & dir)
const;
80 std::string get_archive_full_name()
const;
96 std::unique_ptr<libdar::archive> ptr;
97 std::shared_ptr<html_web_user_interaction> ui;
this objects is a thread object that provide access to the content of an existing archive
Definition: archive_init_list.hpp:55
libdar::archive_summary get_summary() const
obtain the archive summary
Definition: archive_init_list.cpp:64
virtual void signaled_inherited_cancel() override
inherited from libthreadar::thread
Definition: archive_init_list.cpp:133
const std::vector< libdar::list_entry > get_children_in_table(const std::string &dir) const
obtains contents from the opened archive in the calling thread
Definition: archive_init_list.cpp:50
bool opened() const
Definition: archive_init_list.hpp:72
void close_archive()
close the opened archive run in the calling thread
Definition: archive_init_list.hpp:83
void set_user_interaction(std::shared_ptr< html_web_user_interaction > ref)
set the user interaction to report on when running the thread
Definition: archive_init_list.hpp:66
virtual void inherited_run() override
inherited from class libthreadar::thread
Definition: archive_init_list.cpp:82
class saisie
Definition: saisie.hpp:106