aboutsummaryrefslogtreecommitdiff
path: root/paludis/standard_output_manager.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 00:21:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 00:21:58 +0000
commitb85660f6da793d06a304bf6d511c6b00344f20e2 (patch)
tree05aa85a383cec695a9771ae6b275a939083ab203 /paludis/standard_output_manager.cc
parentc465194c342edfd626a27d0ec1f460dba361dcf3 (diff)
downloadpaludis-b85660f6da793d06a304bf6d511c6b00344f20e2.tar.gz
paludis-b85660f6da793d06a304bf6d511c6b00344f20e2.tar.xz
Configurable output managers for PaludisEnvironment
Diffstat (limited to 'paludis/standard_output_manager.cc')
-rw-r--r--paludis/standard_output_manager.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/paludis/standard_output_manager.cc b/paludis/standard_output_manager.cc
index 2716ca482..e5460575a 100644
--- a/paludis/standard_output_manager.cc
+++ b/paludis/standard_output_manager.cc
@@ -18,6 +18,8 @@
*/
#include <paludis/standard_output_manager.hh>
+#include <paludis/util/set.hh>
+#include <paludis/util/make_shared_ptr.hh>
#include <iostream>
using namespace paludis;
@@ -52,3 +54,17 @@ StandardOutputManager::message(const MessageType, const std::string &)
{
}
+const std::tr1::shared_ptr<const Set<std::string> >
+StandardOutputManager::factory_managers()
+{
+ std::tr1::shared_ptr<Set<std::string> > result(new Set<std::string>);
+ result->insert("standard");
+ return result;
+}
+
+const std::tr1::shared_ptr<OutputManager>
+StandardOutputManager::factory_create(const std::tr1::function<std::string (const std::string &)> &)
+{
+ return make_shared_ptr(new StandardOutputManager);
+}
+