blob: 40a5bdd15391c376d6b0064474516b20638ce05a [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001#ifndef Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
2#define Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
3
James Kuszmaulec0c96b2024-03-17 17:24:35 -07004#include <set>
5
Niko Sohmers3860f8a2024-01-12 21:05:19 -08006#include "aos/events/simulated_event_loop.h"
7#include "aos/testing/path.h"
8
9namespace y2024 {
10// Returns true, to allow this to be easily called in the initializer list of a
11// constructor.
James Kuszmaulec0c96b2024-03-17 17:24:35 -070012// If node_names is specified, we limit ourselves to sending constants on the
13// specified nodes.
Niko Sohmers3860f8a2024-01-12 21:05:19 -080014bool SendSimulationConstants(
15 aos::SimulatedEventLoopFactory *factory, int team,
16 std::string constants_path =
James Kuszmaulec0c96b2024-03-17 17:24:35 -070017 aos::testing::ArtifactPath("y2024/constants/test_constants.json"),
18 const std::set<std::string_view> &node_names = {});
Niko Sohmers3860f8a2024-01-12 21:05:19 -080019} // namespace y2024
20
21#endif // Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_