#include #include #include #include "apiImpl.h" namespace MirrorSearch { class Api : public IceTray::Service { public: void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override { auto dbpool = getConnectionPool(ic, "postgresql", "MirrorSearch"); adp->add(new SearchImpl(dbpool), ic->stringToIdentity("Search")); } }; NAMEDFACTORY("default", MirrorSearch::Api, IceTray::ServiceFactory); }