userver: formats::yaml Namespace 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
formats::yaml Namespace Reference

Detailed Description

YAML support.

Namespaces

namespace  blocking
 

Classes

class  BadStreamException
 
class  Exception
 
class  ExceptionWithPath
 
class  Iterator
 Iterator for formats::yaml::Value More...
 
class  MemberMissingException
 
class  OutOfBoundsException
 
class  ParseException
 
class  PathPrefixException
 
class  TypeMismatchException
 
class  Value
 Non-mutable YAML value representation. More...
 
class  ValueBuilder
 Builder for YAML. More...
 

Functions

formats::yaml::Value FromString (const std::string &doc)
 Parse YAML from string.
 
formats::yaml::Value FromStream (std::istream &is)
 Parse YAML from stream.
 
void Serialize (const formats::yaml::Value &doc, std::ostream &os)
 Serialize YAML to stream.
 
std::string ToString (const formats::yaml::Value &doc)
 Serialize YAML to string.
 
bool Parse (const Value &value, parse::To< bool >)
 
int64_t Parse (const Value &value, parse::To< int64_t >)
 
uint64_t Parse (const Value &value, parse::To< uint64_t >)
 
double Parse (const Value &value, parse::To< double >)
 
std::string Parse (const Value &value, parse::To< std::string >)
 
template<typename T >
std::enable_if_t< std::is_integral< T >::value &&sizeof(T)<=sizeof(long long), ValueSerialize (T value, formats::serialize::To< Value >)
 

Function Documentation

◆ FromStream()

formats::yaml::Value formats::yaml::FromStream ( std::istream & is)

Parse YAML from stream.

Parse JSON from stream.

◆ Serialize()

template<typename T >
std::enable_if_t< std::is_integral< T >::value &&sizeof(T)<=sizeof(long long), Value > formats::yaml::Serialize ( T value,
formats::serialize::To< Value >  )

Definition at line 222 of file value_builder.hpp.