paludis  Version 2.6.0
Public Member Functions | Protected Member Functions | List of all members
paludis::FSMerger Class Referenceabstract

#include <fs_merger.hh>

+ Inheritance diagram for paludis::FSMerger:

Public Member Functions

virtual void merge ()
 
- Public Member Functions inherited from paludis::Merger
 Merger (const MergerParams &)
 
 Merger (const Merger &)=delete
 
Mergeroperator= (const Merger &)=delete
 
virtual bool check () PALUDIS_ATTRIBUTE((warn_unused_result))
 

Protected Member Functions

virtual Hook extend_hook (const Hook &)
 
virtual std::string make_arrows (const FSMergerStatusFlags &flags) const
 
virtual void display_merge (const EntryType &, const FSPath &, const FSMergerStatusFlags &, const std::string &="") const
 
- Protected Member Functions inherited from paludis::Merger
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 &)
 
void make_check_fail ()
 
virtual EntryType entry_type (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 &)
 

Basic operations

 FSMerger (const FSMergerParams &)
 
virtual ~FSMerger ()
 
 FSMerger (const FSMerger &)=delete
 
FSMergeroperator= (const FSMerger &)=delete
 

Track and record merges

void track_install_file (const FSPath &, const FSPath &, const std::string &, const FSMergerStatusFlags &)
 
void track_install_dir (const FSPath &, const FSPath &, const FSMergerStatusFlags &)
 
void track_install_under_dir (const FSPath &, const FSMergerStatusFlags &)
 
void track_install_sym (const FSPath &, const FSPath &, const FSMergerStatusFlags &)
 

Handle filesystem entry things

virtual void on_file_main (bool is_check, const FSPath &src, const FSPath &dst)
 
virtual void on_file_over_nothing (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file_over_file (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file_over_dir (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file_over_sym (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_file_over_misc (bool is_check, const FSPath &, const FSPath &)
 
virtual FSMergerStatusFlags install_file (const FSPath &, const FSPath &, const std::string &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual void unlink_file (FSPath)
 
virtual void record_install_file (const FSPath &, const FSPath &, const std::string &, const FSMergerStatusFlags &)=0
 
virtual void on_enter_dir (bool is_check, const FSPath)
 
virtual void on_dir_main (bool is_check, const FSPath &src, const FSPath &dst)
 
virtual void on_dir_over_nothing (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_dir_over_file (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_dir_over_dir (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_dir_over_sym (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_dir_over_misc (bool is_check, const FSPath &, const FSPath &)
 
virtual FSMergerStatusFlags install_dir (const FSPath &, const FSPath &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual void unlink_dir (FSPath)
 
virtual void record_install_dir (const FSPath &, const FSPath &, const FSMergerStatusFlags &)=0
 
virtual void record_install_under_dir (const FSPath &, const FSMergerStatusFlags &)=0
 
virtual void on_sym_main (bool is_check, const FSPath &src, const FSPath &dst)
 
virtual void on_sym_over_nothing (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_sym_over_file (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_sym_over_dir (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_sym_over_sym (bool is_check, const FSPath &, const FSPath &)
 
virtual void on_sym_over_misc (bool is_check, const FSPath &, const FSPath &)
 
virtual FSMergerStatusFlags install_sym (const FSPath &, const FSPath &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
virtual void unlink_sym (FSPath)
 
virtual void record_install_sym (const FSPath &, const FSPath &, const FSMergerStatusFlags &)=0
 
virtual void unlink_misc (FSPath)
 
virtual void prepare_install_under ()
 
virtual FSPath canonicalise_root_path (const FSPath &f)
 
virtual void do_dir_recursive (bool is_check, const FSPath &, const FSPath &)
 

Configuration protection

virtual bool config_protected (const FSPath &, const FSPath &)=0
 
virtual std::string make_config_protect_name (const FSPath &, const FSPath &)=0
 

Detailed Description

Handles merging an image to a live filesystem.

Since
0.51 called FSMerger instead of Merger

Member Function Documentation

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

Handle a directory, recursively.

Reimplemented from paludis::Merger.

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

Allows subclasses to extend hook calls.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.

virtual void paludis::FSMerger::merge ( )
virtual

Perform the merge.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.

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

Allows subclasses to perform behaviour when entering a directory.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.


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