types_proto#

namespace heph
namespace serdes
namespace protobuf
template<>
struct ProtoAssociation<types::UuidV4>#

Public Types

using Type = types::proto::UuidV4#
namespace types

Functions

void toProto(proto::UuidV4 &proto_uuid, const UuidV4 &uuid)#
void fromProto(const proto::UuidV4 &proto_uuid, UuidV4 &uuid)#
namespace heph
namespace serdes
namespace protobuf
template<NumericType T>
struct ProtoAssociation<types::Bounds<T>>#

Public Types

using Type = types::proto::Bounds#
namespace types

Functions

template<NumericType T>
void toProto(proto::Bounds &proto_bounds, const Bounds<T> &bounds)#
template<NumericType T>
void fromProto(const proto::Bounds &proto_bounds, Bounds<T> &bounds)#
namespace heph
namespace serdes
namespace protobuf
template<>
struct ProtoAssociation<types::DummyPrimitivesType>#

Public Types

using Type = types::proto::DummyPrimitivesType#
template<>
struct ProtoAssociation<types::DummyType>#

Public Types

using Type = types::proto::DummyType#
namespace types

Functions

void toProto(proto::DummyPrimitivesType &proto_dummy_primitives_type, const DummyPrimitivesType &dummy_primitives_type)#
void fromProto(const proto::DummyPrimitivesType &proto_dummy_primitives_type, DummyPrimitivesType &dummy_primitives_type)#
void toProto(proto::DummyType &proto_dummy_type, const DummyType &dummy_type)#
void fromProto(const proto::DummyType &proto_dummy_type, DummyType &dummy_type)#
namespace heph
namespace serdes
namespace protobuf
template<NumericType T>
struct ProtoAssociation<T>#

Public Types

using Type = types::proto::NumericValue#
namespace types
namespace proto#

Functions

template<NumericType T>
void toProto(NumericValue &proto_value, T value)#

Convert a numeric value to a protobuf message. These functions are specialized for each numeric type. The main usage is to allow for serialization of templated numeric types.

template<NumericType T>
void fromProto(const NumericValue &proto_value, T &value)#
namespace heph
namespace serdes
namespace protobuf
template<>
struct ProtoAssociation<std::string>#

Public Types

using Type = types::proto::String#
namespace types
namespace proto

Functions

void toProto(String &proto_value, std::string value)#
void fromProto(const String &proto_value, std::string &value)#
namespace heph
namespace serdes
namespace protobuf
template<>
struct ProtoAssociation<bool>#

Public Types

using Type = types::proto::Bool#
namespace types
namespace proto

Functions

void toProto(Bool &proto_value, bool value)#
void fromProto(const Bool &proto_value, bool &value)#