userver: userver/formats/parse/common.hpp File Reference
Loading...
Searching...
No Matches
common.hpp File Reference

Detailed Description

Parsers and converters for std::chrono::seconds, std::chrono::system_clock::time_point and integral types.

Definition in file common.hpp.

Go to the source code of this file.

#include <chrono>
#include <cstdint>
#include <limits>
#include <fmt/format.h>
#include <userver/formats/common/meta.hpp>
#include <userver/formats/parse/to.hpp>
#include <userver/utils/datetime.hpp>
#include <userver/utils/datetime/from_string_saturating.hpp>
#include <userver/utils/meta.hpp>
#include <userver/utils/string_to_duration.hpp>
+ Include dependency graph for common.hpp:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::parse
 Generic parsers and converters.
 

Functions

template<typename Value >
float formats::parse::Parse (const Value &value, To< float >)
 
template<typename Value , typename T >
std::enable_if_t< common::kIsFormatValue< Value > &&meta::kIsInteger< T >, T > formats::parse::Parse (const Value &value, To< T >)
 
template<typename Value , typename Period >
std::enable_if_t< common::kIsFormatValue< Value >, std::chrono::duration< double, Period > > formats::parse::Parse (const Value &n, To< std::chrono::duration< double, Period > >)
 
template<typename Value >
std::enable_if_t< common::kIsFormatValue< Value >, std::chrono::seconds > formats::parse::Parse (const Value &n, To< std::chrono::seconds >)
 
template<class Value >
std::chrono::system_clock::time_point formats::parse::Parse (const Value &n, To< std::chrono::system_clock::time_point >)
 
template<class Value >
float formats::parse::Convert (const Value &value, To< float >)
 
template<typename Value , typename T >
std::enable_if_t< meta::kIsInteger< T >, T > formats::parse::Convert (const Value &value, To< T >)
 
template<typename Value >
std::chrono::seconds formats::parse::Convert (const Value &n, To< std::chrono::seconds >)