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 <userver/proto-structs/duration.hpp>#include <userver/proto-structs/exceptions.hpp>#include <userver/proto-structs/io/context.hpp>#include <userver/utils/impl/internal_tag.hpp>
This graph shows which files directly or indirectly include this file: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 &ctx, const std::chrono::duration< TRep, TPeriod > &obj, ::google::protobuf::Duration &msg) |