#ifndef MONGOSTUB_HPP #define MONGOSTUB_HPP #include #include #include #include #include #include #include #include class mongoStub : boost::noncopyable { public: mongoStub(); std::vector getNewMessages(mongocxx::change_stream* colCs); mongocxx::collection getCol() const { return col; } private: mongocxx::instance instance; mongocxx::client client{mongocxx::uri{}}; mongocxx::database db; mongocxx::collection col; mongocxx::change_stream* colCs = nullptr; }; #endif