26#ifndef CAT_DETRUIT_HPP
27#define CAT_DETRUIT_HPP
48 class cat_detruit :
public cat_nomme
51 cat_detruit(
const std::string & name,
unsigned char firm,
const datetime & date) : cat_nomme(name,
saved_status::saved) , del_date(date) { signe = firm; };
53 cat_detruit(
const cat_nomme & ref): cat_nomme(ref), del_date(0) { signe = ref.
signature(); };
54 cat_detruit(
const cat_detruit & ref) =
default;
55 cat_detruit(cat_detruit && ref)
noexcept =
default;
56 cat_detruit & operator = (
const cat_detruit & ref) =
default;
57 cat_detruit & operator = (cat_detruit && ref) =
default;
58 ~cat_detruit() =
default;
62 unsigned char get_signature()
const {
return signe; };
63 void set_signature(
unsigned char x) { signe = x; };
65 const datetime & get_date()
const {
return del_date; };
66 void set_date(
const datetime & ref) { del_date = ref; };
69 virtual unsigned char signature()
const override {
return 'x'; };
75 virtual cat_entree *
clone()
const override {
return new (std::nothrow) cat_detruit(*
this); };
78 virtual void inherited_dump(
const pile_descriptor & pdesc,
bool small)
const override;
class archive_version that rules which archive format to follow
base class of all objects contained in a catalogue and that can be named
class archive_version manages the version of the archive format
virtual cat_entree * clone() const override
inherited from cat_entree
virtual bool operator==(const cat_entree &ref) const override
returns true if the two object are the same
virtual std::string get_description() const override
inherited from cat_entree
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...
virtual unsigned char signature() const override
inherited from cat_entree
the root class from all other inherite for any entry in the catalogue
virtual unsigned char signature() const =0
inherited class signature
smart pointer class to be used to automagically manage multiple time pointed to address
this file contains the definition of class datetime that stores unix times in a portable way
@ saved
inode is saved in the archive
include macro defined by the configure script and some specific additional ones
libdar namespace encapsulate all libdar symbols