Datatype that represents YAML with substituted variables.
Definition in file yaml_config.hpp.
Go to the source code of this file.
#include <chrono>
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <userver/formats/json_fwd.hpp>
#include <userver/formats/parse/common.hpp>
#include <userver/formats/parse/common_containers.hpp>
#include <userver/formats/yaml/value.hpp>
#include <userver/yaml_config/iterator.hpp>
Classes | |
class | yaml_config::YamlConfig |
Datatype that represents YAML with substituted variables. More... | |
struct | yaml_config::YamlConfig::IterTraits |
struct | yaml_config::YamlConfig::DefaultConstructed |
Namespaces | |
namespace | yaml_config |
Utilities to work with static YAML config. | |
Typedefs | |
using | yaml_config::Exception = formats::yaml::Exception |
using | yaml_config::ParseException = formats::yaml::ParseException |
Functions | |
bool | yaml_config::Parse (const YamlConfig &value, formats::parse::To< bool >) |
int64_t | yaml_config::Parse (const YamlConfig &value, formats::parse::To< int64_t >) |
uint64_t | yaml_config::Parse (const YamlConfig &value, formats::parse::To< uint64_t >) |
double | yaml_config::Parse (const YamlConfig &value, formats::parse::To< double >) |
std::string | yaml_config::Parse (const YamlConfig &value, formats::parse::To< std::string >) |
std::chrono::seconds | yaml_config::Parse (const YamlConfig &value, formats::parse::To< std::chrono::seconds >) |
Parses duration from string, understands suffixes: ms, s, m, h, d. | |
std::chrono::milliseconds | yaml_config::Parse (const YamlConfig &value, formats::parse::To< std::chrono::milliseconds >) |
Parses duration from string, understands suffixes: ms, s, m, h, d. | |
formats::json::Value | yaml_config::Parse (const YamlConfig &value, formats::parse::To< formats::json::Value >) |
Converts YAML to JSON. | |