serdes#
-
namespace heph
-
namespace serdes
-
class DynamicDeserializer#
-
class DynamicDeserializer#
-
namespace serdes
-
namespace heph
-
namespace serdes
-
namespace protobuf
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace serdes
Functions
-
template<class T>
std::string serializeToJSON(const T &data)# Serialize data to JSON. This is achieved by checking at compile time what serialization capabilities are provided for the input data. In order of priority, the following serialization methods are checked:
-
template<class T>
void deserializeFromJSON(std::string_view json, T &data)# Deserialize data from JSON. See
serializeToJSON
for more details.
-
template<protobuf::ProtobufSerializable T>
std::string serializeToJSON(const T &data)# Serialize data to JSON. This is achieved by checking at compile time what serialization capabilities are provided for the input data. In order of priority, the following serialization methods are checked:
-
template<JSONSerializable T>
std::string serializeToJSON(const T &data)# Serialize data to JSON. This is achieved by checking at compile time what serialization capabilities are provided for the input data. In order of priority, the following serialization methods are checked:
-
template<NlohmannJSONSerializable T>
std::string serializeToJSON(const T &data)# Serialize data to JSON. This is achieved by checking at compile time what serialization capabilities are provided for the input data. In order of priority, the following serialization methods are checked:
-
template<protobuf::ProtobufSerializable T>
void deserializeFromJSON(std::string_view json, T &data)# Deserialize data from JSON. See
serializeToJSON
for more details.
-
template<class T>
-
namespace serdes
-
namespace heph
-
namespace serdes
-
namespace protobuf
Functions
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace serdes
-
namespace protobuf
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace heph
-
namespace serdes
-
namespace protobuf
Functions
-
template<Arithmetic T, typename ProtoT>
void toProto(google::protobuf::RepeatedField<ProtoT> &proto_repeated_field, const std::vector<T> &vec)#
-
template<typename T, typename ProtoT>
void toProto(google::protobuf::RepeatedPtrField<ProtoT> &proto_repeated_ptr_field, const std::vector<T> &vec)#
-
template<Arithmetic T, typename ProtoT>
void fromProto(const google::protobuf::RepeatedField<ProtoT> &proto_repeated_field, std::vector<T> &vec)#
-
template<typename T, typename ProtoT>
void fromProto(const google::protobuf::RepeatedPtrField<ProtoT> &proto_repeated_ptr_field, std::vector<T> &vec)#
-
template<Arithmetic T, typename ProtoT, std::size_t N>
void toProto(google::protobuf::RepeatedField<ProtoT> &proto_repeated_field, const std::array<T, N> &arr)#
-
template<typename T, typename ProtoT, std::size_t N>
void toProto(google::protobuf::RepeatedPtrField<ProtoT> &proto_repeated_ptr_field, const std::array<T, N> &arr)#
-
template<Arithmetic T, typename ProtoT, std::size_t N>
void fromProto(const google::protobuf::RepeatedField<ProtoT> &proto_repeated_field, std::array<T, N> &arr)#
-
template<typename T, typename ProtoT, std::size_t N>
void fromProto(const google::protobuf::RepeatedPtrField<ProtoT> &proto_repeated_ptr_field, std::array<T, N> &arr)#
-
template<Arithmetic T, typename ProtoT>
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace serdes
-
namespace protobuf
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace serdes
-
namespace protobuf
-
class DynamicDeserializer#
-
class DynamicDeserializer#
-
namespace protobuf
-
namespace serdes
-
namespace heph
-
namespace serdes
Functions
Variables
-
template<typename T>
static bool NOT_SERIALIZABLE = false# Serdes module provides generic support for serialization and deserialization of data types. It is built to support any serialization library via template specialization. Right now it only support Protobuf, but can be easily extended to support other libraries by simply writing a new concept for your serialization library.
-
template<typename T>
-
namespace serdes
-
namespace heph
-
namespace serdes
-
struct ActionServerTypeInfo#
-
Public Functions
- bool=default operator== (const ActionServerTypeInfo &) const
Public Static Functions
-
static ActionServerTypeInfo fromJson(const std::string &info)#
-
struct ServiceTypeInfo#
-
Public Static Functions
-
static ServiceTypeInfo fromJson(const std::string &info)#
-
static ServiceTypeInfo fromJson(const std::string &info)#
-
struct TypeInfo#
Public Types
Public Members
-
Serialization serialization = Serialization::TEXT#
-
Serialization serialization = Serialization::TEXT#
-
struct ActionServerTypeInfo#
-
namespace serdes