userver: userver/yaml_config/yaml_config.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
yaml_config.hpp File Reference

Datatype that represents YAML with substituted variables. More...

#include <chrono>
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#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>
+ Include dependency graph for yaml_config.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

template<>
std::string yaml_config::YamlConfig::As< std::string > () const
 
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.
 

Detailed Description

Datatype that represents YAML with substituted variables.

Definition in file yaml_config.hpp.