Loading...
Searching...
No Matches
cat_ignored.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_IGNORED_HPP
#define CAT_IGNORED_HPP
#include "../my_config.h"
extern "C"
{
} // end extern "C"
#include "cat_nomme.hpp"
namespace libdar
{
class cat_ignored : public cat_nomme
{
public :
cat_ignored(const std::string & name): cat_nomme(name, saved_status::saved) {};
cat_ignored(const smart_pointer<pile_descriptor> & pdesc, bool small) : cat_nomme(pdesc, small, saved_status::saved) { throw SRC_BUG; };
cat_ignored(const cat_ignored & ref) = default;
cat_ignored(cat_ignored && ref) noexcept = default;
cat_ignored & operator = (const cat_ignored & ref) = default;
cat_ignored & operator = (cat_ignored && ref) = default;
~cat_ignored() = default;
virtual bool operator == (const cat_entree & ref) const override;
virtual unsigned char signature() const override { return 'i'; };
virtual std::string get_description() const override { return "ignored entry"; };
virtual cat_entree *clone() const override { return new (std::nothrow) cat_ignored(*this); };
protected:
virtual void inherited_dump(const pile_descriptor & pdesc, bool small) const override { throw SRC_BUG; };
};
} // end of namespace
#endif
cat_nomme.hpp
base class of all objects contained in a catalogue and that can be named
libdar::cat_entree
the root class from all other inherite for any entry in the catalogue
Definition cat_entree.hpp:60
libdar::cat_ignored::operator==
virtual bool operator==(const cat_entree &ref) const override
returns true if the two object are the same
libdar::cat_ignored::inherited_dump
virtual void inherited_dump(const pile_descriptor &pdesc, bool small) const override
inherited class may overload this method but shall first call the parent's inherited_dump() in the ov...
Definition cat_ignored.hpp:63
libdar::cat_ignored::clone
virtual 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.hpp:60
libdar::cat_ignored::get_description
virtual std::string get_description() const override
inherited class designation
Definition cat_ignored.hpp:59
libdar::cat_ignored::signature
virtual unsigned char signature() const override
inherited class signature
Definition cat_ignored.hpp:58
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::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