paludis Version 3.0.2
The one true package mangler
paludis::FSMerger Class Referenceabstract

#include <fs_merger.hh>

Inheritance diagram for paludis::FSMerger:

Public Member Functions

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

Protected Member Functions

Hook extend_hook (const Hook &) override
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 &)
virtual void on_begin_merge ()
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 &)
 FSMerger (const FSMerger &)=delete
FSMerger & operator= (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

void on_file_main (bool is_check, const FSPath &src, const FSPath &dst) override
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
void on_enter_dir (bool is_check, const FSPath) override
void on_dir_main (bool is_check, const FSPath &src, const FSPath &dst) override
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
void on_sym_main (bool is_check, const FSPath &src, const FSPath &dst) override
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)
void prepare_install_under () override
FSPath canonicalise_root_path (const FSPath &f) override
void do_dir_recursive (bool is_check, const FSPath &, const FSPath &) override

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

◆ canonicalise_root_path()

FSPath paludis::FSMerger::canonicalise_root_path ( const FSPath & f)
overrideprotectedvirtual

Implements paludis::Merger.

◆ do_dir_recursive()

void paludis::FSMerger::do_dir_recursive ( bool is_check,
const FSPath & ,
const FSPath &  )
overrideprotectedvirtual

Handle a directory, recursively.

Reimplemented from paludis::Merger.

◆ extend_hook()

Hook paludis::FSMerger::extend_hook ( const Hook & )
overrideprotectedvirtual

Allows subclasses to extend hook calls.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.

References PALUDIS_ATTRIBUTE.

◆ merge()

void paludis::FSMerger::merge ( )
overridevirtual

Perform the merge.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.

◆ on_dir_main()

void paludis::FSMerger::on_dir_main ( bool is_check,
const FSPath & src,
const FSPath & dst )
overrideprotectedvirtual

Implements paludis::Merger.

◆ on_enter_dir()

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

Allows subclasses to perform behaviour when entering a directory.

Reimplemented from paludis::Merger.

Reimplemented in paludis::NDBAMMerger.

References PALUDIS_ATTRIBUTE.

◆ on_file_main()

void paludis::FSMerger::on_file_main ( bool is_check,
const FSPath & src,
const FSPath & dst )
overrideprotectedvirtual

Implements paludis::Merger.

◆ on_sym_main()

void paludis::FSMerger::on_sym_main ( bool is_check,
const FSPath & src,
const FSPath & dst )
overrideprotectedvirtual

Implements paludis::Merger.

◆ prepare_install_under()

void paludis::FSMerger::prepare_install_under ( )
overrideprotectedvirtual

Implements paludis::Merger.


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