linkahead/protobuf_helper.h
Defines
-
LINKAHEAD_DEBUG_MESSAGE_STRING(message, out)
-
namespace linkahead
-
namespace utility
-
-
template<typename P>
class ProtoMessageWrapper - #include <protobuf_helper.h>
Abstract wrapper class for Protobuf messages.
Subclassed by linkahead::entity::RepeatedPtrFieldWrapper< Message, ProtoMessage >, linkahead::entity::RepeatedPtrFieldWrapper< Parent, ProtoParent >, linkahead::entity::RepeatedPtrFieldWrapper< Property, ProtoProperty >, linkahead::entity::RepeatedPtrFieldWrapper< T, P >, linkahead::utility::ScalarProtoMessageWrapper< P >
Public Functions
-
virtual ~ProtoMessageWrapper() = 0
-
inline virtual auto ToString() const noexcept -> const std::string = 0
Return a json representation of this object.
-
inline auto operator==(const ProtoMessageWrapper<P> &other) const noexcept -> bool
Return true if the underlying Protobuf messages have the same serialization.
-
inline auto operator!=(const ProtoMessageWrapper<P> &other) const noexcept -> bool
Return true if the underlying Protobuf messages have a different serialization.
-
virtual ~ProtoMessageWrapper() = 0
-
template<typename P>
class ScalarProtoMessageWrapper : public linkahead::utility::ProtoMessageWrapper<P> - #include <protobuf_helper.h>
Wrapper class for scalar Protobuf messages.
Scalar means in this context, any message but classes derived from RepeatedPtrField.
Subclassed by linkahead::entity::DataType, linkahead::entity::Entity, linkahead::entity::ListDataType, linkahead::entity::Message, linkahead::entity::Parent, linkahead::entity::Property, linkahead::entity::ReferenceDataType, linkahead::entity::ScalarValue, linkahead::entity::Value
-
template<typename P>
-
namespace utility