32 #include "../my_config.h"
48 data_preserve_mark_already_saved,
49 data_overwrite_mark_already_saved,
63 EA_preserve_mark_already_saved,
64 EA_overwrite_mark_already_saved,
153 static const inode *get_inode(
const nomme * arg);
173 const testing & operator = (
const testing & ref) { free(); copy_from(ref);
if(!check())
throw Ememory(
"testing::testing(const testing &)"); };
180 if(x_input->
evaluate(first, second))
181 x_go_true->
get_action(first, second, data, ea);
183 x_go_false->
get_action(first, second, data, ea);
194 void copy_from(
const testing & ref);
209 const crit_chain & operator = (
const crit_chain & ref) { destroy(); copy_from(ref);
return *
this; };
213 void clear() { destroy(); };
221 std::vector<crit_action *> sequence;
240 bool evaluate(
const nomme &first,
const nomme &second)
const {
return dynamic_cast<const inode *
>(&first) != NULL || dynamic_cast<const mirage *>(&first) != NULL; };
279 bool evaluate(
const nomme &first,
const nomme &second)
const
281 const mirage * tmp =
dynamic_cast<const mirage *
>(&first);
376 const inode *tmp =
dynamic_cast<const inode *
>(&first);
377 return tmp != NULL && tmp->ea_get_saved_status() != inode::ea_none && tmp->ea_get_saved_status() != inode::ea_removed;
479 const crit_not & operator = (
const crit_not & ref) { destroy(); copy_from(ref);
return *
this; };
489 void copy_from(
const crit_not & ref);
490 void destroy() {
if(x_crit != NULL) {
delete x_crit; x_crit = NULL; } };
513 std::vector<criterium *> operand;
516 void copy_from(
const crit_and & ref);
520 class crit_or :
public crit_and
523 crit_or() { clear(); };
525 bool evaluate(
const nomme & first,
const nomme & second)
const;
526 criterium *clone()
const {
return new crit_or(*
this); };
530 class crit_invert :
public crit_not
533 crit_invert(
const criterium & crit) : crit_not(crit) {};
535 bool evaluate(
const nomme & first,
const nomme & second)
const {
return x_crit->
evaluate(second, first); };
536 criterium *clone()
const {
return new crit_invert(*
this); };
564 extern void crit_show_entry_info(user_interaction & dialog,
const std::string & full_name,
const entree *already_here,
const entree *dolly);