Disk ARchive
2.8.5
Full featured and portable backup and archiving tool
Toggle main menu visibility
Loading...
Searching...
No Matches
src
libdar
mask_database.hpp
Go to the documentation of this file.
1
/*********************************************************************/
2
// dar - disk archive - a backup/restoration program
3
// Copyright (C) 2002-2026 Denis Corbin
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
//
19
// to contact the author, see the AUTHOR file
20
/*********************************************************************/
21
40
41
#ifndef MASK_DATABASE_HPP
42
#define MASK_DATABASE_HPP
43
44
#include "
../my_config.h
"
45
46
extern
"C"
47
{
48
}
// end extern "C"
49
50
51
#include "
mask.hpp
"
52
#include "
data_dir.hpp
"
53
#include "
datetime.hpp
"
54
#include "
restore_tree.hpp
"
55
56
58
60
63
64
namespace
libdar
65
{
66
67
class
mask_database:
public
mask
68
{
69
public
:
71
79
mask_database(
const
data_dir* racine,
80
const
path & fs_root,
81
const
datetime & ignore_older_than_that);
82
mask_database(
const
mask_database & ref) =
default
;
83
mask_database(mask_database && ref)
noexcept
=
default
;
84
mask_database & operator = (
const
mask_database & ref) =
default
;
85
mask_database & operator = (mask_database && ref)
noexcept
=
default
;
86
virtual
~mask_database() =
default
;
// base is not
87
89
92
void
compose_with(
const
mask & ref);
93
95
std::set<archive_num> get_locations()
const
;
96
98
void
set_focus(archive_num focus)
const
{ zoom = focus; };
99
100
102
virtual
bool
is_covered(
const
std::string & expression)
const
;
103
104
106
virtual
bool
is_covered(
const
path & expression)
const override
;
107
109
112
virtual
std::string dump(
const
std::string & prefix =
""
)
const override
{
return
"database mask"
; };
113
115
virtual
mask_database *
clone
()
const override
{
return
new
(std::nothrow) mask_database(*
this
); };
116
117
private
:
118
119
path fs_racine;
120
mutable
archive_num zoom;
121
std::shared_ptr<restore_tree> tree;
122
std::shared_ptr<mask> composition;
123
124
};
125
126
127
}
// end of namespace
128
129
#endif
libdar::mask
the generic class, parent of all masks
Definition
mask.hpp:62
libdar::mask::clone
virtual mask * clone() const =0
data_dir.hpp
classes used to store directory tree information in dar_manager databases
datetime.hpp
this file contains the definition of class datetime that stores unix times in a portable way
mask.hpp
here lies a collection of mask classes
my_config.h
include macro defined by the configure script and some specific additional ones
libdar
libdar namespace encapsulate all libdar symbols
Definition
archive.hpp:47
restore_tree.hpp
restore_tree class stores archive location needed to restore files
Generated on
for Disk ARchive by
1.17.0