aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choice_value.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-27 15:49:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-27 16:33:59 +0000
commit36b75ed1f5b48cb9ed9bc81024ca74e9641856eb (patch)
treef3b66e6900ec59a5f98ca8ec7178306a4dd37627 /paludis/repositories/e/e_choice_value.cc
parent3cac76bba19afa2bd70307024d6f6f6485526d29 (diff)
downloadpaludis-36b75ed1f5b48cb9ed9bc81024ca74e9641856eb.tar.gz
paludis-36b75ed1f5b48cb9ed9bc81024ca74e9641856eb.tar.xz
Export legal values for choice parameters
Fixes: ticket:1100
Diffstat (limited to 'paludis/repositories/e/e_choice_value.cc')
-rw-r--r--paludis/repositories/e/e_choice_value.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_choice_value.cc b/paludis/repositories/e/e_choice_value.cc
index 86157c616..fec3508e0 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, 2009 Ciaran McCreesh
+ * Copyright (c) 2008, 2009, 2011 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
@@ -26,7 +26,7 @@ using namespace paludis::erepository;
EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceName & v, const ChoiceNameWithPrefix & np, const QualifiedPackageName & p,
const std::shared_ptr<const UseDesc> & d,
bool b, bool def, bool l, bool x, const std::string & o,
- const std::string & pv) :
+ const std::string & pv, const std::shared_ptr<const PermittedChoiceValueParameterValues> & e) :
_prefix(r),
_unprefixed_name(v),
_name_with_prefix(np),
@@ -37,7 +37,8 @@ EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceNam
_locked(l),
_explicitly_listed(x),
_override_description(o),
- _parameter(pv)
+ _parameter(pv),
+ _permitted(e)
{
}
@@ -93,3 +94,9 @@ EChoiceValue::parameter() const
return _parameter;
}
+const std::shared_ptr<const PermittedChoiceValueParameterValues>
+EChoiceValue::permitted_parameter_values() const
+{
+ return _permitted;
+}
+