Disk ARchive  2.4.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | List of all members
libdar::crit_action Class Referenceabstract

the global action for overwriting More...

#include <criterium.hpp>

Inherited by libdar::crit_chain, libdar::crit_constant_action, and libdar::testing.

Public Member Functions

virtual ~crit_action ()
 the destructor
 
virtual void get_action (const nomme &first, const nomme &second, over_action_data &data, over_action_ea &ea) const =0
 the action to take based on the files to compare More...
 
virtual crit_actionclone () const =0
 clone construction method More...
 

Detailed Description

the global action for overwriting

this class is a generic interface to handle what action to perform on both EA and Data based on two files to evaluate.

Definition at line 76 of file criterium.hpp.

Member Function Documentation

virtual crit_action* libdar::crit_action::clone ( ) const
pure virtual

clone construction method

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

Implemented in libdar::crit_chain, libdar::testing, and libdar::crit_constant_action.

virtual void libdar::crit_action::get_action ( const nomme first,
const nomme second,
over_action_data data,
over_action_ea ea 
) const
pure virtual

the action to take based on the files to compare

Parameters
[in]firstis the 'in place' inode
[in]secondis the 'to be added' inode
[out]datais the action to perform with file's data
[out]eais the action to perform with file's EA

Implemented in libdar::crit_chain, libdar::testing, and libdar::crit_constant_action.

Referenced by libdar::testing::get_action().


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