test_client.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <future>
4 #include <string>
5 #include <vector>
6 
7 #include <websocketpp/config/asio_client.hpp>
8 
9 #include "../parameter.hpp"
10 #include "../websocket_client.hpp"
11 
12 namespace foxglove {
13 
14 std::vector<uint8_t> connectClientAndReceiveMsg(const std::string& uri,
15  const std::string& topic_name);
16 
17 std::future<std::vector<Parameter>> waitForParameters(std::shared_ptr<ClientInterface> client,
18  const std::string& requestId = std::string());
19 
20 std::future<ServiceResponse> waitForServiceResponse(std::shared_ptr<ClientInterface> client);
21 
22 std::future<Service> waitForService(std::shared_ptr<ClientInterface> client,
23  const std::string& serviceName);
24 
25 extern template class Client<websocketpp::config::asio_client>;
26 
27 } // namespace foxglove
std::future< Service > waitForService(std::shared_ptr< ClientInterface > client, const std::string &serviceName)
Definition: test_client.cpp:97
std::vector< uint8_t > connectClientAndReceiveMsg(const std::string &uri, const std::string &topic_name)
Definition: test_client.cpp:14
std::future< ServiceResponse > waitForServiceResponse(std::shared_ptr< ClientInterface > client)
Definition: test_client.cpp:80
std::future< std::vector< Parameter > > waitForParameters(std::shared_ptr< ClientInterface > client, const std::string &requestId=std::string())
Definition: test_client.cpp:60


foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22