[sword-devel] First patch Re: Bibtex for modules
Peter von Kaehne
refdoc at gmx.net
Sat May 14 15:42:28 MST 2011
On 14/05/11 21:45, Peter von Kaehne wrote:
> Guys,
>
> I have created a first patch for a method getBibliography
And here is a test for it:
---------------------------
#include <swmgr.h>
#include <swtext.h>
#include <versekey.h>
#include <iostream>
#ifndef NO_SWORD_NAMESPACE
using namespace sword;
#endif
int main(int argc, char **argv) {
SWMgr mymgr;
ModMap::iterator it;
SWModule *module = mymgr.Modules["KJV"];
std::cout << module->getBibliography() << "\n";
return 0;
}
-----------------------
I added this in my ./tests directory as bibliography.cpp.
Peter
More information about the sword-devel
mailing list