#ifndef MONGOSTUB_HPP #define MONGOSTUB_HPP #include #include #include #include #include #include #include #include #include class mongoStub{ public: mongoStub(); struct mongoMessage{ std::string eventName; std::vector data; }; 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; void handleUdpRequest(std::string address, int port, std::string mode); void handleVoiceRequest(); }; #endif