summaryrefslogtreecommitdiff
path: root/project2/json
diff options
context:
space:
mode:
Diffstat (limited to 'project2/json')
-rw-r--r--project2/json/couchSession.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/project2/json/couchSession.cpp b/project2/json/couchSession.cpp
index 1f6c444..8a4436b 100644
--- a/project2/json/couchSession.cpp
+++ b/project2/json/couchSession.cpp
@@ -11,7 +11,7 @@
#include "json.h"
#include "safeMapFind.h"
#include "conversion.h"
-#include <boost/program_options.hpp>
+#include "options.h"
class CouchDBFailure : public std::exception { };
@@ -105,19 +105,18 @@ class CouchSessionContainer : public SessionContainer {
std::vector<std::string> CouchSessionContainer::baseUrls;
const Glib::ustring CouchSessionContainer::ExpiryKey("project2:expires");
-namespace po = boost::program_options;
class CustomCouchSessionLoader : public SessionContainerLoaderImpl<CouchSessionContainer> {
public:
CustomCouchSessionLoader() :
opts("Session CouchDB options")
{
- opts.add_options()
- ("session.couchdb.baseurl", po::value(&CouchSessionContainer::baseUrls)->composing(),
+ opts
+ ("session.couchdb.baseUrl", Options::value(&CouchSessionContainer::baseUrls),
"Base URL to store sessions in")
;
}
- po::options_description *
- options()
+ const Options *
+ options() const
{
return &opts;
}
@@ -184,7 +183,7 @@ class CustomCouchSessionLoader : public SessionContainerLoaderImpl<CouchSessionC
return;
}
}
- po::options_description opts;
+ Options opts;
};
DECLARE_CUSTOM_COMPONENT_LOADER("couchsession", CouchSessionContainer, CustomCouchSessionLoader, SessionContainerLoader);