aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choice_value.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 15:36:38 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 02:49:19 +0100
commit7d26dfa099626ddc354f1793b071f3b5c12b8923 (patch)
tree788f1736bbfc268e771673d3a731ebec6256ab42 /paludis/repositories/e/e_choice_value.cc
parentb27f5bc69db94543a9018b5150222ffab7f659e6 (diff)
downloadpaludis-7d26dfa099626ddc354f1793b071f3b5c12b8923.tar.gz
paludis-7d26dfa099626ddc354f1793b071f3b5c12b8923.tar.xz
Add parameterised choice values.
Diffstat (limited to 'paludis/repositories/e/e_choice_value.cc')
-rw-r--r--paludis/repositories/e/e_choice_value.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_choice_value.cc b/paludis/repositories/e/e_choice_value.cc
index 3639c3639..736e2937a 100644
--- a/paludis/repositories/e/e_choice_value.cc
+++ b/paludis/repositories/e/e_choice_value.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2009 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -25,7 +25,8 @@ using namespace paludis::erepository;
EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceName & v, const ChoiceNameWithPrefix & np, const QualifiedPackageName & p,
const std::tr1::shared_ptr<const UseDesc> & d,
- bool b, bool def, bool l, bool x, const std::string & o) :
+ bool b, bool def, bool l, bool x, const std::string & o,
+ const std::string & pv) :
_prefix(r),
_unprefixed_name(v),
_name_with_prefix(np),
@@ -35,7 +36,8 @@ EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceNam
_enabled_by_default(def),
_locked(l),
_explicitly_listed(x),
- _override_description(o)
+ _override_description(o),
+ _parameter(pv)
{
}
@@ -85,3 +87,9 @@ EChoiceValue::explicitly_listed() const
return _explicitly_listed;
}
+const std::string
+EChoiceValue::parameter() const
+{
+ return _parameter;
+}
+