Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
example_config.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <string>
5
6// Returns the director.toml template text (MADS_DIRECTOR_EXAMPLE_CONFIG
7// selects the variant used by the test suite and the packaged build).
8std::string example_config_text();
9
10// Writes example_config_text() to path. Without overwrite, an existing file
11// is left untouched and the call fails with "File already exists: <path>".
12bool write_example_config(const std::filesystem::path& path, bool overwrite, std::string* out_error);
bool write_example_config(const std::filesystem::path &path, bool overwrite, std::string *out_error)
std::string example_config_text()