paludis::Merger Class Reference
[ExceptionsRepository]

#include <merger.hh>

Inheritance diagram for paludis::Merger:

paludis::PrivateImplementationPattern< C_ > paludis::NDBAMMerger

List of all members.

Basic operations

 Merger (const MergerParams &)

Handle filesystem entry things

virtual void on_file (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_file_over_nothing (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_file_over_file (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_file_over_dir (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_file_over_sym (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_file_over_misc (bool is_check, const FSEntry &, const FSEntry &)
virtual MergeStatusFlags install_file (const FSEntry &, const FSEntry &, const std::string &) PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void unlink_file (FSEntry)
virtual void record_install_file (const FSEntry &, const FSEntry &, const std::string &, const MergeStatusFlags &)=0
virtual void on_dir (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_dir_over_nothing (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_dir_over_file (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_dir_over_dir (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_dir_over_sym (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_dir_over_misc (bool is_check, const FSEntry &, const FSEntry &)
virtual MergeStatusFlags install_dir (const FSEntry &, const FSEntry &) PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void unlink_dir (FSEntry)
virtual void record_install_dir (const FSEntry &, const FSEntry &, const MergeStatusFlags &)=0
virtual void record_install_under_dir (const FSEntry &, const MergeStatusFlags &)=0
virtual void on_sym (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_sym_over_nothing (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_sym_over_file (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_sym_over_dir (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_sym_over_sym (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_sym_over_misc (bool is_check, const FSEntry &, const FSEntry &)
virtual MergeStatusFlags install_sym (const FSEntry &, const FSEntry &) PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void unlink_sym (FSEntry)
virtual void record_install_sym (const FSEntry &, const FSEntry &, const MergeStatusFlags &)=0
virtual void unlink_misc (FSEntry)
virtual void on_misc (bool is_check, const FSEntry &, const FSEntry &)

Configuration protection

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

Basic operations

virtual ~Merger ()

Public Member Functions

virtual bool check () PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void merge ()

Protected Member Functions

void make_check_fail ()
virtual Hook extend_hook (const Hook &)
virtual EntryType entry_type (const FSEntry &)
virtual void do_dir_recursive (bool is_check, const FSEntry &, const FSEntry &)
virtual void on_enter_dir (bool is_check, const FSEntry)
virtual void on_leave_dir (bool is_check, const FSEntry)
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


Detailed Description

Handles merging an image to a live filesystem.

Member Function Documentation

void paludis::Merger::make_check_fail (  )  [protected]

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

virtual Hook paludis::Merger::extend_hook ( const Hook  )  [protected, virtual]

Allows subclasses to extend hook calls.

Reimplemented in paludis::NDBAMMerger.

virtual EntryType paludis::Merger::entry_type ( const FSEntry  )  [protected, virtual]

Determine the entry type of a filesystem entry.

virtual void paludis::Merger::do_dir_recursive ( bool  is_check,
const FSEntry ,
const FSEntry  
) [protected, virtual]

Handle a directory, recursively.

virtual void paludis::Merger::on_enter_dir ( bool  is_check,
const   FSEntry 
) [protected, virtual]

Allows subclasses to perform behaviour when entering a directory.

Reimplemented in paludis::NDBAMMerger.

virtual void paludis::Merger::on_leave_dir ( bool  is_check,
const   FSEntry 
) [protected, virtual]

Allows subclasses to perform behaviour when leaving a directory.

virtual void paludis::Merger::on_error ( bool  is_check,
const std::string &   
) [protected, pure virtual]

What to do when an error occurs.

Implemented in paludis::NDBAMMerger.

virtual void paludis::Merger::on_warn ( bool  is_check,
const std::string &   
) [protected, pure virtual]

What to do when a warning occurs.

Implemented in paludis::NDBAMMerger.

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

Check a merge, return whether no errors were encountered.

Reimplemented in paludis::NDBAMMerger.

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

Perform the merge.

Reimplemented in paludis::NDBAMMerger.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:10 2009 for paludis by  doxygen 1.5.4