aboutsummaryrefslogtreecommitdiff
path: root/paludis/output_manager_factory.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 12:57:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 12:57:51 +0000
commitd7e855600a8cf683ce9dfa9ff934270bb558c5db (patch)
treecd040b1ce91f14644cff38c5dd0109cb430635a2 /paludis/output_manager_factory.cc
parent9ed5246bdfa77faa81539a34f42823036e891b87 (diff)
downloadpaludis-d7e855600a8cf683ce9dfa9ff934270bb558c5db.tar.gz
paludis-d7e855600a8cf683ce9dfa9ff934270bb558c5db.tar.xz
Add file 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 1c8c903f3..1afed72a1 100644
--- a/paludis/output_manager_factory.cc
+++ b/paludis/output_manager_factory.cc
@@ -34,6 +34,7 @@
#include <tr1/unordered_map>
#include <list>
+#include <paludis/file_output_manager.hh>
#include <paludis/standard_output_manager.hh>
#include <paludis/tee_output_manager.hh>
@@ -84,6 +85,7 @@ OutputManagerFactory::OutputManagerFactory() :
PrivateImplementationPattern<OutputManagerFactory>(new Implementation<OutputManagerFactory>)
{
/* we might want to make this plugin loadable at some point */
+ add_manager(FileOutputManager::factory_managers(), FileOutputManager::factory_create);
add_manager(StandardOutputManager::factory_managers(), StandardOutputManager::factory_create);
add_manager(TeeOutputManager::factory_managers(), TeeOutputManager::factory_create);
}
@@ -95,11 +97,12 @@ OutputManagerFactory::~OutputManagerFactory()
const std::tr1::shared_ptr<OutputManager>
OutputManagerFactory::create(
const KeyFunction & key_function,
- const CreateChildFunction & create_child_function
+ const CreateChildFunction & create_child_function,
+ const ReplaceVarsFunc & replace_vars_func
) const
{
Context context("When creating output manager:");
- return fetch(_imp->keys, key_function("handler")).create_function()(key_function, create_child_function);
+ return fetch(_imp->keys, key_function("handler")).create_function()(key_function, create_child_function, replace_vars_func);
}
OutputManagerFactory::ConstIterator