aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_params.hh
blob: 30112a3a7c3028db23a6cd9f9273b67d5cc98f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* vim: set sw=4 sts=4 et foldmethod=syntax : */

/*
 * Copyright (c) 2006, 2007, 2008, 2009, 2010 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_E_E_REPOSITORY_PARAMS_HH
#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_E_REPOSITORY_PARAMS_HH 1

#include <paludis/util/fs_path.hh>
#include <paludis/util/named_value.hh>
#include <memory>

/** \file
 * Declaration for the ERepositoryParams class.
 *
 * \ingroup grperepository
 */

namespace paludis
{
    class Environment;
    class PackageDatabase;
    class ERepository;

    typedef Sequence<std::shared_ptr<const ERepository> > ERepositorySequence;

    namespace n
    {
        typedef Name<struct append_repository_name_to_write_cache_name> append_repository_name_to_write_cache;
        typedef Name<struct auto_profiles_name> auto_profiles;
        typedef Name<struct binary_destination_name> binary_destination;
        typedef Name<struct binary_distdir_name> binary_distdir;
        typedef Name<struct binary_keywords_filter_name> binary_keywords_filter;
        typedef Name<struct binary_uri_prefix_name> binary_uri_prefix;
        typedef Name<struct builddir_name> builddir;
        typedef Name<struct cache_name> cache;
        typedef Name<struct distdir_name> distdir;
        typedef Name<struct eapi_when_unknown_name> eapi_when_unknown;
        typedef Name<struct eapi_when_unspecified_name> eapi_when_unspecified;
        typedef Name<struct eclassdirs_name> eclassdirs;
        typedef Name<struct entry_format_name> entry_format;
        typedef Name<struct environment_name> environment;
        typedef Name<struct ignore_deprecated_profiles_name> ignore_deprecated_profiles;
        typedef Name<struct layout_name> layout;
        typedef Name<struct location_name> location;
        typedef Name<struct master_repositories_name> master_repositories;
        typedef Name<struct names_cache_name> names_cache;
        typedef Name<struct newsdir_name> newsdir;
        typedef Name<struct profile_eapi_when_unspecified_name> profile_eapi_when_unspecified;
        typedef Name<struct profile_layout_name> profile_layout;
        typedef Name<struct profiles_name> profiles;
        typedef Name<struct profiles_explicitly_set_name> profiles_explicitly_set;
        typedef Name<struct securitydir_name> securitydir;
        typedef Name<struct setsdir_name> setsdir;
        typedef Name<struct sync_name> sync;
        typedef Name<struct sync_options_name> sync_options;
        typedef Name<struct use_manifest_name> use_manifest;
        typedef Name<struct write_bin_uri_prefix_name> write_bin_uri_prefix;
        typedef Name<struct write_cache_name> write_cache;
    }

    namespace erepository
    {
#include <paludis/repositories/e/e_repository_params-se.hh>

        struct ERepositoryParams
        {
            NamedValue<n::append_repository_name_to_write_cache, bool> append_repository_name_to_write_cache;
            NamedValue<n::auto_profiles, bool> auto_profiles;
            NamedValue<n::binary_destination, bool> binary_destination;
            NamedValue<n::binary_distdir, FSPath> binary_distdir;
            NamedValue<n::binary_keywords_filter, std::string> binary_keywords_filter;
            NamedValue<n::binary_uri_prefix, std::string> binary_uri_prefix;
            NamedValue<n::builddir, FSPath> builddir;
            NamedValue<n::cache, FSPath> cache;
            NamedValue<n::distdir, FSPath> distdir;
            NamedValue<n::eapi_when_unknown, std::string> eapi_when_unknown;
            NamedValue<n::eapi_when_unspecified, std::string> eapi_when_unspecified;
            NamedValue<n::eclassdirs, std::shared_ptr<const FSPathSequence> > eclassdirs;
            NamedValue<n::entry_format, std::string> entry_format;
            NamedValue<n::environment, Environment *> environment;
            NamedValue<n::ignore_deprecated_profiles, bool> ignore_deprecated_profiles;
            NamedValue<n::layout, std::string> layout;
            NamedValue<n::location, FSPath> location;
            NamedValue<n::master_repositories, std::shared_ptr<const ERepositorySequence> > master_repositories;
            NamedValue<n::names_cache, FSPath> names_cache;
            NamedValue<n::newsdir, FSPath> newsdir;
            NamedValue<n::profile_eapi_when_unspecified, std::string> profile_eapi_when_unspecified;
            NamedValue<n::profile_layout, std::string> profile_layout;
            NamedValue<n::profiles, std::shared_ptr<const FSPathSequence> > profiles;
            NamedValue<n::profiles_explicitly_set, bool> profiles_explicitly_set;
            NamedValue<n::securitydir, FSPath> securitydir;
            NamedValue<n::setsdir, FSPath> setsdir;
            NamedValue<n::sync, std::string> sync;
            NamedValue<n::sync_options, std::string> sync_options;
            NamedValue<n::use_manifest, erepository::UseManifest> use_manifest;
            NamedValue<n::write_bin_uri_prefix, std::string> write_bin_uri_prefix;
            NamedValue<n::write_cache, FSPath> write_cache;
        };
    }

}

#endif