aboutsummaryrefslogtreecommitdiff
path: root/paludis/output_manager_factory.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 01:26:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 01:26:20 +0000
commit5522cc551aaee176591b08546f368bb417c32f9e (patch)
tree975aa3b7325c820b51e35d1af4ee9dfc1bf7e2e4 /paludis/output_manager_factory.cc
parentb85660f6da793d06a304bf6d511c6b00344f20e2 (diff)
downloadpaludis-5522cc551aaee176591b08546f368bb417c32f9e.tar.gz
paludis-5522cc551aaee176591b08546f368bb417c32f9e.tar.xz
Add tee output manager
Diffstat (limited to 'paludis/output_manager_factory.cc')
-rw-r--r--paludis/output_manager_factory.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/output_manager_factory.cc b/paludis/output_manager_factory.cc
index b332cf159..1c8c903f3 100644
--- a/paludis/output_manager_factory.cc
+++ b/paludis/output_manager_factory.cc
@@ -35,6 +35,7 @@
#include <list>
#include <paludis/standard_output_manager.hh>
+#include <paludis/tee_output_manager.hh>
using namespace paludis;
@@ -84,6 +85,7 @@ OutputManagerFactory::OutputManagerFactory() :
{
/* we might want to make this plugin loadable at some point */
add_manager(StandardOutputManager::factory_managers(), StandardOutputManager::factory_create);
+ add_manager(TeeOutputManager::factory_managers(), TeeOutputManager::factory_create);
}
OutputManagerFactory::~OutputManagerFactory()
@@ -92,11 +94,12 @@ OutputManagerFactory::~OutputManagerFactory()
const std::tr1::shared_ptr<OutputManager>
OutputManagerFactory::create(
- const KeyFunction & key_function
+ const KeyFunction & key_function,
+ const CreateChildFunction & create_child_function
) const
{
Context context("When creating output manager:");
- return fetch(_imp->keys, key_function("handler")).create_function()(key_function);
+ return fetch(_imp->keys, key_function("handler")).create_function()(key_function, create_child_function);
}
OutputManagerFactory::ConstIterator