[sword-devel] how to get the book name from VerseKey (KDevelop)
Troy A. Griffitts
scribe at crosswire.org
Fri Apr 28 16:18:40 MST 2006
const char *VerseKey::getBookName() const;
const char *VerseKey::getBookAbbrev() const;
Davey Erwin wrote:
> SWMgr manager(0, 0, true, 0, true);
> SWModule *target;
> ModMap::iterator it;
> it = manager.Modules.find("KJV");
> target = (*it).second;
> VerseKey mykey= "Gen 1:1";
> mykey.Persist(true);
> target->setKey(mykey);
> std::cout << mykey.Verse();//outputs verse number(1)
> std::cout << mykey.Chapter();//outputs chapter number (1)
> std::cout << mykey.Book();//outputs nothing (Iwant
> to output "Geneses")
> std::cout << target->StripText();//ouputs verse text
> std::cout << std::endl;
>
>
> how do I get Geneses out of versekey ?
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list