diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-06 08:30:08 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-06 08:30:08 +0000 |
commit | afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b (patch) | |
tree | e63b671e8dd8e3813ed2fa76a82a5aa39c5c2667 /service/apiImpl.h | |
download | mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.bz2 mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.xz mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.zip |
Initial commit, WIP
Diffstat (limited to 'service/apiImpl.h')
-rw-r--r-- | service/apiImpl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/service/apiImpl.h b/service/apiImpl.h new file mode 100644 index 0000000..e56368c --- /dev/null +++ b/service/apiImpl.h @@ -0,0 +1,25 @@ +#ifndef MIRRORSEARCH_APIIMPL_H +#define MIRRORSEARCH_APIIMPL_H + +#include <api.h> +#include <abstractDatabaseClient.h> +#include <logger.h> + +namespace MirrorSearch { + class SearchImpl : public Search, public IceTray::AbstractDatabaseClient { + public: + SearchImpl(IceTray::DatabasePoolPtr); + + virtual SearchServices getServices(const ::Ice::Current& = ::Ice::Current()) override; + virtual SearchHits getMatches(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) override; + virtual ::IceUtil::Optional<::std::string> feelingLucky(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) override; + + private: + void callService(const ::std::string & fn, const SearchServicePtr & s, SearchHits & sh) const; + + LOG::LoggerPtr log; + }; +} + +#endif + |