database_archives.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2023 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 DATABASE_ARCHIVE_HPP
#define DATABASE_ARCHIVE_HPP
#include "../my_config.h"
#include <deque>
#include <string>
namespace libdar
{
class database_archives
{
public:
database_archives() = default;
database_archives(const database_archives & ref) = default;
database_archives(database_archives && ref) noexcept = default;
database_archives & operator = (const database_archives & ref) = default;
database_archives & operator = (database_archives && ref) noexcept = default;
~database_archives() = default;
void set_path(const std::string & val) { chemin = val; };
void set_basename(const std::string & val) { base = val; };
const std::string & get_path() const { return chemin; };
const std::string & get_basename() const { return base; };
private:
std::string chemin;
std::string base;
};
using database_archives_list = std::deque<database_archives>;
} // end of namespace
#endif
libdar::database_archives
datastructure managing a member of the list of archives used by a database
Definition: database_archives.hpp:49
libdar::database_archives::get_basename
const std::string & get_basename() const
this provides the basename of the archive
Definition: database_archives.hpp:65
libdar::database_archives::get_path
const std::string & get_path() const
this provides the path where is located this archive
Definition: database_archives.hpp:62
libdar::database_archives_list
std::deque< database_archives > database_archives_list
list of archives found in a database
Definition: database_archives.hpp:75
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47