 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
29 #include "../my_config.h"
463 crit_not & operator = (
const crit_not & ref) { destroy(); copy_from(ref);
return *
this; };
464 crit_not & operator = (
crit_not && ref) noexcept { criterium::operator = (std::move(ref)); std::swap(x_crit, ref.x_crit);
return *
this; };
474 void copy_from(
const crit_not & ref);
475 void destroy() {
if(x_crit !=
nullptr) {
delete x_crit; x_crit =
nullptr; } };
486 crit_and & operator = (
const crit_and & ref) { detruit(); copy_from(ref);
return *
this; };
491 void clear() { detruit(); };
500 std::deque<criterium *> operand;
503 void copy_from(
const crit_and & ref);
507 class crit_or :
public crit_and
510 crit_or() { clear(); };
511 crit_or(
const crit_or & ref) =
default;
512 crit_or(crit_or && ref) =
default;
513 crit_or & operator = (
const crit_or & ref) =
default;
514 crit_or & operator = (crit_or && ref) noexcept =
default;
515 ~crit_or() =
default;
517 virtual bool evaluate(
const cat_nomme & first,
const cat_nomme & second)
const override;
518 virtual criterium *clone()
const override {
return new (std::nothrow) crit_or(*
this); };
522 class crit_invert :
public crit_not
525 crit_invert(
const criterium & crit) : crit_not(crit) {};
526 crit_invert(
const crit_invert & ref) =
default;
527 crit_invert(crit_invert && ref) noexcept =
default;
528 crit_invert & operator = (
const crit_invert & ref) =
default;
529 crit_invert & operator = (crit_invert && ref) noexcept =
default;
530 ~crit_invert() =
default;
532 virtual bool evaluate(
const cat_nomme & first,
const cat_nomme & second)
const override {
return x_crit->
evaluate(second, first); };
533 virtual criterium *clone()
const override {
return new (std::nothrow) crit_invert(*
this); };
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
returns true if the space used by EA of the first entry is greater or equal to the space used by the ...
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
returns true if the two entries are of the same type (plain-file/char dev/block dev/named pipe/symlin...
switch module to limitint (32 ou 64 bits integers) or infinint
the arbitrary large positive integer class
virtual criterium * clone() const override
clone construction method
If the in_place entry is not an inode its date is considered equal to zero. Comparison is done on mti...
if the entry is not an inode the result is also true
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
returns true if the first entry is a inode with several hard links (whatever is the second entry)
the base class for all entry that have a name
void gobe(crit_and &to_be_voided)
this call merges to the current call the arguments of another "crit_and", the given argument is clear...
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual criterium * clone() const override
clone construction method
returns true if the EA of the first entry is more recent or equal to the one of the second entry
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const =0
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual criterium * clone() const override
clone construction method
returns true if the first entry has more or even EA (in number not in size) than the second entry
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
return true if the entry is a dirty file (or hard linked dirty file)
the generic criterium class, parent of all criterium
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
contains all the excetion class thrown by libdar
returns true if the in place entry has its EA saved (not just marked as saved) in the archve of refer...
virtual criterium * clone() const =0
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
exception used when memory has been exhausted
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
returns true if the first entry is an inode (whatever is the second)
realises the AND operator
virtual criterium * clone() const override
clone construction method
return true if the entry is a sparse file (or hard linked sparse file)
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
realises the negation of the criterium given in argument to its constructor
returns true if the data of the first entry is more recent or of the same date of the one of the seco...
return true if the entry has delta signatur
returns true if the first entry is a cat_directory (whatever is the second)
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
returns true if the EA of the first entry is more recent or equal to the fixed date given in argument...
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
returns true if the data of the first entry is bigger or equal to the one of the second entry
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
virtual criterium * clone() const override
clone construction method
virtual bool evaluate(const cat_nomme &first, const cat_nomme &second) const override
criterum interface method
virtual criterium * clone() const override
clone construction method
returns true if the first entry is a plain file (whatever is the second)
libdar namespace encapsulate all libdar symbols