diff options
author | danglassey <danglassey> | 2002-10-02 13:02:56 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-10-02 13:02:56 +0000 |
commit | bf167779c3051180f10188b1a988def048a8d232 (patch) | |
tree | 2ad63a7d00c094e5cee55ec056f50e5b86576a14 /utilities/addvs.cpp | |
parent | 44e038bb23d56043a458c29676d8ec42ee552fe0 (diff) | |
download | sword-sf-cvs-bf167779c3051180f10188b1a988def048a8d232.tar.gz |
sync with crosswire 20021002-1300
Diffstat (limited to 'utilities/addvs.cpp')
-rw-r--r-- | utilities/addvs.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/utilities/addvs.cpp b/utilities/addvs.cpp index 1efeede..b736c00 100644 --- a/utilities/addvs.cpp +++ b/utilities/addvs.cpp @@ -14,6 +14,14 @@ #include <rawtext.h> #include <iostream> +#ifndef NO_SWORD_NAMESPACE +using sword::SWMgr; +using sword::RawText; +using sword::SWKey; +using sword::VerseKey; +using sword::ListKey; +using sword::SWModule; +#endif #ifndef O_BINARY #define O_BINARY 0 @@ -73,7 +81,7 @@ int main(int argc, char **argv) { if (element) { mod->Key(element->LowerBound()); VerseKey finalkey = element->UpperBound(); - std::cout << (const char*)mod->Key() << "-" << (const char*)finalkey << endl; + std::cout << (const char*)mod->Key() << "-" << (const char*)finalkey << std::endl; if (!havefirst) { havefirst = true; firstverse = mod->Key(); @@ -87,11 +95,11 @@ int main(int argc, char **argv) { entrysize = fread(buffer, sizeof(char), sizeof(buffer), infile); mod->setEntry(buffer, entrysize); // save text to module at current position - std::cout << "f" << (const char*)firstverse << endl; + std::cout << "f" << (const char*)firstverse << std::endl; (*mod)++; } while (mod->Key() <= finalkey) { - std::cout << (const char*)mod->Key() << endl; + std::cout << (const char*)mod->Key() << std::endl; *(SWModule*)mod << &firstverse; (*mod)++; } @@ -100,7 +108,7 @@ int main(int argc, char **argv) { if (havefirst) { mod->Key(*listkey.GetElement(i)); *(SWModule*)mod << &firstverse; - std::cout << (const char*)mod->Key() << endl; + std::cout << (const char*)mod->Key() << std::endl; } else { mod->Key(*listkey.GetElement(i)); @@ -116,7 +124,7 @@ int main(int argc, char **argv) { entrysize = fread(buffer, sizeof(char), sizeof(buffer), infile); mod->setEntry(buffer, entrysize); // save text to module at current position - std::cout << "f" << (const char*)firstverse << endl; + std::cout << "f" << (const char*)firstverse << std::endl; } } } |