Loading...
Searching...
No Matches
candidates.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2024 Denis Corbin
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// to contact the author, see the AUTHOR file
/*********************************************************************/
#ifndef CANDIDATES_HPP
#define CANDIDATES_HPP
#include "../my_config.h"
#include "database_aux.hpp"
#include "archive_num.hpp"
#include <deque>
#include <set>
namespace libdar
{
class candidates
{
public:
candidates(bool even_when_removed): ewr(even_when_removed) { clear(); };
void clear() { num.clear(); status.clear(); };
void add(archive_num val, db_etat st);
db_lookup get_status() const;
void set_the_set(std::set<archive_num> & archive) const;
private:
bool ewr;
std::deque<archive_num> num;
std::deque<db_etat> status;
};
} // end of namespace
#endif
archive_num.hpp
class storing the position of an archive inside a database
libdar::archive_num
class archive_num stores the position of an archive inside a dar_manager database
Definition archive_num.hpp:47
libdar::archive
the archive class realizes the most general operations on archives
Definition archive.hpp:65
libdar::candidates
helper class for data_tree
Definition candidates.hpp:47
libdar::candidates::ewr
bool ewr
even when removed, ignore removed status
Definition candidates.hpp:57
database_aux.hpp
set of datastructures used to interact with a database object
libdar::db_lookup
db_lookup
the available status of a lookup
Definition database_aux.hpp:41
libdar::db_etat
db_etat
the status for a founded entry
Definition database_aux.hpp:55
libdar
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47