Disk ARchive 2.7.16
Full featured and portable backup and archiving tool
etage.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2024 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
25
26
27#ifndef ETAGE_HPP
28#define ETAGE_HPP
29
30#include "../my_config.h"
31#include <deque>
32#include <string>
33#include "datetime.hpp"
34#include "user_interaction.hpp"
35
36namespace libdar
37{
38
41
43
48
49 struct etage
50 {
51 etage() { fichier.clear(); last_mod = datetime(0); last_acc = datetime(0); }; // required to fake an empty dir when one is impossible to open
53 const char *dirname,
54 const datetime & x_last_acc,
55 const datetime & x_last_mod,
56 bool cache_directory_tagging,
57 bool furtive_read_mode);
58 etage(const etage & ref) = default;
59 etage(etage && ref) = default;
60 etage & operator = (const etage & ref) = default;
61 etage & operator = (etage && ref) noexcept = default;
62 ~etage() = default;
63
64 bool read(std::string & ref);
65
66 std::deque<std::string> fichier;
69 };
70
72
73} // end of namespace
74
75#endif
stores time information
Definition: datetime.hpp:59
This is a pure virtual class that is used by libdar when interaction with the user is required.
this file contains the definition of class datetime that stores unix times in a portable way
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47
the etage structure keep trace of directory contents
Definition: etage.hpp:50
datetime last_acc
the last_acc of the directory itself
Definition: etage.hpp:68
std::deque< std::string > fichier
holds the list of entry in the directory
Definition: etage.hpp:66
datetime last_mod
the last_lod of the directory itself
Definition: etage.hpp:67
defines the interaction interface between libdar and users.