aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/accounts_dep_key.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-22 15:06:27 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-22 14:50:42 +0000
commit79d96501ffb6b3bcbf2dfd47bc4085170d7ae38f (patch)
treeeb771d1fd1eca633d969f7883b68ea2722f7f682 /paludis/repositories/accounts/accounts_dep_key.hh
parentfd995d32cba3a621f1ae3b2f857ec083a2047f15 (diff)
downloadpaludis-79d96501ffb6b3bcbf2dfd47bc4085170d7ae38f.tar.gz
paludis-79d96501ffb6b3bcbf2dfd47bc4085170d7ae38f.tar.xz
Make users dep upon groups
Diffstat (limited to 'paludis/repositories/accounts/accounts_dep_key.hh')
-rw-r--r--paludis/repositories/accounts/accounts_dep_key.hh56
1 files changed, 56 insertions, 0 deletions
diff --git a/paludis/repositories/accounts/accounts_dep_key.hh b/paludis/repositories/accounts/accounts_dep_key.hh
new file mode 100644
index 000000000..a52af75fa
--- /dev/null
+++ b/paludis/repositories/accounts/accounts_dep_key.hh
@@ -0,0 +1,56 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 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
+ * 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_ACCOUNTS_ACCOUNTS_DEP_KEY_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_ACCOUNTS_ACCOUNTS_DEP_KEY_HH 1
+
+#include <paludis/metadata_key.hh>
+#include <paludis/util/private_implementation_pattern.hh>
+
+namespace paludis
+{
+ namespace accounts_repository
+ {
+ class AccountsDepKey :
+ public MetadataSpecTreeKey<DependencySpecTree>,
+ private PrivateImplementationPattern<AccountsDepKey>
+ {
+ public:
+ AccountsDepKey(const Environment * const e,
+ const std::tr1::shared_ptr<const Set<std::string> > &);
+ ~AccountsDepKey();
+
+ virtual const std::string raw_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual const std::string human_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual MetadataKeyType type() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual const std::tr1::shared_ptr<const DependencySpecTree> value() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual std::string pretty_print(const DependencySpecTree::ItemFormatter &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual std::string pretty_print_flat(const DependencySpecTree::ItemFormatter &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual const std::tr1::shared_ptr<const DependencyLabelSequence> initial_labels() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
+ }
+}
+
+#endif