aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/cmdline/lookup.cpp10
-rw-r--r--examples/cmdline/search.cpp8
-rwxr-xr-xexamples/cmdline/threaded_search.cpp9
3 files changed, 27 insertions, 0 deletions
diff --git a/examples/cmdline/lookup.cpp b/examples/cmdline/lookup.cpp
index 0bccc09..5d8d6a8 100644
--- a/examples/cmdline/lookup.cpp
+++ b/examples/cmdline/lookup.cpp
@@ -3,6 +3,16 @@
#include <stdlib.h>
#include <swmgr.h>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWMgr;
+using sword::SWModule;
+using sword::ModMap;
+using sword::SWKey;
+using sword::AttributeTypeList;
+using sword::AttributeValue;
+using sword::AttributeList;
+#endif
+
int main(int argc, char **argv)
{
SWMgr manager;
diff --git a/examples/cmdline/search.cpp b/examples/cmdline/search.cpp
index 9e1c896..235f5b6 100644
--- a/examples/cmdline/search.cpp
+++ b/examples/cmdline/search.cpp
@@ -4,6 +4,14 @@
#include <regex.h> // GNU
#include <iostream>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWMgr;
+using sword::SWModule;
+using sword::ModMap;
+using sword::VerseKey;
+using sword::ListKey;
+#endif
+
void percentUpdate(char percent, void *userData) {
static char printed = 0;
char maxHashes = *((char *)userData);
diff --git a/examples/cmdline/threaded_search.cpp b/examples/cmdline/threaded_search.cpp
index 2267ed2..450ca8b 100755
--- a/examples/cmdline/threaded_search.cpp
+++ b/examples/cmdline/threaded_search.cpp
@@ -7,6 +7,15 @@
#include <pthread.h>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWMgr;
+using sword::ListKey;
+using sword::SWModule;
+using sword::VerseKey;
+using sword::SWKey;
+using sword::ModMap;
+#endif
+
int cms_currentProgress;
class CSwordModuleSearch {