aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choices_key.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-05 19:18:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-05 19:18:12 +0000
commit09d9c277c13a8fc4fb44a5addc02effb2d5c0855 (patch)
treea3efbb044e90c1104270f8664e48fde5364fa2f6 /paludis/repositories/e/e_choices_key.hh
parent934b88bc8a2841258adc6d425b7a94f5f7503824 (diff)
downloadpaludis-09d9c277c13a8fc4fb44a5addc02effb2d5c0855.tar.gz
paludis-09d9c277c13a8fc4fb44a5addc02effb2d5c0855.tar.xz
Split e choices key into its own files
Diffstat (limited to 'paludis/repositories/e/e_choices_key.hh')
-rw-r--r--paludis/repositories/e/e_choices_key.hh60
1 files changed, 60 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_choices_key.hh b/paludis/repositories/e/e_choices_key.hh
new file mode 100644
index 000000000..6d48372ab
--- /dev/null
+++ b/paludis/repositories/e/e_choices_key.hh
@@ -0,0 +1,60 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2008 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
+ * Public License version 2, as published by the Free Software Foundation.
+ *
+ * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_E_CHOICES_KEY_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_E_CHOICES_KEY_HH 1
+
+#include <paludis/metadata_key.hh>
+#include <paludis/choice-fwd.hh>
+#include <paludis/repositories/e/e_choice_value.hh>
+#include <paludis/util/map-fwd.hh>
+
+namespace paludis
+{
+ class ERepository;
+
+ namespace erepository
+ {
+ class ERepositoryID;
+
+ class EChoicesKey :
+ public MetadataValueKey<std::tr1::shared_ptr<const Choices> >,
+ private PrivateImplementationPattern<EChoicesKey>
+ {
+ private:
+ PrivateImplementationPattern<EChoicesKey>::ImpPtr & _imp;
+
+ public:
+ EChoicesKey(
+ const Environment * const,
+ const std::tr1::shared_ptr<const ERepositoryID> &,
+ const std::string &,
+ const std::string &,
+ const MetadataKeyType,
+ const std::tr1::shared_ptr<const ERepository> & maybe_profile,
+ const std::tr1::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > & maybe_descriptions);
+
+ ~EChoicesKey();
+
+ const std::tr1::shared_ptr<const Choices> value() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
+ }
+}
+
+#endif