diff options
author | 2009-02-12 01:26:20 +0000 | |
---|---|---|
committer | 2009-02-12 01:26:20 +0000 | |
commit | 5522cc551aaee176591b08546f368bb417c32f9e (patch) | |
tree | 975aa3b7325c820b51e35d1af4ee9dfc1bf7e2e4 /paludis/output_manager_factory.hh | |
parent | b85660f6da793d06a304bf6d511c6b00344f20e2 (diff) | |
download | paludis-5522cc551aaee176591b08546f368bb417c32f9e.tar.gz paludis-5522cc551aaee176591b08546f368bb417c32f9e.tar.xz |
Add tee output manager
Diffstat (limited to 'paludis/output_manager_factory.hh')
-rw-r--r-- | paludis/output_manager_factory.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/paludis/output_manager_factory.hh b/paludis/output_manager_factory.hh index d6b78d4c5..ca8e045fc 100644 --- a/paludis/output_manager_factory.hh +++ b/paludis/output_manager_factory.hh @@ -44,9 +44,12 @@ namespace paludis public: typedef std::tr1::function<std::string (const std::string &)> KeyFunction; + typedef std::tr1::function<const std::tr1::shared_ptr<OutputManager> ( + const std::string &)> CreateChildFunction; typedef std::tr1::function<const std::tr1::shared_ptr<OutputManager>( - const KeyFunction & + const KeyFunction &, + const CreateChildFunction & )> CreateFunction; /** @@ -56,9 +59,14 @@ namespace paludis * 'handler' key must return a value (e.g. 'standard'), which is used * to select the return type. Other key names are manager defined, * but typically include things like 'location' and 'keep_on_success'. + * + * \param create_child_function is used by, for example, + * TeeOutputManager to create child streams. Given a single string, + * this function returns the appropriate child. */ const std::tr1::shared_ptr<OutputManager> create( - const KeyFunction & key_function + const KeyFunction & key_function, + const CreateChildFunction & create_child_function ) const PALUDIS_ATTRIBUTE((warn_unused_result)); /** |