aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_keywords_key.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-02 02:19:01 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-07 11:32:55 +0000
commit20cc98f89f0208619fa8845d784463f03a7c9234 (patch)
tree11872e31117810463923d4fccb0a955e061e9262 /paludis/repositories/e/e_keywords_key.hh
parentd02f6611a083735106d0f56d6d49f3a4743a5d07 (diff)
downloadpaludis-20cc98f89f0208619fa8845d784463f03a7c9234.tar.gz
paludis-20cc98f89f0208619fa8845d784463f03a7c9234.tar.xz
Share more common metadata
Diffstat (limited to 'paludis/repositories/e/e_keywords_key.hh')
-rw-r--r--paludis/repositories/e/e_keywords_key.hh51
1 files changed, 51 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_keywords_key.hh b/paludis/repositories/e/e_keywords_key.hh
new file mode 100644
index 000000000..f839f2eaa
--- /dev/null
+++ b/paludis/repositories/e/e_keywords_key.hh
@@ -0,0 +1,51 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 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
+ * 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_KEYWORDS_KEY_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_E_KEYWORDS_KEY_HH 1
+
+#include <paludis/metadata_key.hh>
+#include <paludis/util/singleton.hh>
+#include <paludis/repositories/e/eapi-fwd.hh>
+
+namespace paludis
+{
+ namespace erepository
+ {
+ class EKeywordsKeyStore :
+ private Pimp<EKeywordsKeyStore>,
+ public Singleton<EKeywordsKeyStore>
+ {
+ friend class Singleton<EKeywordsKeyStore>;
+
+ private:
+ EKeywordsKeyStore();
+ ~EKeywordsKeyStore();
+
+ public:
+ const std::shared_ptr<const MetadataCollectionKey<Set<KeywordName> > > fetch(
+ const std::shared_ptr<const EAPIMetadataVariable> &,
+ const std::string &,
+ const MetadataKeyType) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
+
+ }
+}
+
+#endif