aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/output_conf.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 16:38:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 16:38:20 +0000
commit234d67465e0aae7b1e2e34c8c520609c6bd80789 (patch)
tree1f90f2deefd40db6d5ec612d540676976deade61 /paludis/environments/paludis/output_conf.cc
parentdae574c8eeadfbb35a7d8369197fdde2ea61d017 (diff)
downloadpaludis-234d67465e0aae7b1e2e34c8c520609c6bd80789.tar.gz
paludis-234d67465e0aae7b1e2e34c8c520609c6bd80789.tar.xz
Make file output manager more useful
Diffstat (limited to 'paludis/environments/paludis/output_conf.cc')
-rw-r--r--paludis/environments/paludis/output_conf.cc50
1 files changed, 1 insertions, 49 deletions
diff --git a/paludis/environments/paludis/output_conf.cc b/paludis/environments/paludis/output_conf.cc
index 4ba7ae9..feee537 100644
--- a/paludis/environments/paludis/output_conf.cc
+++ b/paludis/environments/paludis/output_conf.cc
@@ -21,6 +21,7 @@
#include <paludis/environments/paludis/bashable_conf.hh>
#include <paludis/environments/paludis/paludis_config.hh>
#include <paludis/environments/paludis/paludis_environment.hh>
+#include <paludis/environments/paludis/action_to_string.hh>
#include <paludis/util/log.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
#include <paludis/util/tokeniser.hh>
@@ -113,55 +114,6 @@ namespace
throw PaludisConfigError("Unknown rule '" + k + "'");
}
- struct ActionToString
- {
- std::string visit(const InstallAction &) const
- {
- return "install";
- }
-
- std::string visit(const PretendFetchAction &) const
- {
- return "pretend-fetch";
- }
-
- std::string visit(const UninstallAction &) const
- {
- return "uninstall";
- }
-
- std::string visit(const FetchAction &) const
- {
- return "fetch";
- }
-
- std::string visit(const PretendAction &) const
- {
- return "pretend";
- }
-
- std::string visit(const InfoAction &) const
- {
- return "info";
- }
-
- std::string visit(const ConfigAction &) const
- {
- return "config";
- }
-
- std::string visit(const InstalledAction &) const
- {
- return "installed";
- }
- };
-
- std::string action_to_string(const Action & a)
- {
- ActionToString v;
- return a.accept_returning<std::string>(v);
- }
-
struct MatchRuleVisitor
{
const Environment * const env;