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); }
SWKey * SWText::createKey() const { return staticCreateKey(versification); }
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; }
std::unique_ptr<SWKey> RawGenBook::createKey() const { return staticCreateKey(m_path.c_str(), verseKey); }