paludis Version 3.0.2
The one true package mangler
elike_package_dep_spec-fwd.hh
1/* vim: set sw=4 sts=4 et foldmethod=syntax : */
2
3/*
4 * Copyright (c) 2008, 2009, 2010, 2011 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_FWD_HH
21#define PALUDIS_GUARD_PALUDIS_ELIKE_PACKAGE_DEP_SPEC_FWD_HH 1
22
29#include <paludis/partially_made_package_dep_spec-fwd.hh>
30#include <functional>
31#include <iosfwd>
32
33namespace paludis
34{
35
36#include <paludis/elike_package_dep_spec-se.hh>
37
38 typedef Options<ELikePackageDepSpecOption> ELikePackageDepSpecOptions;
39
41
42 PackageDepSpec parse_generic_elike_package_dep_spec(const std::string & ss, const GenericELikePackageDepSpecParseFunctions & fns)
43 PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE;
44
45 PartiallyMadePackageDepSpec partial_parse_generic_elike_package_dep_spec(const std::string & ss,
47 PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE;
48
49 PackageDepSpec parse_elike_package_dep_spec(const std::string & ss, const ELikePackageDepSpecOptions &,
50 const VersionSpecOptions &)
51 PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE;
52
53 PartiallyMadePackageDepSpec partial_parse_elike_package_dep_spec(const std::string & ss,
54 const ELikePackageDepSpecOptions &,
55 const VersionSpecOptions &,
56 const std::shared_ptr<Set<std::string> > & maybe_accumulate_mentioned)
57 PALUDIS_ATTRIBUTE((warn_unused_result)) PALUDIS_VISIBLE;
58
59 void elike_check_sanity(const std::string & s) PALUDIS_VISIBLE;
60
61 bool elike_remove_trailing_square_bracket_if_exists(std::string & s, PartiallyMadePackageDepSpec & result,
62 const ELikePackageDepSpecOptions & options,
63 const VersionSpecOptions & version_options,
64 bool & had_bracket_version_requirements,
65 bool & had_use_requirements,
66 const std::shared_ptr<Set<std::string> > & maybe_accumulate_mentioned) PALUDIS_VISIBLE;
67
68 void elike_remove_trailing_repo_if_exists(std::string & s, PartiallyMadePackageDepSpec & result,
69 const ELikePackageDepSpecOptions & options) PALUDIS_VISIBLE;
70
71 void elike_remove_trailing_slot_if_exists(std::string & s, PartiallyMadePackageDepSpec & result,
72 const ELikePackageDepSpecOptions & options) PALUDIS_VISIBLE;
73
74 bool elike_has_version_operator(const std::string & s, const bool had_bracket_version_requirements,
75 const ELikePackageDepSpecOptions & options) PALUDIS_VISIBLE;
76
77 VersionOperator elike_get_remove_version_operator(std::string & s,
78 const ELikePackageDepSpecOptions & options) PALUDIS_VISIBLE;
79
80 VersionSpec elike_get_remove_trailing_version(std::string & s,
82
83 void elike_add_version_requirement(const VersionOperator & op, const VersionSpec & spec, PartiallyMadePackageDepSpec & result)
85
86 void elike_add_package_requirement(const std::string & s, PartiallyMadePackageDepSpec & result) PALUDIS_VISIBLE;
87}
88
89#endif
Definition options.hh:126
Definition dep_spec.hh:348
Definition partially_made_package_dep_spec.hh:38
Definition set.hh:51
Definition version_operator.hh:49
Definition version_spec.hh:109
Options< VersionSpecOption > VersionSpecOptions
Definition version_spec-fwd.hh:48
#define PALUDIS_ATTRIBUTE(x)
Definition attributes.hh:53
#define PALUDIS_VISIBLE
Definition attributes.hh:59
Definition about_metadata-fwd.hh:24
Definition elike_package_dep_spec.hh:43