Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 1 | #ifndef Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |
| 2 | #define Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |
| 3 | |
James Kuszmaul | ec0c96b | 2024-03-17 17:24:35 -0700 | [diff] [blame] | 4 | #include <set> |
| 5 | |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 6 | #include "aos/events/simulated_event_loop.h" |
| 7 | #include "aos/testing/path.h" |
| 8 | |
| 9 | namespace y2024 { |
| 10 | // Returns true, to allow this to be easily called in the initializer list of a |
| 11 | // constructor. |
James Kuszmaul | ec0c96b | 2024-03-17 17:24:35 -0700 | [diff] [blame] | 12 | // If node_names is specified, we limit ourselves to sending constants on the |
| 13 | // specified nodes. |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 14 | bool SendSimulationConstants( |
| 15 | aos::SimulatedEventLoopFactory *factory, int team, |
| 16 | std::string constants_path = |
James Kuszmaul | ec0c96b | 2024-03-17 17:24:35 -0700 | [diff] [blame] | 17 | aos::testing::ArtifactPath("y2024/constants/test_constants.json"), |
| 18 | const std::set<std::string_view> &node_names = {}); |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 19 | } // namespace y2024 |
| 20 | |
| 21 | #endif // Y2024_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |