Webdar 1.0.0
Web user interface to libdar
html_mask.hpp
1/*********************************************************************/
2// webdar - a web server and interface program to libdar
3// Copyright (C) 2013-2025 Denis Corbin
4//
5// This file is part of Webdar
6//
7// Webdar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// Webdar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with Webdar. If not, see <http://www.gnu.org/licenses/>
19//
20//----
21// to contact the author: dar.linux@free.fr
22/*********************************************************************/
23
24#ifndef HTML_MASK_HPP
25#define HTML_MASK_HPP
26
27 // C system header files
28#include "my_config.h"
29extern "C"
30{
31
32}
33
34 // C++ system header files
35#include <memory>
36#include <dar/libdar.hpp>
37
38 // webdar headers
39#include "body_builder.hpp"
40
42
44{
45public:
46 html_mask() {};
47 html_mask(const html_mask & ref) = default;
48 html_mask(html_mask && ref) noexcept = default;
49 html_mask & operator = (const html_mask & ref) = default;
50 html_mask & operator = (html_mask && ref) noexcept = default;
51 ~html_mask() = default;
52
54 virtual std::unique_ptr<libdar::mask> get_mask() const = 0;
55
57
61 virtual bool is_relative() const = 0;
62
63};
64
65#endif
class html_mask defines the interface of all masks
Definition: html_mask.hpp:44
virtual bool is_relative() const =0
whether mask is an absolute mask (when it concerns paths filtering)
virtual std::unique_ptr< libdar::mask > get_mask() const =0
obtain the mask for libdar