aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-05 10:50:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-05 10:50:58 +0000
commitd0508b5817568ca9bbe742bfd848467716edc9ab (patch)
tree927ebd3fa199d63ab5d68b38008f8997c6f253d5 /paludis/user_dep_spec.hh
parenta814a9530164c0214a952654a864e0ae516c1f08 (diff)
downloadpaludis-d0508b5817568ca9bbe742bfd848467716edc9ab.tar.gz
paludis-d0508b5817568ca9bbe742bfd848467716edc9ab.tar.xz
Add :*/:= slot support
Diffstat (limited to 'paludis/user_dep_spec.hh')
-rw-r--r--paludis/user_dep_spec.hh48
1 files changed, 48 insertions, 0 deletions
diff --git a/paludis/user_dep_spec.hh b/paludis/user_dep_spec.hh
new file mode 100644
index 000000000..c5bda6839
--- /dev/null
+++ b/paludis/user_dep_spec.hh
@@ -0,0 +1,48 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2005, 2006, 2007, 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_USER_DEP_SPEC_HH
+#define PALUDIS_GUARD_PALUDIS_USER_DEP_SPEC_HH 1
+
+#include <paludis/user_dep_spec-fwd.hh>
+#include <paludis/dep_spec.hh>
+#include <paludis/slot_requirement.hh>
+
+namespace paludis
+{
+ class PALUDIS_VISIBLE UserSlotExactRequirement :
+ public SlotExactRequirement
+ {
+ private:
+ const SlotName _s;
+
+ public:
+ ///\name Basic operations
+ ///\{
+
+ UserSlotExactRequirement(const SlotName &);
+
+ ///\}
+
+ virtual const SlotName slot() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual const std::string as_string() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ };
+}
+
+#endif