Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | List of all members
libdar::crit_same_type Class Reference

returns true if the two entries are of the same type (plain-file/char dev/block dev/named pipe/symlink/directory/unix socket) More...

#include <criterium.hpp>

+ Inheritance diagram for libdar::crit_same_type:
+ Collaboration diagram for libdar::crit_same_type:

Public Member Functions

 crit_same_type (const crit_same_type &ref)=default
 
 crit_same_type (crit_same_type &&ref) noexcept=default
 
crit_same_typeoperator= (const crit_same_type &ref)=default
 
crit_same_typeoperator= (crit_same_type &&ref) noexcept=default
 
virtual bool evaluate (const cat_nomme &first, const cat_nomme &second) const override
 criterum interface method More...
 
virtual criteriumclone () const override
 clone construction method More...
 
- Public Member Functions inherited from libdar::criterium
 criterium (const criterium &ref)=default
 
 criterium (criterium &&ref) noexcept=default
 
criteriumoperator= (const criterium &ref)=default
 
criteriumoperator= (criterium &&ref) noexcept=default
 

Detailed Description

returns true if the two entries are of the same type (plain-file/char dev/block dev/named pipe/symlink/directory/unix socket)

two plain files are considered of same type even if one is hard linked while the other is not same thing whether one entry has EA while the other has not, they are still considered of the same type.

Definition at line 466 of file criterium.hpp.

Member Function Documentation

◆ clone()

virtual criterium* libdar::crit_same_type::clone ( ) const
inlineoverridevirtual

clone construction method

Returns
a new object of the same type,
Note
this method must be implemented in all the leaf classes of the class hierarchy rooted at the criterium class

Implements libdar::criterium.

Definition at line 477 of file criterium.hpp.

◆ evaluate()

virtual bool libdar::crit_same_type::evaluate ( const cat_nomme first,
const cat_nomme second 
) const
overridevirtual

criterum interface method

Parameters
[in]firstentry to compare with the following (this is the original or 'in place' entry)
[in]secondthe other entry to compare with the previous one (this is the new entry to add)
Returns
the result of the criterium evaluation (true or false)

Implements libdar::criterium.


The documentation for this class was generated from the following file: