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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to