terminateur.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 TERMINATEUR_HPP
#define TERMINATEUR_HPP
#include "../my_config.h"
#include "infinint.hpp"
#include "generic_file.hpp"
#include "archive_version.hpp"
namespace libdar
{
class terminateur
{
public :
terminateur() = default;
terminateur(const terminateur & ref) = default;
terminateur(terminateur && ref) noexcept = default;
terminateur & operator = (const terminateur & ref) = default;
terminateur & operator = (terminateur && ref) noexcept = default;
~terminateur() = default;
void set_catalogue_start(infinint xpos) { pos = xpos; };
void dump(generic_file &f);
void read_catalogue(generic_file &f, bool with_elastic, const archive_version & reading_ver, const infinint & where_from = 0);
infinint get_catalogue_start() const { return pos; };
infinint get_terminateur_start() const { return t_start; };
private :
infinint pos;
infinint t_start;
};
} // end of namespace
#endif
archive_version.hpp
class archive_version that rules which archive format to follow
libdar::archive_version
class archive_version manages the version of the archive format
Definition: archive_version.hpp:47
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition: generic_file.hpp:77
libdar::infinint
the arbitrary large positive integer class
Definition: real_infinint.hpp:62
libdar::terminateur
terminateur class indicates the location of the beginning of the catalogue
Definition: terminateur.hpp:47
generic_file.hpp
class generic_file is defined here as well as class fichier
infinint.hpp
switch module to limitint (32 ou 64 bits integers) or infinint
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47