BibleTime
cswordcommentarymoduleinfo.cpp
Go to the documentation of this file.
1/*********
2*
3* In the name of the Father, and of the Son, and of the Holy Spirit.
4*
5* This file is part of BibleTime's source code, https://bibletime.info/
6*
7* Copyright 1999-2026 by the BibleTime developers.
8* The BibleTime source code is licensed under the GNU General Public License
9* version 2.0.
10*
11**********/
12
14
15#include <string_view>
16
17// Sword includes:
18#ifdef __GNUC__
19#pragma GCC diagnostic push
20#pragma GCC diagnostic ignored "-Wextra-semi"
21#pragma GCC diagnostic ignored "-Wsuggest-override"
22#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
23#endif
24#ifdef __clang__
25#pragma clang diagnostic push
26#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
27#endif
28#include <swmodule.h>
29#ifdef __clang__
30#pragma clang diagnostic pop
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic pop
34#endif
35
36
38 /*
39 A module is only writable if it's a RawFiles module with writable
40 returning true.
41 */
42 using namespace std::literals;
43 return swordModule().getConfigEntry("ModDrv") == "RawFiles"sv
44 && swordModule().isWritable();
45}
bool isWritable() const final override
sword::SWModule & swordModule() const