paludis  Version 2.6.0
Public Member Functions | Protected Member Functions | List of all members
paludis::Merger Class Referenceabstract
+ Inheritance diagram for paludis::Merger:

Public Member Functions

 Merger (const MergerParams &)
 
 Merger (const Merger &)=delete
 
Mergeroperator= (const Merger &)=delete
 
virtual bool check () PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual void merge ()
 

Protected Member Functions

bool symlink_needs_rewriting (const FSPath &)
 
void rewrite_symlink_as_needed (const FSPath &, const FSPath &)
 
void set_skipped_dir (const bool)
 
void do_ownership_fixes_recursive (const FSPath &)
 
bool fixed_ownership_for (const FSPath &)
 
virtual Hook extend_hook (const Hook &)
 
void make_check_fail ()
 
virtual void do_dir_recursive (bool is_check, const FSPath &, const FSPath &)
 
virtual EntryType entry_type (const FSPath &)
 
virtual void on_enter_dir (bool is_check, const FSPath)
 
virtual void on_leave_dir (bool is_check, const FSPath)
 
virtual void on_done_merge ()
 
virtual void on_error (bool is_check, const std::string &)=0
 
virtual void on_warn (bool is_check, const std::string &)=0
 
virtual void display_override (const std::string &) const =0
 
virtual void on_misc (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_dir (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_sym (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file_main (bool is_check, const FSPath &, const FSPath &)=0
 
virtual void on_dir_main (bool is_check, const FSPath &, const FSPath &)=0
 
virtual void on_sym_main (bool is_check, const FSPath &, const FSPath &)=0
 
virtual void prepare_install_under ()=0
 
virtual FSPath canonicalise_root_path (const FSPath &)=0
 

Member Function Documentation

virtual bool paludis::Merger::check ( )
virtual

Check a merge, return whether no errors were encountered.

Reimplemented in paludis::NDBAMMerger.

virtual void paludis::Merger::do_dir_recursive ( bool  is_check,
const FSPath ,
const FSPath  
)
protectedvirtual

Handle a directory, recursively.

Reimplemented in paludis::FSMerger.

virtual EntryType paludis::Merger::entry_type ( const FSPath )
protectedvirtual

Determine the entry type of a filesystem entry.

virtual Hook paludis::Merger::extend_hook ( const Hook )
protectedvirtual

Allows subclasses to extend hook calls.

Reimplemented in paludis::FSMerger, and paludis::NDBAMMerger.

void paludis::Merger::make_check_fail ( )
protected

When called, makes check()'s result a failure.

virtual void paludis::Merger::merge ( )
virtual

Perform the merge.

Reimplemented in paludis::FSMerger, paludis::NDBAMMerger, and paludis::TarMerger.

virtual void paludis::Merger::on_done_merge ( )
protectedvirtual

Allows subclasses to perform behaviour when everything has been merged, before any cleanup.

virtual void paludis::Merger::on_enter_dir ( bool  is_check,
const FSPath   
)
protectedvirtual

Allows subclasses to perform behaviour when entering a directory.

Reimplemented in paludis::FSMerger, and paludis::NDBAMMerger.

virtual void paludis::Merger::on_error ( bool  is_check,
const std::string &   
)
protectedpure virtual

What to do when an error occurs.

Implemented in paludis::NDBAMMerger.

virtual void paludis::Merger::on_leave_dir ( bool  is_check,
const FSPath   
)
protectedvirtual

Allows subclasses to perform behaviour when leaving a directory.

virtual void paludis::Merger::on_warn ( bool  is_check,
const std::string &   
)
protectedpure virtual

What to do when a warning occurs.

Implemented in paludis::NDBAMMerger.


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