aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_dep_spec_properties.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-22 19:21:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-22 19:21:39 +0000
commitb5cbb94798ae28dc1a8277927be4549703214fc4 (patch)
treed6c41dce6ef5aeab8ea75a938f3e8868e4bb0887 /paludis/package_dep_spec_properties.hh
parentd5aa27d7859537369060a1c042fdb478bfc3d2df (diff)
downloadpaludis-b5cbb94798ae28dc1a8277927be4549703214fc4.tar.gz
paludis-b5cbb94798ae28dc1a8277927be4549703214fc4.tar.xz
More type-safe way of checking PDS bits.
Diffstat (limited to 'paludis/package_dep_spec_properties.hh')
-rw-r--r--paludis/package_dep_spec_properties.hh68
1 files changed, 68 insertions, 0 deletions
diff --git a/paludis/package_dep_spec_properties.hh b/paludis/package_dep_spec_properties.hh
new file mode 100644
index 000000000..b5cabf57e
--- /dev/null
+++ b/paludis/package_dep_spec_properties.hh
@@ -0,0 +1,68 @@
+/* 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_PACKAGE_DEP_SPEC_PROPERTIES_HH
+#define PALUDIS_GUARD_PALUDIS_PACKAGE_DEP_SPEC_PROPERTIES_HH 1
+
+#include <paludis/package_dep_spec_properties-fwd.hh>
+#include <paludis/util/named_value.hh>
+#include <paludis/util/tribool.hh>
+
+namespace paludis
+{
+ namespace n
+ {
+ struct has_additional_requirements;
+ struct has_category_name_part;
+ struct has_from_repository;
+ struct has_in_repository;
+ struct has_installable_to_path;
+ struct has_installable_to_repository;
+ struct has_installed_at_path;
+ struct has_package;
+ struct has_package_name_part;
+ struct has_slot_requirement;
+ struct has_tag;
+ struct has_version_requirements;
+ }
+
+ /**
+ * Parameters for package_dep_spec_has_properties.
+ *
+ * \since 0.34.1
+ * \ingroup g_dep_spec
+ */
+ struct PackageDepSpecProperties
+ {
+ NamedValue<n::has_additional_requirements, Tribool> has_additional_requirements;
+ NamedValue<n::has_category_name_part, Tribool> has_category_name_part;
+ NamedValue<n::has_from_repository, Tribool> has_from_repository;
+ NamedValue<n::has_in_repository, Tribool> has_in_repository;
+ NamedValue<n::has_installable_to_path, Tribool> has_installable_to_path;
+ NamedValue<n::has_installable_to_repository, Tribool> has_installable_to_repository;
+ NamedValue<n::has_installed_at_path, Tribool> has_installed_at_path;
+ NamedValue<n::has_package, Tribool> has_package;
+ NamedValue<n::has_package_name_part, Tribool> has_package_name_part;
+ NamedValue<n::has_slot_requirement, Tribool> has_slot_requirement;
+ NamedValue<n::has_tag, Tribool> has_tag;
+ NamedValue<n::has_version_requirements, Tribool> has_version_requirements;
+ };
+}
+
+#endif