24 #pragma warning( disable: 4251 )
33 #ifndef NO_SWORD_NAMESPACE
35 using sword::VerseKey;
38 using sword::SWModule;
39 using sword::SW_POSITION;
42 int main(
int argc,
char **argv) {
44 fprintf(stderr,
"usage: %s <Mod Name>\n", argv[0]);
50 ModMap::iterator it = mgr.
Modules.find(argv[1]);
52 fprintf(stderr,
"error: %s: couldn't find module: %s \n", argv[0], argv[1]);
61 vkey =
dynamic_cast<VerseKey *
>(key);
66 fprintf(stderr,
"error: %s: %s module is not keyed to verses \n", argv[0], argv[1]);
78 std::cout << *vkey << std::endl;
unsigned long length() const
SWBuf renderText(const char *buf, int len=-1, bool render=true) const
virtual void setIntros(bool val)
virtual int getVerse() const
std::map< SWBuf, SWModule *, std::less< SWBuf > > ModMap