userver: userver/formats/common/conversion_stack.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
conversion_stack.hpp File Reference

Detailed Description

Used in the implementation of functions that convert between different formats, e.g. formats::yaml::Value to formats::json::Value, etc.

Definition in file conversion_stack.hpp.

Go to the source code of this file.

#include <cstdint>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>
#include <fmt/format.h>
#include <boost/container/small_vector.hpp>
#include <userver/compiler/demangle.hpp>
#include <userver/formats/common/type.hpp>
#include <userver/utils/assert.hpp>
+ Include dependency graph for conversion_stack.hpp:

Classes

class  formats::common::ConversionStack< ValueFrom, ValueToBuilder >
 Used in the implementation of functions that convert between different formats, e.g. formats::yaml::Value to formats::json::Value, etc. More...
 

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::common
 Common utilities for all the formats.
 

Functions

template<typename ValueTo , typename ValueFrom >
ValueTo formats::common::PerformMinimalFormatConversion (ValueFrom &&value)
 Performs the conversion between different formats. Only supports basic formats node types, throws on any non-standard ones.