Provides read/write context class with the ability to handle std::chrono::duration
conversion.
Definition in file duration_conv.hpp.
Go to the source code of this file.
#include <userver/proto-structs/io/std/chrono/duration.hpp>
#include <google/protobuf/duration.pb.h>
#include <google/protobuf/util/time_util.h>
#include <userver/proto-structs/io/context.hpp>
#include <userver/utils/assert.hpp>
Namespaces | |
namespace | proto_structs |
Top namespace for the proto-structs library. | |
namespace | proto_structs::io |
Namespace for conversion utlities and predefined proto-structs conversion hooks for well-known std/userver types. | |
Functions | |
template<typename TRep, typename TPeriod> | |
std::chrono::duration< TRep, TPeriod > | proto_structs::io::ReadProtoStruct (ReadContext &ctx, To< std::chrono::duration< TRep, TPeriod > >, const ::google::protobuf::Duration &msg) |
template<typename TRep, typename TPeriod> | |
void | proto_structs::io::WriteProtoStruct (WriteContext &, const std::chrono::duration< TRep, TPeriod > &obj, ::google::protobuf::Duration &msg) |