Loading...
Searching...
No Matches
cat_ignored_dir.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2025 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_IGNORED_DIR_HPP
#define CAT_IGNORED_DIR_HPP
#include "../my_config.h"
extern "C"
{
} // end extern "C"
#include "cat_inode.hpp"
#include "cat_directory.hpp"
namespace libdar
{
class cat_ignored_dir : public cat_inode
{
public:
cat_ignored_dir(const cat_directory &target) : cat_inode(target) {};
cat_ignored_dir(const std::shared_ptr<user_interaction> & dialog,
const smart_pointer<pile_descriptor> & pdesc,
const archive_version & reading_ver,
bool small) : cat_inode(dialog, pdesc, reading_ver, saved_status::not_saved, small) { throw SRC_BUG; };
cat_ignored_dir(const cat_ignored_dir & ref) = default;
cat_ignored_dir(cat_ignored_dir && ref) noexcept = default;
cat_ignored_dir & operator = (const cat_ignored_dir & ref) = default;
cat_ignored_dir & operator = (cat_ignored_dir && ref) = default;
~cat_ignored_dir() = default;
bool operator == (const cat_entree & ref) const override;
virtual unsigned char signature() const override { return 'j'; };
virtual std::string get_description() const override { return "ignored directory"; };
cat_entree *clone() const override { return new (std::nothrow) cat_ignored_dir(*this); };
protected:
virtual void inherited_dump(const pile_descriptor & pdesc, bool small) const override; // behaves like an empty cat_directory
};
} // end of namespace
#endif
cat_directory.hpp
class used to organize objects in tree in catalogue as like directories in a filesystem
cat_inode.hpp
base object for all inode types, managed EA and FSA, dates, permissions, ownership,...
libdar::archive_version
class archive_version manages the version of the archive format
Definition archive_version.hpp:47
libdar::cat_directory
the cat_directory inode class
Definition cat_directory.hpp:52
libdar::cat_entree
the root class from all other inherite for any entry in the catalogue
Definition cat_entree.hpp:60
libdar::cat_ignored_dir::get_description
virtual std::string get_description() const override
inherited class designation
Definition cat_ignored_dir.hpp:63
libdar::cat_ignored_dir::operator==
bool operator==(const cat_entree &ref) const override
returns true if the two object are the same
libdar::cat_ignored_dir::clone
cat_entree * clone() const override
a way to copy the exact type of an object even if pointed to by a parent class pointer
Definition cat_ignored_dir.hpp:64
libdar::cat_ignored_dir::signature
virtual unsigned char signature() const override
inherited class signature
Definition cat_ignored_dir.hpp:62
libdar::cat_ignored_dir::inherited_dump
virtual void inherited_dump(const pile_descriptor &pdesc, bool small) const override
true if object has been created by sequential reading of an archive
libdar::cat_inode::cat_inode
cat_inode(const infinint &xuid, const infinint &xgid, U_16 xperm, const datetime &last_access, const datetime &last_modif, const datetime &last_change, const std::string &xname, const infinint &device)
flag used to only consider certain fields when comparing/restoring inodes
libdar::smart_pointer
smart pointer class to be used to automagically manage multiple time pointed to address
Definition smart_pointer.hpp:79
libdar::saved_status::not_saved
@ not_saved
inode is not saved in the archive
Definition cat_status.hpp:48
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