paludis Version 3.0.2
The one true package mangler
elike_package_dep_spec.hh
1/* vim: set sw=4 sts=4 et foldmethod=syntax : */
2
3/*
4 * Copyright (c) 2008, 2009, 2010 Ciaran McCreesh
5 *
6 * This file is part of the Paludis package manager. Paludis is free software;
7 * you can redistribute it and/or modify it under the terms of the GNU General
8 * Public License version 2, as published by the Free Software Foundation.
9 *
10 * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
11 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 * Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20#ifndef PALUDIS_GUARD_PALUDIS_ELIKE_PACKAGE_DEP_SPEC_HH
21#define PALUDIS_GUARD_PALUDIS_ELIKE_PACKAGE_DEP_SPEC_HH 1
22
23#include <paludis/elike_package_dep_spec-fwd.hh>
24#include <paludis/util/named_value.hh>
25
26namespace paludis
27{
28 namespace n
29 {
30 typedef Name<struct name_add_package_requirement> add_package_requirement;
31 typedef Name<struct name_add_version_requirement> add_version_requirement;
32 typedef Name<struct name_check_sanity> check_sanity;
33 typedef Name<struct name_get_remove_trailing_version> get_remove_trailing_version;
34 typedef Name<struct name_get_remove_version_operator> get_remove_version_operator;
35 typedef Name<struct name_has_version_operator> has_version_operator;
36 typedef Name<struct name_options_for_partially_made_package_dep_spec> options_for_partially_made_package_dep_spec;
37 typedef Name<struct name_remove_trailing_repo_if_exists> remove_trailing_repo_if_exists;
38 typedef Name<struct name_remove_trailing_slot_if_exists> remove_trailing_slot_if_exists;
39 typedef Name<struct name_remove_trailing_square_bracket_if_exists> remove_trailing_square_bracket_if_exists;
40 }
41
43 {
44 NamedValue<n::add_package_requirement, std::function<void (const std::string &, PartiallyMadePackageDepSpec &)> > add_package_requirement;
45 NamedValue<n::add_version_requirement, std::function<void (const VersionOperator &, const VersionSpec &, PartiallyMadePackageDepSpec &)> > add_version_requirement;
46 NamedValue<n::check_sanity, std::function<void (const std::string &)> > check_sanity;
47 NamedValue<n::get_remove_trailing_version, std::function<VersionSpec (std::string &)> > get_remove_trailing_version;
48 NamedValue<n::get_remove_version_operator, std::function<VersionOperator (std::string &)> > get_remove_version_operator;
49 NamedValue<n::has_version_operator, std::function<bool (const std::string &)> > has_version_operator;
50 NamedValue<n::options_for_partially_made_package_dep_spec, std::function<const PartiallyMadePackageDepSpecOptions ()> > options_for_partially_made_package_dep_spec;
51 NamedValue<n::remove_trailing_repo_if_exists, std::function<void (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_repo_if_exists;
52 NamedValue<n::remove_trailing_slot_if_exists, std::function<void (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_slot_if_exists;
53 NamedValue<n::remove_trailing_square_bracket_if_exists, std::function<bool (std::string &, PartiallyMadePackageDepSpec &)> > remove_trailing_square_bracket_if_exists;
54 };
55}
56
57#endif
Definition named_value.hh:51
Definition partially_made_package_dep_spec.hh:38
Definition version_operator.hh:49
VersionOperator(const VersionOperatorValue v)
Definition version_operator.hh:64
Definition version_spec.hh:109
VersionSpec(const std::string &text, const VersionSpecOptions &options)
Options< PartiallyMadePackageDepSpecOption > PartiallyMadePackageDepSpecOptions
Definition partially_made_package_dep_spec-fwd.hh:37
Definition about_metadata-fwd.hh:24
Definition elike_package_dep_spec.hh:43