29 #include "../my_config.h"
47 data_preserve_mark_already_saved,
48 data_overwrite_mark_already_saved,
62 EA_preserve_mark_already_saved,
63 EA_overwrite_mark_already_saved,
152 static const inode *get_inode(
const nomme * arg);
172 const testing & operator = (
const testing & ref) { free(); copy_from(ref);
if(!check())
throw Ememory(
"testing::testing(const testing &)"); };
179 if(x_input->
evaluate(first, second))
180 x_go_true->
get_action(first, second, data, ea);
182 x_go_false->
get_action(first, second, data, ea);
193 void copy_from(
const testing & ref);
208 const crit_chain & operator = (
const crit_chain & ref) { destroy(); copy_from(ref);
return *
this; };
212 void clear() { destroy(); };
220 std::vector<crit_action *> sequence;
239 bool evaluate(
const nomme &first,
const nomme &second)
const {
return dynamic_cast<const inode *
>(&first) != NULL || dynamic_cast<const mirage *>(&first) != NULL; };
278 bool evaluate(
const nomme &first,
const nomme &second)
const
280 const mirage * tmp =
dynamic_cast<const mirage *
>(&first);
375 const inode *tmp =
dynamic_cast<const inode *
>(&first);
376 return tmp != NULL && tmp->ea_get_saved_status() != inode::ea_none && tmp->ea_get_saved_status() != inode::ea_removed;
478 const crit_not & operator = (
const crit_not & ref) { destroy(); copy_from(ref);
return *
this; };
488 void copy_from(
const crit_not & ref);
489 void destroy() {
if(x_crit != NULL) {
delete x_crit; x_crit = NULL; } };
512 std::vector<criterium *> operand;
515 void copy_from(
const crit_and & ref);
519 class crit_or :
public crit_and
522 crit_or() { clear(); };
524 bool evaluate(
const nomme & first,
const nomme & second)
const;
525 criterium *clone()
const {
return new (std::nothrow) crit_or(*
this); };
529 class crit_invert :
public crit_not
532 crit_invert(
const criterium & crit) : crit_not(crit) {};
534 bool evaluate(
const nomme & first,
const nomme & second)
const {
return x_crit->
evaluate(second, first); };
535 criterium *clone()
const {
return new (std::nothrow) crit_invert(*
this); };
563 extern void crit_show_entry_info(user_interaction & dialog,
const std::string & full_name,
const entree *already_here,
const entree *dolly);