Loading...
Searching...
No Matches
cat_door.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2026 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 CAT_DOOR_HPP
#define CAT_DOOR_HPP
#include "../my_config.h"
extern "C"
{
} // end extern "C"
#include "cat_file.hpp"
namespace libdar
{
class cat_door : public cat_file
{
public:
cat_door(const infinint & xuid,
const infinint & xgid,
U_16 xperm,
const datetime & last_access,
const datetime & last_modif,
const datetime & last_change,
const std::string & src,
const path & che,
const infinint & fs_device) : cat_file(xuid, xgid, xperm, last_access, last_modif,
last_change, src, che, 0, fs_device, false) {};
cat_door(const std::shared_ptr<user_interaction> & dialog,
const smart_pointer<pile_descriptor> & pdesc,
const archive_version & reading_ver,
saved_status saved,
compression default_algo,
bool small) : cat_file(dialog, pdesc, reading_ver, saved, default_algo, small) {};
cat_door(const cat_door & ref) = default;
cat_door(cat_door && ref) = delete;
cat_door & operator = (const cat_door & ref) = delete;
cat_door & operator = (cat_door && ref) = delete;
~cat_door() = default;
virtual bool operator == (const cat_entree & ref) const override;
virtual unsigned char signature() const override { return 'o'; };
virtual std::string get_description() const override { return "door"; };
// inherited from class cat_file
virtual generic_file *get_data(get_data_mode mode,
std::shared_ptr<memory_file> delta_sig,
U_I signature_block_size,
std::shared_ptr<memory_file> delta_ref,
const crc**checksum) const override;
};
} // end of namespace
#endif
cat_file.hpp
class used to record plain files in a catalogue
libdar::archive_version
class archive_version manages the version of the archive format
Definition archive_version.hpp:47
libdar::cat_door::get_data
virtual generic_file * get_data(get_data_mode mode, std::shared_ptr< memory_file > delta_sig, U_I signature_block_size, std::shared_ptr< memory_file > delta_ref, const crc **checksum) const override
returns a newly allocated object in read_only mode
libdar::cat_door::get_description
virtual std::string get_description() const override
inherited class designation
Definition cat_door.hpp:74
libdar::cat_door::operator==
virtual bool operator==(const cat_entree &ref) const override
not used
libdar::cat_door::signature
virtual unsigned char signature() const override
inherited class signature
Definition cat_door.hpp:73
libdar::cat_entree
the root class from all other inherite for any entry in the catalogue
Definition cat_entree.hpp:60
libdar::cat_file::get_data_mode
get_data_mode
how to get data from archive
Definition cat_file.hpp:54
libdar::cat_file::delta_sig
cat_delta_signature * delta_sig
delta signature and associated CRC
Definition cat_file.hpp:282
libdar::crc
pure virtual class defining interface of a CRC object
Definition crc.hpp:47
libdar::datetime
stores time information
Definition datetime.hpp:59
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::path
the class path is here to manipulate paths in the Unix notation: using'/'
Definition path.hpp:51
libdar::smart_pointer
smart pointer class to be used to automagically manage multiple time pointed to address
Definition smart_pointer.hpp:79
libdar::compression
compression
the different compression algorithm available
Definition compression.hpp:46
libdar::saved_status
saved_status
data saved status for an entry
Definition cat_status.hpp:44
libdar::saved_status::saved
@ saved
inode is saved in the archive
Definition cat_status.hpp:45
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