srs-control 0.2.2
Loading...
Searching...
No Matches
ConfigHandler.hpp File Reference
#include "srs/utils/GlazeCustom.hpp"
#include <filesystem>
#include <fmt/format.h>
#include <glaze/core/opts.hpp>
#include <glaze/core/reflect.hpp>
#include <glaze/glaze.hpp>
#include <glaze/json/read.hpp>
#include <glaze/json/write.hpp>
#include <glaze/yaml.hpp>
#include <glaze/yaml/opts.hpp>
#include <glaze/yaml/read.hpp>
#include <glaze/yaml/write.hpp>
#include <optional>
#include <spdlog/spdlog.h>
#include <string>
#include <string_view>
Include dependency graph for ConfigHandler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  srs
namespace  srs::config

Enumerations

enum class  srs::config::ConfigFileType { srs::config::json , srs::config::yaml , srs::config::invalid }

Functions

auto srs::config::resolve_filetype (std::string_view filename) -> ConfigFileType
auto srs::config::output_config_to_json (const auto &config, std::string_view json_filename) -> std::optional< std::string >
auto srs::config::set_config_from_json (auto &config, std::string_view json_filename) -> std::optional< std::string >
auto srs::config::output_config_to_yaml (const auto &config, std::string_view filename) -> std::optional< std::string >
auto srs::config::set_config_from_yaml (auto &app_config, std::string_view filename) -> std::optional< std::string >
auto srs::config::output_config_to_file (const auto &config, std::string_view filename, bool is_overwrite=false) -> std::optional< std::string >
auto srs::config::set_config_from_file (auto &config, std::string_view filename, bool is_default_generated=true) -> std::optional< std::string >