paludis Version 3.0.2
The one true package mangler
unformatted_pretty_printer.hh
1/* vim: set sw=4 sts=4 et foldmethod=syntax : */
2
3/*
4 * Copyright (c) 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_UNFORMATTED_PRETTY_PRINTER_HH
21#define PALUDIS_GUARD_PALUDIS_UNFORMATTED_PRETTY_PRINTER_HH 1
22
23#include <paludis/pretty_printer.hh>
24
25namespace paludis
26{
27 class PALUDIS_VISIBLE UnformattedPrettyPrinter :
28 public PrettyPrinter
29 {
30 public:
31 UnformattedPrettyPrinter();
32
33 const std::string indentify(const int) const override;
34 const std::string newline() const override;
35
36 const std::string prettify(const PackageDepSpec &) const override;
37 const std::string prettify(const BlockDepSpec &) const override;
38 const std::string prettify(const ConditionalDepSpec &) const override;
39 const std::string prettify(const NamedSetDepSpec &) const override;
40 const std::string prettify(const SimpleURIDepSpec &) const override;
41 const std::string prettify(const PlainTextDepSpec &) const override;
42 const std::string prettify(const LicenseDepSpec &) const override;
43 const std::string prettify(const FetchableURIDepSpec &) const override;
44 const std::string prettify(const URILabelsDepSpec &) const override;
45 const std::string prettify(const DependenciesLabelsDepSpec &) const override;
46 const std::string prettify(const PlainTextLabelDepSpec &) const override;
47
48 const std::string prettify(const std::shared_ptr<const PackageID> &) const override;
49
50 const std::string prettify(const bool) const override;
51
52 const std::string prettify(const long) const override;
53
54 const std::string prettify(const std::string &) const override;
55
56 const std::string prettify(const std::pair<const std::string, std::string> &) const override;
57
58 const std::string prettify(const FSPath &) const override;
59
60 const std::string prettify(const KeywordName &) const override;
61
62 const std::string prettify(const Maintainer &) const override;
63 };
64}
65
66#endif
Definition dep_spec.hh:613
Definition dep_spec.hh:204
Definition fs_path.hh:34
Definition dep_spec.hh:531
Definition dep_spec.hh:506
Definition dep_spec.hh:479
Definition dep_spec.hh:348
Definition dep_spec.hh:459
Definition dep_spec.hh:698
Definition dep_spec.hh:572
LabelsDepSpec< URILabel > URILabelsDepSpec
Definition dep_spec-fwd.hh:58
LabelsDepSpec< DependenciesLabel > DependenciesLabelsDepSpec
Definition dep_spec-fwd.hh:66
WrappedValue< KeywordNameTag > KeywordName
Definition name-fwd.hh:118
#define PALUDIS_VISIBLE
Definition attributes.hh:59
Definition about_metadata-fwd.hh:24
Definition maintainer.hh:44