Silicon Sword 2000: Chip Master's BIBLE study tool. It provides uncluttered views of G-D's WORD and aims to give you the ability to annotate your BIBLE, like you can a paper one, but with the advantage of digital media. http://YESHUAshalom.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

idxdump.cpp 1.4 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*********************************************************************
  2. * Dump Note Index
  3. * Written by Jonathan A. Foster <ChipMaster@YeOlPiShack.net>
  4. * Started December 28th, 2024
  5. *
  6. * This is to dump a notes index file. This is part of the testing
  7. * process but I thought it might come in handy as a general utility.
  8. *********************************************************************/
  9. #include <JFP/ioobjs.h>
  10. #include "../books.cpp"
  11. #include "../bibleref.cpp"
  12. #include "../notes.cpp"
  13. using namespace JFP;
  14. /*********************************************************************
  15. * Globals
  16. *********************************************************************/
  17. char **args = 0;
  18. /*********************************************************************
  19. * Usage (help) message
  20. *********************************************************************/
  21. int help(const char *msg=0) {
  22. if(msg) sterr << msg << "\n\n";
  23. sterr << basename(args[0]) << " file [file [...]]\n"
  24. << '\n'
  25. << "filenames officially have the '.ssix' extenstion." << endl;
  26. return 1;
  27. }
  28. int main(int argc, char **argv) {
  29. int i;
  30. args = argv;
  31. if(argc<2) return help();
  32. for(i=1; i<argc; ++i) {
  33. NoteIdx idx;
  34. idx.open(argv[i]);
  35. if(idx.first()) {
  36. do {
  37. stout << idx.reference().str() << " @ " << idx.value() << endl;
  38. } while(idx.next());
  39. }
  40. }
  41. return 0;
  42. }