aboutsummaryrefslogtreecommitdiff
path: root/paludis/metadata_key.cc
blob: e294ba95c93f04cad583c6fd277acfc715080bf9 (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
119
120
121
122
123
124
125
/* vim: set sw=4 sts=4 et foldmethod=syntax : */

/*
 * Copyright (c) 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
 */

#include <paludis/metadata_key.hh>
#include <paludis/util/pimp-impl.hh>
#include <paludis/util/exception.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/set.hh>
#include <paludis/util/sequence.hh>
#include <paludis/util/indirect_iterator-impl.hh>
#include <paludis/name.hh>
#include <functional>
#include <list>
#include <algorithm>

using namespace paludis;

#include <paludis/metadata_key-se.cc>

namespace paludis
{
    template <>
    struct Imp<MetadataKey>
    {
        const std::string raw_name;
        const std::string human_name;
        const MetadataKeyType type;

        Imp(const std::string & r, const std::string & h, const MetadataKeyType t) :
            raw_name(r),
            human_name(h),
            type(t)
        {
        }
    };
}

MetadataKey::~MetadataKey()
{
}

MetadataSectionKey::~MetadataSectionKey()
{
}

MetadataTimeKey::~MetadataTimeKey()
{
}

ExtraMetadataValueKeyMethods<long>::~ExtraMetadataValueKeyMethods()
{
}

ExtraMetadataValueKeyMethods<bool>::~ExtraMetadataValueKeyMethods()
{
}

ExtraMetadataValueKeyMethods<std::shared_ptr<const PackageID> >::~ExtraMetadataValueKeyMethods()
{
}

template <typename T_>
MetadataCollectionKey<T_>::~MetadataCollectionKey()
{
}

template <typename T_>
MetadataSpecTreeKey<T_>::~MetadataSpecTreeKey()
{
}

template <typename T_>
MetadataValueKey<T_>::~MetadataValueKey()
{
}

MetadataSpecTreeKey<FetchableURISpecTree>::~MetadataSpecTreeKey()
{
}

MetadataSpecTreeKey<DependencySpecTree>::~MetadataSpecTreeKey()
{
}

template class MetadataCollectionKey<KeywordNameSet>;
template class MetadataCollectionKey<Set<std::string> >;
template class MetadataCollectionKey<Sequence<std::string> >;
template class MetadataCollectionKey<PackageIDSequence>;
template class MetadataCollectionKey<FSPathSequence>;

template class MetadataSpecTreeKey<LicenseSpecTree>;
template class MetadataSpecTreeKey<ProvideSpecTree>;
template class MetadataSpecTreeKey<PlainTextSpecTree>;
#ifndef PALUDIS_NO_EXPLICIT_FULLY_SPECIALISED
template class MetadataSpecTreeKey<FetchableURISpecTree>;
template class MetadataSpecTreeKey<DependencySpecTree>;
#endif
template class MetadataSpecTreeKey<SimpleURISpecTree>;

template class MetadataValueKey<std::string>;
template class MetadataValueKey<long>;
template class MetadataValueKey<bool>;
template class MetadataValueKey<FSPath>;
template class MetadataValueKey<SlotName>;
template class MetadataValueKey<std::shared_ptr<const PackageID> >;
template class MetadataValueKey<std::shared_ptr<const Contents> >;
template class MetadataValueKey<std::shared_ptr<const RepositoryMaskInfo> >;
template class MetadataValueKey<std::shared_ptr<const Choices> >;