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::future<std::vector<uint8_t>> waitForChannelMsg(ClientInterface* client,
15  SubscriptionId subscriptionId);
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 std::future<Channel> waitForChannel(std::shared_ptr<ClientInterface> client,
26  const std::string& topicName);
27 
28 std::future<FetchAssetResponse> waitForFetchAssetResponse(std::shared_ptr<ClientInterface> client);
29 
30 extern template class Client<websocketpp::config::asio_client>;
31 
32 } // namespace foxglove
foxglove
Definition: base64.hpp:8
foxglove::waitForServiceResponse
std::future< ServiceResponse > waitForServiceResponse(std::shared_ptr< ClientInterface > client)
Definition: test_client.cpp:51
foxglove::waitForChannelMsg
std::future< std::vector< uint8_t > > waitForChannelMsg(ClientInterface *client, SubscriptionId subscriptionId)
Definition: test_client.cpp:11
foxglove::waitForService
std::future< Service > waitForService(std::shared_ptr< ClientInterface > client, const std::string &serviceName)
Definition: test_client.cpp:68
foxglove::waitForFetchAssetResponse
std::future< FetchAssetResponse > waitForFetchAssetResponse(std::shared_ptr< ClientInterface > client)
Definition: test_client.cpp:115
foxglove::SubscriptionId
uint32_t SubscriptionId
Definition: common.hpp:28
foxglove::waitForParameters
std::future< std::vector< Parameter > > waitForParameters(std::shared_ptr< ClientInterface > client, const std::string &requestId=std::string())
Definition: test_client.cpp:31
foxglove::waitForChannel
std::future< Channel > waitForChannel(std::shared_ptr< ClientInterface > client, const std::string &topicName)
Definition: test_client.cpp:92


foxglove_bridge
Author(s): Foxglove
autogenerated on Tue May 20 2025 02:34:26