The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vs2osisref.cpp File Reference
#include <iostream>
#include <versekey.h>
#include <localemgr.h>
+ Include dependency graph for vs2osisref.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 40 of file vs2osisref.cpp.

41 {
42  if (argc < 2) {
43  cerr << argv[0] << " - parse verse reference to OSISRef markup\n";
44  cerr << "usage: "<< argv[0] << " <verse ref> [verse context] [locale]\n";
45  cerr << "\n\n";
46  exit(-1);
47  }
48 
49 
50  if (argc > 3) {
52  }
53 
54  VerseKey verseKey = (argc > 2) ? argv[2] : "Gen 1:1";
55 
56  std::cout << VerseKey::convertToOSIS(argv[1], &verseKey) << "\n";
57 
58  return 0;
59 }
virtual void setDefaultLocaleName(const char *name)
Definition: localemgr.cpp:251
static const char * convertToOSIS(const char *inRef, const SWKey *defaultKey)
Definition: versekey.cpp:1887
static LocaleMgr * getSystemLocaleMgr()
Definition: localemgr.cpp:54