コード例 #1
0
ファイル: rawgenbook.cpp プロジェクト: swordxx/swordxx
RawGenBook::RawGenBook(NormalizedPath const & path, const char *iname, const char *idesc, TextEncoding enc, SWTextDirection dir, SWTextMarkup mark, const char* ilang, const char *keyType)
    : SWGenBook(staticCreateKey(path, !std::strcmp("VerseKey", keyType)), iname, idesc, enc, dir, mark, ilang)
    , m_path(std::move(path))
{
    verseKey = !std::strcmp("VerseKey", keyType);

    if (verseKey) setType("Biblical Texts");

    bdtfd = FileMgr::getSystemFileMgr()->open((m_path + ".bdt").c_str(), FileMgr::RDWR, true);
}
コード例 #2
0
ファイル: swtext.cpp プロジェクト: kalemas/swordxx
SWKey * SWText::createKey() const { return staticCreateKey(versification); }
コード例 #3
0
ファイル: swtext.cpp プロジェクト: kalemas/swordxx
SWText::SWText(const char *imodname, const char *imoddesc, SWTextEncoding enc, SWTextDirection dir, SWTextMarkup mark, const char* ilang, const char *versification): SWModule(staticCreateKey(versification), imodname, imoddesc, "Biblical Texts", enc, dir, mark, ilang) {
    this->versification = 0;
    stdstr(&(this->versification), versification);
    tmpVK1 = (VerseKey *)createKey();
    tmpVK2 = (VerseKey *)createKey();
        tmpSecond = false;
    skipConsecutiveLinks = false;
}
コード例 #4
0
ファイル: rawgenbook.cpp プロジェクト: swordxx/swordxx
std::unique_ptr<SWKey> RawGenBook::createKey() const
{ return staticCreateKey(m_path.c_str(), verseKey); }