GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/resources/modinfo.h Lines: 0 7 0.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2011-2017  The ManaPlus Developers
4
 *
5
 *  This file is part of The ManaPlus Client.
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
#ifndef RESOURCES_MODINFO_H
22
#define RESOURCES_MODINFO_H
23
24
#include <map>
25
#include <string>
26
27
#include "localconsts.h"
28
29
class ModInfo final
30
{
31
    public:
32
        ModInfo();
33
34
        A_DELETE_COPY(ModInfo)
35
36
        void setName(const std::string &name) noexcept2
37
        { mName = name; }
38
39
        const std::string &getName() const noexcept2 A_WARN_UNUSED
40
        { return mName; }
41
42
        void setDescription(const std::string &text) noexcept2
43
        { mDescription = text; }
44
45
        const std::string &getDescription() const noexcept2 A_WARN_UNUSED
46
        { return mDescription; }
47
48
        void setHelp(const std::string &text) noexcept2
49
        { mHelp = text; }
50
51
        const std::string &getHelp() const noexcept2 A_WARN_UNUSED
52
        { return mHelp; }
53
54
        void setLocalDir(const std::string &text)
55
        { mLocalDir = text; }
56
57
        const std::string &getLocalDir() const noexcept2 A_WARN_UNUSED
58
        { return mLocalDir; }
59
60
    private:
61
        std::string mName;
62
        std::string mDescription;
63
        std::string mHelp;
64
        std::string mLocalDir;
65
};
66
67
typedef std::map<std::string, ModInfo*> ModInfos;
68
typedef ModInfos::iterator ModInfoIterator;
69
typedef ModInfos::const_iterator ModInfoCIterator;
70
71
#endif  // RESOURCES_MODINFO_H